@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface UpdatableSASLBindRequest extends SASLBindRequest, UpdatableBindRequest
Modifier and Type | Method and Description |
---|---|
UpdatableSimpleBindRequest |
convertToSimpleBindRequest(DN dn,
ByteString password)
Converts this SASL bind request to a simple bind request.
|
void |
setSASLCredentials(java.lang.String saslMechanism,
ASN1OctetString saslCredentials)
Specifies the SASL credentials for the bind request, if any.
|
getSASLCredentials, getSASLMechanism, toLDAPSDKRequest
addRequestControl, setRequestControls
getOperationType, getRequestControls
void setSASLCredentials(java.lang.String saslMechanism, ASN1OctetString saslCredentials)
saslMechanism
- The name of the SASL mechanism to use. It must
not be null
.saslCredentials
- The SASL credentials for the bind request. It may
be null
if no credentials should be used.UpdatableSimpleBindRequest convertToSimpleBindRequest(DN dn, ByteString password)
UpdatableSimpleBindRequest
object that is returned.dn
- The DN to use for the simple bind request. It must not
be null
but may be empty for anonymous simple
authentication (in which case the password must also be
empty).password
- The password to use for the simple bind request. It
must not be null
but may be empty for anonymous
simple authentication (in which case the DN must also be
empty).UpdatableSimpleBindRequest
that was created and will
be used for the operation going forward.