public class ProxiedAuthzDecorator extends ControlDecorator<ProxiedAuthz> implements ProxiedAuthz
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
authzIdBytes
A temporary storage for the authzId
|
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.
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encodes the ProxiedAuthz control.
|
java.lang.String |
getAuthzId() |
private ProxiedAuthz |
getProxiedAuthz()
Internally used to not have to cast the decorated Control.
|
byte[] |
getValue()
Get the control value
|
void |
setAuthzId(java.lang.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.private ProxiedAuthz getProxiedAuthz()
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<ProxiedAuthz>computeLength in class ControlDecorator<ProxiedAuthz>public java.nio.ByteBuffer encode(java.nio.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 java.lang.String getAuthzId()
getAuthzId in interface ProxiedAuthzpublic void setAuthzId(java.lang.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 wrong