See: Description
Interface Summary | |
---|---|
SaslClient |
Performs SASL authentication as a client. A protocol library such as one for LDAP gets an instance of this class in order to perform authentication defined by a specific SASL mechanism. |
SaslClientFactory |
An interface for creating instances of {@link SaslClient}. |
SaslServer |
Performs SASL authentication as a server. A server such as an LDAP server gets an instance of this class in order to perform authentication defined by a specific SASL mechanism. |
SaslServerFactory |
An interface for creating instances of {@link SaslServer}. |
Class Summary | |
---|---|
AuthorizeCallback | This callback is used by {@link 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 {@link SaslClient} and {@link SaslServer} to retrieve realm information. |
RealmChoiceCallback | This callback is used by {@link SaslClient} and {@link SaslServer} to obtain a realm given a list of realm choices. |
Sasl |
A static class for creating SASL clients and servers. This class defines the policy of how to locate, load, and instantiate SASL clients and servers. For example, an application or library gets a SASL client instance by doing something like: SaslClient sc = Sasl.createSaslClient(mechanisms, authorizationID, protocol, serverName, props, callbackHandler); It can then proceed to use the instance to create an authenticated connection. Similarly, a server gets a SASL server instance by using code that looks as follows: SaslServer ss = Sasl.createSaslServer(mechanism, protocol, serverName, props, callbackHandler); |
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. Note that the lack of an |
SaslException | This class represents an error that has occurred when using SASL. |