public class CascadeDecorator extends ControlDecorator<Cascade> implements CodecControl<Cascade>, Cascade
value, valueLength| Constructor and Description |
|---|
CascadeDecorator(LdapApiService codec,
Cascade control)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Returns the default control length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the object to a PDU.
|
equals, getCodecService, getDecorated, getOid, getValue, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, hasValue, setValuegetCodecService, getDecoratedgetOid, isCritical, setCriticalpublic CascadeDecorator(LdapApiService codec, Cascade control)
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<Cascade>computeLength in class ControlDecorator<Cascade>public Asn1Object decode(byte[] controlBytes) throws DecoderException
CodecControldecode in interface CodecControl<Cascade>controlBytes - the encoded control bytesDecoderException - if anything goes wrongpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Decoratorencode in interface Asn1Objectencode in interface Decorator<Cascade>buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2021. All rights reserved.