public class LDAPSaslBind extends java.lang.Object implements LDAPBind, java.io.Serializable
Constructor and Description |
---|
LDAPSaslBind(java.lang.String dn,
java.lang.String[] mechanisms,
java.lang.String packageName,
java.util.Hashtable<java.lang.Object,java.lang.Object> props,
java.lang.Object cbh)
Construct an object which can authenticate to an LDAP server
using the specified name and a specified SASL mechanism.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(LDAPConnection ldc)
Authenticates to the LDAP server (that the object is currently
connected to) using the parameter that were provided to the
constructor.
|
public LDAPSaslBind(java.lang.String dn, java.lang.String[] mechanisms, java.lang.String packageName, java.util.Hashtable<java.lang.Object,java.lang.Object> props, java.lang.Object cbh)
dn
- if non-null and non-empty, specifies that the connection and
all operations through it should authenticate with dn as the
distinguished namemechanisms
- array of mechanism names, e.g. { "GSSAPI", "SKEY" }props
- optional additional properties of the desired
authentication mechanism, e.g. minimum security levelcbh
- a class which may be called by the SASL framework to
obtain additional required informationpublic void bind(LDAPConnection ldc) throws LDAPException
bind
in interface LDAPBind
ldc
- an active connection to a server, which will have
the new authentication state on return from the methodLDAPException
- Failed to authenticate to the LDAP server.LDAPConnection.bind(java.lang.String, java.lang.String)