Class AbstractAuthenticator

    • Constructor Detail

      • AbstractAuthenticator

        public AbstractAuthenticator()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Description copied from interface: Authenticator
        A provider can be in a disabled state
        Specified by:
        isEnabled in interface Authenticator
        Returns:
        if this authenticator is enabled
      • authenticate

        public User authenticate​(String username,
                                 String password,
                                 String key)
                          throws AuthenticationException
        Description copied from interface: Authenticator
        Authenticates the user using the given credentials, if successful, the corresponding user is returned.
        Specified by:
        authenticate in interface Authenticator
        Parameters:
        username - the username
        password - the password
        key - Optional third authentication parameter
        Returns:
        The user, or null if the authentication was unsuccessful
        Throws:
        AuthenticationException
      • authenticate

        public User authenticate​(String username,
                                 String password,
                                 String key,
                                 Client client)
                          throws AuthenticationException
        Description copied from interface: Authenticator
        Authenticates the user using the given credentials, if successful, the corresponding user is returned.
        Specified by:
        authenticate in interface Authenticator
        Parameters:
        username - the username
        password - the password
        key - Optional third authentication parameter
        client - Client informations
        Returns:
        The user, or null if the authentication was unsuccessful
        Throws:
        AuthenticationException