public class BindResponseCodec extends LdapResponseCodec
ldapMessageLengthparent| Constructor and Description |
|---|
BindResponseCodec()
Creates a new BindResponse object.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeLengthProtocolOp()
Compute the BindResponse length
BindResponse :
|
protected void |
encodeProtocolOp(ByteBuffer buffer)
Encode the BindResponse message to a PDU.
|
MessageTypeEnum |
getMessageType()
Get the message type
|
String |
getMessageTypeName()
Get the message type Name
|
byte[] |
getServerSaslCreds() |
void |
setServerSaslCreds(byte[] serverSaslCreds)
Set the server sasl credentials
|
String |
toString()
Get a String representation of a BindResponse
|
computeLdapResultLength, encode, getLdapResponseLength, getLdapResult, setLdapResultaddControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toStringaddLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic MessageTypeEnum getMessageType()
getMessageType in class LdapMessageCodecpublic String getMessageTypeName()
getMessageTypeName in class LdapMessageCodecpublic byte[] getServerSaslCreds()
public void setServerSaslCreds(byte[] serverSaslCreds)
serverSaslCreds - The serverSaslCreds to set.protected int computeLengthProtocolOp()
0x61 L1 | +--> LdapResult +--> [serverSaslCreds] L1 = Length(LdapResult) [ + Length(serverSaslCreds) ] Length(BindResponse) = Length(0x61) + Length(L1) + L1
computeLengthProtocolOp in class LdapMessageCodecprotected void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
LdapResult.encode [0x87 LL serverSaslCreds]
encodeProtocolOp in class LdapMessageCodecbuffer - The buffer where to put the PDUEncoderExceptionpublic String toString()
toString in class LdapResponseCodecCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.