@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface UpdatableSimpleBindRequest extends SimpleBindRequest, UpdatableBindRequest
Modifier and Type | Method and Description |
---|---|
UpdatableSASLBindRequest |
convertToSASLBindRequest(java.lang.String saslMechanism,
ASN1OctetString saslCredentials)
Converts this simple bind request to a SASL bind request.
|
void |
setDN(DN dn)
Specifies the DN of the user attempting to bind.
|
void |
setDN(java.lang.String dn)
Specifies the DN of the user attempting to bind.
|
void |
setPassword(ByteString password)
Specifies the password for the bind request.
|
void |
setPassword(java.lang.String password)
Specifies the password for the bind request.
|
getDN, getPassword, toLDAPSDKRequest
addRequestControl, setRequestControls
getOperationType, getRequestControls
void setDN(java.lang.String dn)
dn
- The DN of the user that is trying to authenticate. It must not
be null
, but it may be an empty string to indicate a
zero-length DN.void setDN(DN dn)
dn
- The DN of the user that is trying to authenticate. It must not
be null
, but it may be an empty string to indicate a
zero-length DN.void setPassword(ByteString password)
password
- The password for the bind request. It must not be
null
but may be a zero-length byte string for
anonymous authentication.void setPassword(java.lang.String password)
password
- The password for the bind request. It must not be
null
but may be a zero-length byte string for
anonymous authentication.UpdatableSASLBindRequest convertToSASLBindRequest(java.lang.String saslMechanism, ASN1OctetString saslCredentials)
UpdatableSASLBindRequest
object that is returned.saslMechanism
- The name of the SASL mechanism to use for the
SASL bind request. This must not be null
or empty.saslCredentials
- The encoded SASL credentials to use for the SASL
bind request. This may be null
if no
SASL credentials are needed.UpdatableSASLBindRequest
that was created and will be
used for the operation going forward.