public class AdAndOr
extends org.apache.directory.api.asn1.AbstractAsn1Object
AD-AND-OR ::= SEQUENCE {
condition-count [0] Int32,
elements [1]
}
| Constructor and Description |
|---|
AdAndOr()
Creates a new instance of AdAndOr
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the AD-AND-OR length
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AD-AND-OR message to a PDU.
|
int |
getConditionCount() |
AuthorizationData |
getElements() |
void |
setConditionCount(int conditionCount) |
void |
setElements(AuthorizationData elements) |
String |
toString() |
String |
toString(String tabs) |
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)
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectencode in class org.apache.directory.api.asn1.AbstractAsn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()public String toString(String tabs)
Object.toString()Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.