APIdia Launch Partner
Top Fields Constructors Methods
sun.security.krb5.internal

public Class AuthorizationDataEntry

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
sun.security.util.*, java.io.IOException, sun.security.krb5.Asn1Exception, sun.security.krb5.internal.ccache.CCacheOutputStream

Field Summary

Modifier and TypeField and Description
public byte[]
public int

Constructor Summary

AccessConstructor and Description
private
public
AuthorizationDataEntry(int new_adType, byte[] new_adData)

public
AuthorizationDataEntry(DerValue
a single DER-encoded value.
encoding
)

Constructs an instance of AuthorizationDataEntry.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte array of encoded AuthorizationDataEntry object.
asn1Encode
()

Encodes an AuthorizationDataEntry object.

public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
writeEntry(CCacheOutputStream
a CCacheOutputStream.
cos
)

Writes the entry's data fields in FCC format to an output stream.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

adDataback to summary
public byte[] adData
adTypeback to summary
public int adType

Constructor Detail

AuthorizationDataEntryback to summary
private AuthorizationDataEntry()
AuthorizationDataEntryback to summary
public AuthorizationDataEntry(int new_adType, byte[] new_adData)
AuthorizationDataEntryback to summary
public AuthorizationDataEntry(DerValue encoding) throws Asn1Exception, IOException

Constructs an instance of AuthorizationDataEntry.

Parameters
encoding:DerValue

a single DER-encoded value.

Method Detail

asn1Encodeback to summary
public byte[] asn1Encode() throws Asn1Exception, IOException

Encodes an AuthorizationDataEntry object.

Returns:byte[]

byte array of encoded AuthorizationDataEntry object.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

writeEntryback to summary
public void writeEntry(CCacheOutputStream cos) throws IOException

Writes the entry's data fields in FCC format to an output stream.

Parameters
cos:CCacheOutputStream

a CCacheOutputStream.

Exceptions
IOException:
if an I/O exception occurs.