|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.LdapMessageCodec
org.apache.directory.shared.ldap.codec.bind.BindRequestCodec
public class BindRequestCodec
A BindRequest ldapObject. It's a sub-class of Asn1Object, and it extends the Asn1Object class to be seen as a member of the LdapMessage CHOICE.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
BindRequestCodec()
Creates a new BindRequest object. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the BindRequest length BindRequest : 0x60 L1 | +--> 0x02 0x01 (1..127) version +--> 0x04 L2 name +--> authentication L2 = Length(name) L3/4 = Length(authentication) Length(BindRequest) = Length(0x60) + Length(L1) + L1 + Length(0x02) + 1 + 1 + Length(0x04) + Length(L2) + L2 + Length(authentication) |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the BindRequest message to a PDU. |
LdapAuthentication |
getAuthentication()
Get the user authentication |
int |
getMessageType()
Get the message type |
LdapDN |
getName()
Get the user name |
SaslCredentials |
getSaslAuthentication()
Get the user sasl authentication |
SimpleAuthentication |
getSimpleAuthentication()
Get the user simple authentication |
int |
getVersion()
Get the protocol version |
boolean |
isLdapV3()
Check if the Ldap version in use is 3 |
void |
setAuthentication(LdapAuthentication authentication)
Set the user authentication |
void |
setName(LdapDN name)
Set the user name |
void |
setVersion(int version)
Set the protocol version |
java.lang.String |
toString()
Get a String representation of a BindRequest |
| Methods inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
|---|
addControl, getAbandonRequest, getAddRequest, getAddResponse, getBindRequest, getBindResponse, getCompareRequest, getCompareResponse, getControls, getControls, getCurrentControl, getDelRequest, getDelResponse, getExtendedRequest, getExtendedResponse, getIntermediateResponse, getLdapResponse, getMessageId, getMessageTypeName, getModifyDNRequest, getModifyDNResponse, getModifyRequest, getModifyResponse, getSearchRequest, getSearchResultDone, getSearchResultEntry, getSearchResultReference, getUnBindRequest, initControls, setMessageId, setProtocolOP |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BindRequestCodec()
| Method Detail |
|---|
public int getMessageType()
getMessageType in class LdapMessageCodecpublic LdapAuthentication getAuthentication()
public SimpleAuthentication getSimpleAuthentication()
public SaslCredentials getSaslAuthentication()
public void setAuthentication(LdapAuthentication authentication)
authentication - The user authenticationpublic LdapDN getName()
public void setName(LdapDN name)
name - The user namepublic int getVersion()
public boolean isLdapV3()
public void setVersion(int version)
version - The protocol versionpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in class LdapMessageCodec
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in class LdapMessageCodecbuffer - The buffer where to put the PDU
EncoderException - If anything goes wrong.public java.lang.String toString()
toString in class LdapMessageCodec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||