|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator<E>
org.apache.directory.api.dsmlv2.request.AbstractRequestDsml<E>
org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml<BindRequest,BindResponse>
org.apache.directory.api.dsmlv2.request.BindRequestDsml
public class BindRequestDsml
DSML Decorator for BindRequest
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.api.ldap.model.message.BindRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
BindRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of AuthRequestDsml. |
|
BindRequestDsml(LdapApiService codec,
BindRequest ldapMessage)
Creates a new getDecoratedMessage() of AuthRequestDsml. |
|
| 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. |
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces at least one response. |
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. |
MessageTypeEnum |
getType()
Gets the LDAP message type code associated with this Message. |
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 dn)
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. |
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls. |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml |
|---|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandoned |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractRequestDsml |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator |
|---|
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public BindRequestDsml(LdapApiService codec)
public BindRequestDsml(LdapApiService codec,
BindRequest ldapMessage)
ldapMessage - the message to decorate| Method Detail |
|---|
public MessageTypeEnum getType()
getType in interface MessagegetType in class AbstractDsmlMessageDecorator<BindRequest>public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml in interface DsmlDecorator<BindRequest>toDsml in class AbstractResultResponseRequestDsml<BindRequest,BindResponse>root - the root element
public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<BindResponse>public boolean isSimple()
isSimple in interface BindRequestpublic boolean getSimple()
getSimple in interface BindRequestpublic BindRequest setSimple(boolean isSimple)
setSimple in interface BindRequestisSimple - true if authentication is simple, false otherwise.
public byte[] getCredentials()
getCredentials in interface BindRequestpublic BindRequest setCredentials(String credentials)
setCredentials in interface BindRequestcredentials - the credentials if authentication is simple
public BindRequest setCredentials(byte[] credentials)
setCredentials in interface BindRequestcredentials - the credentials if authentication is simple
public String getName()
getName in interface BindRequestpublic BindRequest setName(String name)
setName in interface BindRequestname - the name of the authenticating user - leave null for anonymous user.
public Dn getDn()
getDn in interface BindRequestpublic BindRequest setDn(Dn dn)
setDn in interface BindRequestdn - the DN of the authenticating user - leave null for anonymous user.
public boolean isVersion3()
isVersion3 in interface BindRequestpublic boolean getVersion3()
getVersion3 in interface BindRequestpublic BindRequest setVersion3(boolean isVersion3)
setVersion3 in interface BindRequestisVersion3 - if true the client will be exhibiting version 3 bind behavior,
If false is used version 2 behavior will be exhibited.
public String getSaslMechanism()
getSaslMechanism in interface BindRequestpublic BindRequest setSaslMechanism(String saslMechanism)
setSaslMechanism in interface BindRequestsaslMechanism - the SASL mechanism
public BindRequest setMessageId(int messageId)
setMessageId in interface BindRequestsetMessageId in interface MessagesetMessageId in class AbstractDsmlMessageDecorator<BindRequest>messageId - The message Id
public BindRequest addControl(Control control)
throws MessageException
addControl in interface BindRequestaddControl in interface MessageaddControl in class AbstractDsmlMessageDecorator<BindRequest>control - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public BindRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface BindRequestaddAllControls in interface MessageaddAllControls in class AbstractDsmlMessageDecorator<BindRequest>controls - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
public BindRequest removeControl(Control control)
throws MessageException
removeControl in interface BindRequestremoveControl in interface MessageremoveControl in class AbstractDsmlMessageDecorator<BindRequest>control - 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 | |||||||||