public class AuthorizationData
extends org.apache.directory.api.asn1.AbstractAsn1Object
AuthorizationData ::= SEQUENCE OF SEQUENCE {
ad-type [0] Int32,
ad-data [1] OCTET STRING
}
| 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
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the EncryptedData message to a PDU.
|
boolean |
equals(Object obj) |
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
|
String |
toString() |
String |
toString(String tabs) |
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)
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 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 List<AuthorizationDataEntry> getAuthorizationData()
public String toString(String tabs)
Object.toString()public String toString()
toString in class ObjectObject.toString()Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.