public class AdAndOr
extends java.lang.Object
implements org.apache.directory.api.asn1.Asn1Object
AD-AND-OR ::= SEQUENCE {
condition-count [0] Int32,
elements [1]
}
| Modifier and Type | Field and Description |
|---|---|
private int |
adAndOrSeqLength |
private int |
conditionCount
The condition-count
|
private int |
conditionCountTagLength |
private AuthorizationData |
elements
The elements
|
private int |
elementsTagLength |
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
The logger
|
| Constructor and Description |
|---|
AdAndOr()
Creates a new instance of AdAndOr
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the AD-AND-OR length
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the AD-AND-OR message to a PDU.
|
int |
getConditionCount() |
AuthorizationData |
getElements() |
void |
setConditionCount(int conditionCount) |
void |
setElements(AuthorizationData elements) |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs) |
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private int conditionCount
private AuthorizationData elements
private int conditionCountTagLength
private int elementsTagLength
private int adAndOrSeqLength
public int getConditionCount()
public void setConditionCount(int conditionCount)
conditionCount - the conditionCount to setpublic AuthorizationData getElements()
public void setElements(AuthorizationData elements)
elements - the elements to setpublic int computeLength()
0x30 L1 AD-AND-OR sequence
|
+--> 0xA1 L2 condition count tag
| |
| +--> 0x02 L2-1 condition count (int)
|
+--> 0xA2 L3 elements tag
|
+--> 0x30 L3-1 elements (AuthorizationData)
computeLength in interface org.apache.directory.api.asn1.Asn1Objectpublic java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toString(java.lang.String tabs)
Object.toString()