|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.kerberos.components.AuthorizationData
public class AuthorizationData
A structure to hold the authorization data.
AuthorizationData ::= SEQUENCE OF SEQUENCE {
ad-type [0] Int32,
ad-data [1] OCTET STRING
}
| Constructor Summary | |
|---|---|
AuthorizationData()
Creates a new set of AuthorizationData |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationData()
| Method Detail |
|---|
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.shared.asn1.EncoderException
encode in interface org.apache.directory.shared.asn1.Asn1Objectencode in class org.apache.directory.shared.asn1.AbstractAsn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.
org.apache.directory.shared.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 int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString(String tabs)
Object.toString()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||