org.jivesoftware.openfire.sasl
Class SaslServerFactoryImpl
java.lang.Object
org.jivesoftware.openfire.sasl.SaslServerFactoryImpl
- All Implemented Interfaces:
- SaslServerFactory
public class SaslServerFactoryImpl
- extends Object
- implements SaslServerFactory
Server Factory for PLAIN.
- Author:
- Jay Kline
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaslServerFactoryImpl
public SaslServerFactoryImpl()
createSaslServer
public SaslServer createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh)
throws SaslException
- Creates a
SaslServer
implementing the PLAIN mechanism using the parameters supplied.
- Specified by:
createSaslServer
in interface SaslServerFactory
- Parameters:
mechanism
- The non-null IANA-registered named of a SASL mechanism. Must be "PLAIN" for this object.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.
- Returns:
- A possibly null SaslServer created using the parameters supplied. If null, this factory cannot produce a SaslServer using the parameters supplied.
- Throws:
SaslException
- If cannot create a SaslServer because of an error.
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Returns an array of names of mechanisms that match the specified mechanism selection policies.
- Specified by:
getMechanismNames
in interface SaslServerFactory
- Parameters:
props
- The possibly null set of properties used to specify the security policy of the SASL mechanisms.
- Returns:
- A non-null array containing a IANA-registered SASL mechanism names.
Copyright © 2003-2007 Jive Software.