|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.internal.AuthorizationData
public class AuthorizationData
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 }
| Constructor Summary | |
|---|---|
AuthorizationData(AuthorizationDataEntry new_entry)
|
|
AuthorizationData(AuthorizationDataEntry[] new_entries)
|
|
AuthorizationData(sun.security.util.DerValue der)
Constructs a new AuthorizationData, instance. |
|
| Method Summary | |
|---|---|
byte[] |
asn1Encode()
Encodes an AuthorizationData object. |
Object |
clone()
|
static AuthorizationData |
parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
Parse (unmarshal) an AuthorizationData object from a DER input stream. |
String |
toString()
|
void |
writeAuth(CCacheOutputStream cos)
Writes AuthorizationData data fields to a output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationData(AuthorizationDataEntry[] new_entries)
throws IOException
IOExceptionpublic AuthorizationData(AuthorizationDataEntry new_entry)
public AuthorizationData(sun.security.util.DerValue der)
throws Asn1Exception,
IOException
AuthorizationData, instance.
der - a single DER-encoded value.
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.| Method Detail |
|---|
public Object clone()
clone in class Object
public byte[] asn1Encode()
throws Asn1Exception,
IOException
AuthorizationData object.
AuthorizationData object.
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(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
throws Asn1Exception,
IOException
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.
data - the Der input stream value, which contains one or more marshaled value.explicitTag - tag number.optional - indicates if this data field is optional
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
public void writeAuth(CCacheOutputStream cos)
throws IOException
AuthorizationData data fields to a output stream.
cos - a CCacheOutputStream to be written to.
IOException - if an I/O exception occurs.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||