public class SubentriesDecorator extends ControlDecorator<Subentries> implements Subentries
value, valueLengthOID| Constructor and Description |
|---|
SubentriesDecorator(LdapApiService codec)
Default constructor
|
SubentriesDecorator(LdapApiService codec,
Subentries control)
Creates a Subentries decorating implementation for use with the codec,
while decorating the supplied Subentries control.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the SubEntryControl length 0x01 0x01 [0x00|0xFF]
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encodes the Subentries control.
|
byte[] |
getValue()
Get the control value
|
boolean |
isVisible()
Check if the subEntry is visible
|
void |
setVisibility(boolean visibility)
Set the visibility flag
|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalpublic SubentriesDecorator(LdapApiService codec)
public SubentriesDecorator(LdapApiService codec, Subentries control)
control - The Subentries Control to wrap with this decorator.public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<Subentries>computeLength in class ControlDecorator<Subentries>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<Subentries>buffer - The encoded sinkEncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<Subentries>getValue in class ControlDecorator<Subentries>public boolean isVisible()
SubentriesisVisible in interface Subentriespublic void setVisibility(boolean visibility)
SubentriessetVisibility in interface Subentriesvisibility - The visibility flag : true or falsepublic Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<Subentries>controlBytes - the encoded control bytesDecoderException - if anything goes wrongCopyright © 2021. All rights reserved.