| java.lang.Object |
| ↳ |
sun.security.mule.krb5.internal.AuthorizationData |
Class Overview
In RFC4120, the ASN.1 AuthorizationData is defined as:
AuthorizationData ::= SEQUENCE OF SEQUENCE {
ad-type [0] Int32,
ad-data [1] OCTET STRING
}
Here, two classes are used to implement it and they can be represented as follows:
AuthorizationData ::= SEQUENCE OF AuthorizationDataEntry
AuthorizationDataEntry ::= SEQUENCE {
ad-type[0] Int32,
ad-data[1] OCTET STRING
}
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
public
AuthorizationData
(DerValue der)
Constructs a new AuthorizationData, instance.
Parameters
| der
| A single DER-encoded value. |
Throws
| Asn1Exception
| if an error occurs while decoding an ASN1 encoded data. |
| IOException
| if an I/O error occurs while reading encoded data.
|
Public Methods
public
byte[]
asn1Encode
()
Encodes an AuthorizationData object.
Returns
- byte array of encoded
AuthorizationData object.
Throws
| Asn1Exception
| if an error occurs while decoding an ASN1 encoded data. |
| IOException
| if an I/O error occurs while reading encoded data.
|
public
static
AuthorizationData
parse
(DerInputStream data, byte explicitTag, boolean optional)
Parse (unmarshal) an AuthorizationData object from a DER input stream.
This form of parsing might be used when expanding a value which is part of
a constructed sequence and uses explicitly tagged type.
Parameters
| data
| The Der input stream value, which contains one or more marshaled value. |
| explicitTag
| Tag number. |
| optional
| Indicates if this data field is optional |
Returns
- an instance of AuthorizationData.
Throws
| Asn1Exception
| if an error occurs while decoding an ASN1 encoded data. |
| IOException
| if an I/O error occurs while reading encoded data. |
public
String
toString
()
Writes AuthorizationData data fields to a output stream.
Parameters
| cos
| A CCacheOutputStream to be written to. |
Throws
| IOException
| if an I/O exception occurs.
|