public class SaslServerFactoryImpl extends Object implements SaslServerFactory
Constructor and Description |
---|
SaslServerFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
SaslServer |
createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh)
Creates a
SaslServer implementing a supported mechanism using the parameters supplied. |
String[] |
getMechanismNames(Map<String,?> props)
Returns an array of names of mechanisms that match the specified mechanism selection policies.
|
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
SaslServer
implementing a supported mechanism using the parameters supplied.createSaslServer
in interface SaslServerFactory
mechanism
- The non-null IANA-registered named of a SASL mechanism.protocol
- The non-null string name of the protocol for which the authentication is being performed (e.g., "ldap").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.cbh
- The possibly null callback handler to used by the SASL mechanisms to get further information from the application/library to complete the authentication.SaslException
- If cannot create a SaslServer because of an error.public String[] getMechanismNames(Map<String,?> props)
getMechanismNames
in interface SaslServerFactory
props
- The possibly null set of properties used to specify the security policy of the SASL mechanisms.Copyright © 2003-2008 Jive Software.