See: Description
Interface | Description |
---|---|
AuthenticationManager |
Action interface for external authentication.
|
Class | Description |
---|---|
AuthenticatedUser |
Objects of this class are returned by the
AuthenticationManager.authenticate()
method and contains information about the authenticated
user. |
AuthenticationMethod |
Holds information about the method that was used to verify a user when logging in.
|
ExtraUserInformation |
Class for holding extra information about a user.
|
LoginRequest |
Hold information about a login request such as login, password, etc.
|
Exception | Description |
---|---|
AuthenticationException |
This exception can be thrown when an error occurs during the
authentication.
|
InvalidPasswordException |
This exception can be thrown when the password is invalid.
|
LoginException |
This exception can be thrown when an error occurs during the
authentication, but it is not known if the username or password
is causing the problem.
|
UnknownLoginException |
This exception can be thrown when the login is unknown
to the authentication server.
|
At the heart of the framework is the
net.sf.basedb.core.authentication.Authenticator
interface. It defines methods that an application can use to
authenticate a user against a remote database or directory service.
As an example, a simple net.sf.basedb.core.authentication.POP3Authenticator
has been developed. It allows a client application to check with a POP3
server for authentication, ie. all users with a mail account on the
POP3 server will be granted access.
Adding support for other databases and directory services is as easy a
writing a class that implements the Authenticator
interface.