Class EmailAuthenticator

    • Constructor Detail

      • EmailAuthenticator

        public EmailAuthenticator()
    • Method Detail

      • authenticate

        public void authenticate​( user,
                                 String key)
        Description copied from interface: SecondFactorAuthenticator
        Authenticates the given user
        user - The user to check
        key - The key inputed by the user
        Throws: - the user was not authenticated
      • generateKey

        public String generateKey​( user)
        Description copied from class: AbstractSecondFactorAuthenticator
        A generic implementation that does do nothing. Concrete implementations should put here a call to the authentication framework to send the user a key he will have to put in the login screen
        Specified by:
        generateKey in interface SecondFactorAuthenticator
        generateKey in class AbstractSecondFactorAuthenticator
        user - The user that will try to authenticate
        the result of the key generation, it may be a transaction id