separated the Signature code to a separate class to be used also in the notification listener