|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.sasl.ClientFactory
An interface for creating instances of SaslClient.
SaslClient,
Sasl| Constructor Summary | |
ClientFactory()
|
|
| Method Summary | |
SaslClient |
createSaslClient(String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Hashtable props,
CallbackHandler cbh)
Creates a SaslClient using the parameters supplied. |
String[] |
getMechanismNames()
Returns an array of names of mechanisms supported by this factory. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClientFactory()
| Method Detail |
public SaslClient createSaslClient(String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Hashtable props,
CallbackHandler cbh)
throws SaslException
createSaslClient in interface SaslClientFactorymechanisms - The non-null list of mechanism names to try.
Each is the IANA-registered name of a SASL mechanism. (e.g.
"GSSAPI", "CRAM-MD5").authorizationId - The possibly null authorization ID to
use. When the SASL authentication completes successfully, the
entity named by authorizationId is granted access.protocol - The non-null string name of the protocol for
which the authentication is being performed (e.g., "ldap").serverName - The non-null string name of the server to
which we are creating an authenticated connection.props - The possibly null properties to be used by the SASL
mechanisms to configure the authentication exchange. For example,
"javax.security.sasl.encryption.maximum" might be used to
specify the maximum key length to use for encryption.cbh - The possibly null callback handler to used by the
SASL mechanisms to get further information from the
application/library to complete the authentication. For example,
a SASL mechanism might require the authentication ID and
password from the caller.
SaslException - if it cannot create a
SaslClient because of an error.public String[] getMechanismNames()
getMechanismNames in interface SaslClientFactory
|
Directory SDK for Java 4.19 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||