|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
| SaslClient | Performs SASL authentication as a client. |
| SaslClientFactory | An interface for creating instances of SaslClient. |
| SaslServer | Performs SASL authentication as a server. |
| SaslServerFactory | An interface for creating instances of SaslServer. |
| Class Summary | |
| AuthorizeCallback | This callback is used by SaslServer to determine whether
one entity (identified by an authenticated authentication id)
can act on behalf of another entity (identified by an authorization id). |
| RealmCallback | This callback is used by SaslClient and
SaslServer to retrieve realm information. |
| RealmChoiceCallback | This callback is used by SaslClient and
SaslServer to obtain a realm given a list of realm choices. |
| Sasl | A static class for creating SASL clients and servers. |
| Exception Summary | |
| AuthenticationException | This exception is thrown by a SASL mechanism implementation to indicate that the SASL exchange has failed due to reasons related to authentication, such as an invalid identity, passphrase, or key. |
| SaslException | This class represents an error that has occurred when using SASL. |
Contains classes and interfaces for supporting SASL.
This package defines classes and interfaces for SASL mechanisms. It is used by developers to add authentication support for protocols that use SASL.
For developers adding SASL client support to a connection-based protocol, a typical usage pattern is as follows. In this discussion, SaslClient represents a SASL mechanism for the SASL client.
At the end of these steps, the authentication exchange should have succeeded, failed, or been aborted. If the authentication exchange has succeeded and a security layer was negotiated, the client then encodes and decodes data as per the negotiated security layer in its future communication with the server.
As a developer who produces SASL client mechanisms, you need to define a class that implements the SaslClient interface and provide implementations for its methods. You also need to define a class that implements the SaslClientFactory interface to create instances of SaslClient for the mechanisms that you support.
For developers adding SASL server support to a connection-based protocol, a typical usage pattern is as follows. In this discussion, SaslServer represents a SASL mechanism for the SASL server.
At the end of these steps, the authentication exchange should have succeeded, failed, or been aborted. If the authentication exchange has succeeded and a security layer was negotiated, the server then encodes and decodes data as per the negotiated security layer in its future communication with the client.
As a developer who produces SASL server mechanisms, you need to define a class that implements the SaslServer interface and provide implementations for its methods. You also need to define a class that implements the SaslServerFactory interface to create instances of SaslServer for the mechanisms that you support.
A SaslClient typically uses the callback handler to obtain authentication information from the application user, such as the user's identity, passphrase, PINs, etc. A SaslServer typically uses the callback handler to obtain data to verify the information supplied by the SASL client during the SASL exchange. For example, in order to verify the passphrase supplied by the client, the SaslServer might use the callback handler to obtain the passphrase of the corresponding user from the server's database.
Because the callback handler is responsible for interacting with sources of information, such as the end user or server databases, it can be a useful place to collect data and statistics, for example, for logging and account management purposes.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||