public interface InternalBindRequest extends SingleReplyRequest, InternalAbandonableRequest
Modifier and Type | Field and Description |
---|---|
static MessageTypeEnum |
RESP_TYPE
Bind response message type enumeration value
|
static MessageTypeEnum |
TYPE
Bind request message type enumeration value
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getCredentials()
Gets the simple credentials associated with a simple authentication
attempt or null if this request uses SASL authentication mechanisms.
|
DN |
getName()
Gets the distinguished name of the subject in this authentication
request.
|
String |
getSaslMechanism()
Gets the SASL mechanism String associated with this BindRequest if the
bind operation is using SASL.
|
boolean |
getSimple()
Checks to see if the authentication mechanism is simple and not SASL
based.
|
boolean |
getVersion3()
Gets whether or not the Ldap v3 protocol is used.
|
boolean |
isSimple()
Checks to see if the authentication mechanism is simple and not SASL
based.
|
boolean |
isVersion3()
Checks to see if the Ldap v3 protocol is used.
|
void |
setCredentials(byte[] credentials)
Sets the simple credentials associated with a simple authentication
attempt ignored if this request uses SASL authentication mechanisms.
|
void |
setName(DN name)
Sets the distinguished name of the subject in this authentication
request.
|
void |
setSaslMechanism(String saslMechanism)
Sets the SASL mechanism String associated with this BindRequest if the
bind operation is using SASL.
|
void |
setSimple(boolean isSimple)
Sets the authentication mechanism to simple or to SASL based
authentication.
|
void |
setVersion3(boolean isVersion3)
Sets whether or not the LDAP v3 or v2 protocol is used.
|
getResponseType
getResultResponse
hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
abandon, addAbandonListener, isAbandoned
static final MessageTypeEnum TYPE
static final MessageTypeEnum RESP_TYPE
boolean isSimple()
boolean getSimple()
void setSimple(boolean isSimple)
isSimple
- true if authentication is simple, false otherwise.byte[] getCredentials()
void setCredentials(byte[] credentials)
credentials
- the credentials if authentication is simple, null otherwiseDN getName()
void setName(DN name)
name
- the DN of the authenticating user - leave null for annonymous
user.boolean isVersion3()
boolean getVersion3()
void setVersion3(boolean isVersion3)
isVersion3
- if true the client will be exhibiting version 3 bind behavoir,
if false is used version 2 behavoir will be exhibited.String getSaslMechanism()
void setSaslMechanism(String saslMechanism)
saslMechanism
- the SASL mechanismCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.