Class DefaultAuthenticator

  • All Implemented Interfaces:
    Authenticator

    public class DefaultAuthenticator
    extends AbstractAuthenticator
    This is the basic authentication mechanism, that searches for the user in the LogicalDOC database.
    Since:
    4.5
    Author:
    Sebastian Wenzky
    • Constructor Detail

      • DefaultAuthenticator

        public DefaultAuthenticator()
    • Method Detail

      • setUserDAO

        public void setUserDAO​(UserDAO userDAO)
      • authenticate

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