2.17.2: 2011-06-17

Package net.sf.basedb.core.authentication

This package defines a framework for supporting user authentication from external databases and directory services.

See:
          Description

Interface Summary
Authenticator This interface defines the methods that needs to be implemented by a class to be able to use it for external authentication against another database or directory service.
 

Class Summary
AuthenticationInformation Objects of this class are returned by the Authenticator.authenticate(String,String) method and contains information about the authenticated user.
POP3Authenticator This class is an example implementation of the Authenticator interface that authenticates a user against a POP3 server.
SimpleAuthenticator This class is an example implementation of the Authenticator interface that authenticates everyone as long as the login is the same as the password.
 

Exception Summary
AuthenticationException This exception can be thrown when an error occurs during the authentication.
InvalidPasswordException This exception can be thrown when the password is invalid.
UnknownLoginException This exception can be thrown when the login is unknown to the authentication server.
 

Package net.sf.basedb.core.authentication Description

This package defines a framework for supporting user authentication from external databases and directory services.

At the heart of the framework is the 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 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.

Version:
2.0
Author:
Nicklas

2.17.2: 2011-06-17