public static class PlainSaslServerProvider.PlainSaslServerFactory extends Object implements SaslServerFactory
PlainSaslServer. The parameter mechanism
must be "PLAIN" when this PlainSaslServerFactory is called, or null will be returned.| Constructor and Description |
|---|
PlainSaslServerProvider.PlainSaslServerFactory() |
| Modifier and Type | Method and Description |
|---|---|
SaslServer |
createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler callbackHandler)
Creates a SaslServer using the parameters supplied.
|
String[] |
getMechanismNames(Map<String,?> props) |
public PlainSaslServerProvider.PlainSaslServerFactory()
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler callbackHandler) throws SaslException
createSaslServer in interface SaslServerFactorymechanism - The name of a SASL mechanism. (e.g. "PLAIN").protocol - The non-null string name of the protocol for which the authentication is
being performed.serverName - The non-null fully qualified host name of the server to authenticate to.props - The possibly null set of properties used to select the SASL mechanism and to
configure the authentication exchange of the selected mechanism.callbackHandler - The possibly null callback handler to used by the SASL mechanisms to
do further operation.SaslException - If it cannot create a SaslServer because of an error.public String[] getMechanismNames(Map<String,?> props)
getMechanismNames in interface SaslServerFactoryCopyright © 2015. All Rights Reserved.