Security: replace function for obtaining the shared secret from the consumer certificate with Authenticator class.