@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class PLAINBindHandler extends InMemorySASLBindHandler
| Constructor and Description |
|---|
PLAINBindHandler()
Creates a new instance of this SASL bind handler.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSASLMechanismName()
Retrieves the name of the SASL mechanism supported by this bind handler.
|
BindResult |
processSASLBind(InMemoryRequestHandler handler,
int messageID,
DN bindDN,
ASN1OctetString credentials,
java.util.List<Control> controls)
Performs the appropriate processing for a SASL bind request with the
provided information.
|
toStringpublic PLAINBindHandler()
@NotNull public java.lang.String getSASLMechanismName()
getSASLMechanismName in class InMemorySASLBindHandler@NotNull public BindResult processSASLBind(@NotNull InMemoryRequestHandler handler, int messageID, @NotNull DN bindDN, @Nullable ASN1OctetString credentials, @NotNull java.util.List<Control> controls)
InMemoryRequestHandler.setAuthenticatedDN(DN) on the provided
request handler instance to set the identity of the authenticated user.
InMemoryRequestHandler.getConnectionState() method should be used
for this purpose.processSASLBind in class InMemorySASLBindHandlerhandler - The in-memory request handler that accepted the bind
request.messageID - The message ID for the LDAP message that the client
used to send the request.bindDN - The bind DN provided by the client.credentials - The SASL credentials provided by the client, or
null if there were none.controls - The request controls provided by the client.