public class AdAndOr extends Object implements org.apache.directory.api.asn1.Asn1Object
AD-AND-OR ::= SEQUENCE { condition-count [0] Int32, elements [1] <AuthorizationData> }
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 AdAndOr()
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.Asn1Object
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode
in interface org.apache.directory.api.asn1.Asn1Object
buffer
- The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
public String toString(String tabs)
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.