public class BindResponseDecorator extends ResponseDecorator<BindResponse> implements BindResponse
messageLength| Constructor and Description |
|---|
BindResponseDecorator(LdapApiService codec,
BindResponse decoratedMessage)
Makes a BindResponse a MessageDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the BindResponse length
BindResponse :
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the BindResponse message to a PDU.
|
byte[] |
getServerSaslCreds()
Gets the optional property holding SASL authentication response parameters
that are SASL mechanism specific.
|
void |
setServerSaslCreds(byte[] serverSaslCreds)
Sets the optional property holding SASL authentication response paramters
that are SASL mechanism specific.
|
getLdapResult, setLdapResultaddAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdpublic BindResponseDecorator(LdapApiService codec, BindResponse decoratedMessage)
decoratedMessage - the decorated BindResponsepublic byte[] getServerSaslCreds()
getServerSaslCreds in interface BindResponsepublic void setServerSaslCreds(byte[] serverSaslCreds)
setServerSaslCreds in interface BindResponseserverSaslCreds - the sasl auth. mech. specific credentialspublic int computeLength()
0x61 L1 | +--> LdapResult +--> [serverSaslCreds] L1 = Length(LdapResult) [ + Length(serverSaslCreds) ] Length(BindResponse) = Length(0x61) + Length(L1) + L1
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<BindResponse>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
LdapResult.encode [0x87 LL serverSaslCreds]
encode in interface Asn1Objectencode in interface Decorator<BindResponse>bb - The buffer where to put the PDUbindResponseDecorator - The decorated BindResponse to encodeEncoderException - when encoding operations failCopyright © 2021. All rights reserved.