|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BindRequest
Bind protocol operation request which authenticates and begins a client session. Does not yet contain interfaces for SASL authentication mechanisms.
| Field Summary | |
|---|---|
static MessageTypeEnum |
RESP_TYPE
Bind response message type enumeration value |
static MessageTypeEnum |
TYPE
Bind request message type enumeration value |
| Method Summary | |
|---|---|
BindRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
BindRequest |
addControl(Control control)
Adds a control to this Message. |
byte[] |
getCredentials()
Gets the simple credentials associated with a simple authentication attempt or null if this request uses SASL authentication mechanisms. |
Dn |
getDn()
Gets the DN of the subject in this authentication request. |
String |
getName()
Gets the 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. |
BindRequest |
removeControl(Control control)
Deletes a control removing it from this Message. |
BindRequest |
setCredentials(byte[] credentials)
Sets the simple credentials associated with a simple authentication attempt. |
BindRequest |
setCredentials(String credentials)
Sets the simple credentials associated with a simple authentication attempt. |
BindRequest |
setDn(Dn name)
Sets the DN of the subject in this authentication request. |
BindRequest |
setMessageId(int messageId)
Sets the Message ID for this request |
BindRequest |
setName(String name)
Sets the name of the subject in this authentication request. |
BindRequest |
setSaslMechanism(String saslMechanism)
Sets the SASL mechanism String associated with this BindRequest if the bind operation is using SASL. |
BindRequest |
setSimple(boolean isSimple)
Sets the authentication mechanism to simple or to SASL based authentication. |
BindRequest |
setVersion3(boolean isVersion3)
Sets whether or not the LDAP v3 or v2 protocol is used. |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest |
|---|
getResponseType |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest |
|---|
getResultResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Field Detail |
|---|
static final MessageTypeEnum TYPE
static final MessageTypeEnum RESP_TYPE
| Method Detail |
|---|
boolean isSimple()
boolean getSimple()
BindRequest setSimple(boolean isSimple)
isSimple - true if authentication is simple, false otherwise.
byte[] getCredentials()
BindRequest setCredentials(String credentials)
credentials - the credentials if authentication is simple
BindRequest setCredentials(byte[] credentials)
credentials - the credentials if authentication is simple
String getName()
BindRequest setName(String name)
name - the name of the authenticating user - leave null for anonymous user.
Dn getDn()
BindRequest setDn(Dn name)
name - the DN of the authenticating user - leave null for anonymous user.
boolean isVersion3()
boolean getVersion3()
BindRequest setVersion3(boolean isVersion3)
isVersion3 - if true the client will be exhibiting version 3 bind behavior,
If false is used version 2 behavior will be exhibited.
String getSaslMechanism()
BindRequest setSaslMechanism(String saslMechanism)
saslMechanism - the SASL mechanism
BindRequest setMessageId(int messageId)
setMessageId in interface MessagemessageId - The message Id
BindRequest addControl(Control control)
throws MessageException
addControl in interface Messagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
BindRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface Messagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
BindRequest removeControl(Control control)
throws MessageException
removeControl in interface Messagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||