public class

AuthorizationData

extends Object
implements Cloneable
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

Fields
private AuthorizationDataEntry[] entry
Public Constructors
AuthorizationData(AuthorizationDataEntry[] new_entries)
AuthorizationData(AuthorizationDataEntry new_entry)
AuthorizationData(DerValue der)
Constructs a new AuthorizationData, instance.
Public Methods
byte[] asn1Encode()
Encodes an AuthorizationData object.
Object clone()
static AuthorizationData parse(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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private AuthorizationDataEntry[] entry

Public Constructors

public AuthorizationData (AuthorizationDataEntry[] new_entries)

Parameters
new_entries
Throws
IOException

public AuthorizationData (AuthorizationDataEntry new_entry)

Parameters
new_entry

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 Object clone ()

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 ()

public void writeAuth (CCacheOutputStream cos)

Writes AuthorizationData data fields to a output stream.

Parameters
cos A CCacheOutputStream to be written to.
Throws
IOException if an I/O exception occurs.