Package alpine.server.auth
Class Authenticator
java.lang.Object
alpine.server.auth.Authenticator
Class is responsible for authenticating managed users against the internal user
database and optionally against a configured directory service (LDAP).
- Since:
- 1.0.0
- Author:
- Steve Springett
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticator(String username, String password) Constructs a new Authenticator object. -
Method Summary
Modifier and TypeMethodDescriptionAttempts to authenticate the credentials internally first and if not successful, checks to see if LDAP is enabled or not.
-
Constructor Details
-
Authenticator
Constructs a new Authenticator object.- Parameters:
username- the username to assertpassword- the password to assert
-
-
Method Details
-
authenticate
Attempts to authenticate the credentials internally first and if not successful, checks to see if LDAP is enabled or not. If enabled, a second attempt to authenticate the credentials will be made, but this time against the directory service.- Returns:
- a Principal upon successful authentication
- Throws:
AlpineAuthenticationException- upon authentication failure- Since:
- 1.0.0
-