SaslServer
Interface SaslServer
public interface SaslServer
Performs SASL authentication as a server.
A server such an LDAP server gets an instance of this class in order to perform authentication defined by a specific SASL mechanism. Invoking methods on the SaslServer
instance generates challenges according to the SASL mechanism implemented by the SaslServer
. As the authentication proceeds, the instance encapsulates the state of a SASL server's authentication exchange.
Here's an example of how an LDAP server might use a SaslServer
. It first gets an instance of a SaslServer
for the SASL mechanism requested by the client:
SaslServer ss = Sasl.createSaslServer(mechanism, "ldap", myFQDN, props, callbackHandler);It can then proceed to use the server for authentication. For example, suppose the LDAP server received an LDA