public class AdDirSyncDecorator extends ControlDecorator<AdDirSync> implements AdDirSync
Constructor and Description |
---|
AdDirSyncDecorator(LdapApiService codec)
Creates a new instance of AdDirSyncDecorator.
|
AdDirSyncDecorator(LdapApiService codec,
AdDirSync control)
Creates a new instance of AdDirSyncDecorator.
|
Modifier and Type | Method and Description |
---|---|
void |
addFlag(AdDirSyncFlag flag) |
int |
computeLength()
Compute the AdDirSync length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AdDirSync control.
|
byte[] |
getCookie() |
Set<AdDirSyncFlag> |
getFlags() |
int |
getMaxReturnLength() |
byte[] |
getValue()
Get the control value
|
void |
removeFlag(AdDirSyncFlag flag) |
void |
setCookie(byte[] cookie) |
void |
setFlags(Set<AdDirSyncFlag> flags) |
void |
setMaxReturnLength(int maxReturnLength) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
getOid, isCritical, setCritical
public AdDirSyncDecorator(LdapApiService codec)
codec
- The LDAP Service to usepublic AdDirSyncDecorator(LdapApiService codec, AdDirSync control)
codec
- The LDAP Service to usecontrol
- The control to be decoratedpublic Set<AdDirSyncFlag> getFlags()
public void setFlags(Set<AdDirSyncFlag> flags)
public void addFlag(AdDirSyncFlag flag)
public void removeFlag(AdDirSyncFlag flag)
removeFlag
in interface AdDirSync
flag
- The flag to be removed from the current collection of flags.public int getMaxReturnLength()
getMaxReturnLength
in interface AdDirSync
public void setMaxReturnLength(int maxReturnLength)
setMaxReturnLength
in interface AdDirSync
maxReturnLength
- The maximum length of attributes to be returnedpublic byte[] getCookie()
public void setCookie(byte[] cookie)
public int computeLength()
0x30 L1 | +--> 0x02 0x0(1-4) nnn (flags) +--> 0x02 0x0(1-4) nnn (maxReturnLength) +--> 0x04 L2 xkcd!!!... (cookie)
computeLength
in interface Asn1Object
computeLength
in interface Decorator<AdDirSync>
computeLength
in class ControlDecorator<AdDirSync>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<AdDirSync>
buffer
- The encoded sinkEncoderException
- If anything goes wrong while encoding.public byte[] getValue()
getValue
in interface CodecControl<AdDirSync>
getValue
in class ControlDecorator<AdDirSync>
public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode
in interface CodecControl<AdDirSync>
controlBytes
- the encoded control bytesDecoderException
- if anything goes wrongCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.