|
||||||||||
| 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.server.kerberos.shared.messages.value.AuthorizationDataEntry
public class AuthorizationDataEntry
A single AuthorizationData The ASN.1 grammar is : -- NOTE: AuthorizationData is always used as an OPTIONAL field and -- should not be empty. AuthorizationDataEntry ::= SEQUENCE { ad-type [0] Int32, ad-data [1] OCTET STRING }
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
AuthorizationDataEntry()
Creates a new instance of AuthorizationDataEntry. |
|
AuthorizationDataEntry(AuthorizationType adType,
byte[] adData)
Creates a new instance of AuthorizationDataEntry. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the AuthorizationDataEntry length AuthorizationDataEntry : 0x30 L1 AuthorizationDataEntry | +--> 0xA0 L2 adType tag | | | +--> 0x02 L2-1 adType (int) | +--> 0xA1 L3 adData tag | +--> 0x04 L3-1 adData (OCTET STRING) where L1 = L2 + lenght(0xA0) + length(L2) + L3 + lenght(0xA1) + length(L3) and L2 = L2-1 + length(0x02) + length( L2-1) L3 = L3-1 + length(0x04) + length( L3-1) |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the AuthorizationDataEntry message to a PDU. |
byte[] |
getAdData()
Returns the raw bytes of the authorization data. |
AuthorizationType |
getAdType()
Returns the AuthorizationType. |
void |
setAdData(byte[] adData)
Set the authorization data |
void |
setAdType(AuthorizationType adType)
Set the authorization type |
void |
setAdType(int adType)
Set the authorization type |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationDataEntry()
public AuthorizationDataEntry(AuthorizationType adType,
byte[] adData)
adType - The authorizationTypeadData - The authorization data| Method Detail |
|---|
public byte[] getAdData()
public void setAdData(byte[] adData)
adData - The datapublic AuthorizationType getAdType()
AuthorizationType.
AuthorizationType.public void setAdType(int adType)
adType - The authorization typepublic void setAdType(AuthorizationType adType)
adType - The authorization typepublic int computeLength()
computeLength in interface org.apache.directory.shared.asn1.Asn1ObjectcomputeLength in class org.apache.directory.shared.asn1.AbstractAsn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.shared.asn1.codec.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.codec.EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toString(java.lang.String tabs)
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||