public class AuthorizationData
extends java.lang.Object
implements org.apache.directory.api.asn1.Asn1Object
AuthorizationData ::= SEQUENCE OF SEQUENCE {
ad-type [0] Int32,
ad-data [1] OCTET STRING
}
| Modifier and Type | Field and Description |
|---|---|
private int[] |
adDataTagLen |
private int[] |
adTypeTagLen |
private java.util.List<AuthorizationDataEntry> |
authorizationData
The list of AuthorizationData elements
|
private int[] |
authorizationDataSeqLen |
private int |
authorizationDataSeqSeqLen |
private AuthorizationDataEntry |
currentAD
The current AD being processed
|
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
The logger
|
| Constructor and Description |
|---|
AuthorizationData()
Creates a new set of AuthorizationData
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(AuthorizationDataEntry entry)
Add a new AuthorizationDataEntry
|
int |
computeLength()
Compute the AuthorizationData length
|
void |
createNewAD()
Create a new currentAD
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the EncryptedData message to a PDU.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<AuthorizationDataEntry> |
getAuthorizationData() |
AuthorizationDataEntry |
getCurrentAD() |
byte[] |
getCurrentAdData() |
AuthorizationType |
getCurrentAdType() |
int |
hashCode() |
void |
setCurrentAdData(byte[] adData)
Set the current AD data
|
void |
setCurrentAdType(AuthorizationType adType)
Set the current AD type
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs) |
private java.util.List<AuthorizationDataEntry> authorizationData
private AuthorizationDataEntry currentAD
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private int[] adTypeTagLen
private int[] adDataTagLen
private int[] authorizationDataSeqLen
private int authorizationDataSeqSeqLen
public AuthorizationData()
public int computeLength()
0x30 L1 AuthorizationData sequence
|
+-- 0x30 L2 The AD sequence
|
+--> 0xA0 L3 adType tag
| |
| +--> 0x02 L3-1 adType (int)
|
+--> 0xA1 L4 adData tag
|
+--> 0x04 L<4-1 adData (OCTET STRING)
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 AuthorizationType getCurrentAdType()
public void setCurrentAdType(AuthorizationType adType)
public byte[] getCurrentAdData()
public void setCurrentAdData(byte[] adData)
public AuthorizationDataEntry getCurrentAD()
public void createNewAD()
public void addEntry(AuthorizationDataEntry entry)
public java.util.List<AuthorizationDataEntry> getAuthorizationData()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString(java.lang.String tabs)
Object.toString()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()