public class ProxiedAuthzDecorator extends ControlDecorator<ProxiedAuthz> implements ProxiedAuthz
OID
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
|
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, toString
getOid, isCritical, setCritical
public ProxiedAuthzDecorator(LdapApiService codec)
codec
- The LDAP service instancepublic ProxiedAuthzDecorator(LdapApiService codec, ProxiedAuthz control)
codec
- The LDAP service instancecontrol
- The ProxiedAuthz Control to be decorated.public int computeLength()
0x04 L1 authzId]
computeLength
in interface Asn1Object
computeLength
in interface Decorator<ProxiedAuthz>
computeLength
in class ControlDecorator<ProxiedAuthz>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
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 ProxiedAuthz
public void setAuthzId(String authzId)
setAuthzId
in interface ProxiedAuthz
authzId
- 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 © 2003–2018 The Apache Software Foundation. All rights reserved.