public class ProxiedAuthzDecorator extends ControlDecorator<ProxiedAuthz> implements ProxiedAuthz
value, valueLengthOID| Constructor and Description |
|---|
ProxiedAuthzDecorator(LdapApiService codec)
Creates a new instance of ProxiedAuthzDecoder wrapping a newly created
ProxiedAuthz Control object.
|
ProxiedAuthzDecorator(LdapApiService codec,
ProxiedAuthz control)
Creates a new instance of ProxiedAuthzDecorator wrapping the supplied
ProxiedAuthz Control.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the ProxiedAuthzControl length
0x04 L1 authzId]
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encodes the ProxiedAuthz control.
|
String |
getAuthzId() |
byte[] |
getValue()
Get the control value
|
void |
setAuthzId(String authzId) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalpublic ProxiedAuthzDecorator(LdapApiService codec)
public ProxiedAuthzDecorator(LdapApiService codec, ProxiedAuthz control)
control - The ProxiedAuthz Control to be decorated.public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<ProxiedAuthz>computeLength in class ControlDecorator<ProxiedAuthz>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<ProxiedAuthz>buffer - The encoded sinkEncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<ProxiedAuthz>getValue in class ControlDecorator<ProxiedAuthz>public String getAuthzId()
getAuthzId in interface ProxiedAuthzpublic void setAuthzId(String authzId)
setAuthzId in interface ProxiedAuthzauthzId - The authzId to set. Must be empty (not null), or a valid DN prefixed by 'dn:', or any
user information prefixed by 'u:'public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<ProxiedAuthz>controlBytes - the encoded control bytesDecoderException - if anything goes wrongCopyright © 2021. All rights reserved.