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

public Class KrbCredInfo

extends Object
Class Inheritance
Imports
sun.security.krb5.*, sun.security.util.*, java.util.ArrayList, java.io.IOException

Implements the ASN.1 KrbCredInfo type.
KrbCredInfo  ::= SEQUENCE {
     key             [0] EncryptionKey,
     prealm          [1] Realm OPTIONAL,
     pname           [2] PrincipalName OPTIONAL,
     flags           [3] TicketFlags OPTIONAL,
     authtime        [4] KerberosTime OPTIONAL,
     starttime       [5] KerberosTime OPTIONAL,
     endtime         [6] KerberosTime OPTIONAL,
     renew-till      [7] KerberosTime OPTIONAL,
     srealm          [8] Realm OPTIONAL,
     sname           [9] PrincipalName OPTIONAL,
     caddr           [10] HostAddresses OPTIONAL
}

This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.

Field Summary

Modifier and TypeField and Description
public KerberosTime
public HostAddresses
public KerberosTime
public TicketFlags
public EncryptionKey
public PrincipalName
public KerberosTime
public PrincipalName
public KerberosTime

Constructor Summary

AccessConstructor and Description
private
public
KrbCredInfo(EncryptionKey new_key, PrincipalName new_pname, TicketFlags new_flags, KerberosTime new_authtime, KerberosTime new_starttime, KerberosTime new_endtime, KerberosTime new_renewTill, PrincipalName new_sname, HostAddresses new_caddr)

public
KrbCredInfo(DerValue
a Der-encoded data.
encoding
)

Constructs a KrbCredInfo object.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the byte array of encoded KrbCredInfo object.
asn1Encode
()

Encodes an KrbCredInfo object.

public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authtimeback to summary
public KerberosTime authtime
caddrback to summary
public HostAddresses caddr
endtimeback to summary
public KerberosTime endtime
flagsback to summary
public TicketFlags flags
keyback to summary
public EncryptionKey key
pnameback to summary
public PrincipalName pname
renewTillback to summary
public KerberosTime renewTill
snameback to summary
public PrincipalName sname
starttimeback to summary
public KerberosTime starttime

Constructor Detail

KrbCredInfoback to summary
private KrbCredInfo()
KrbCredInfoback to summary
public KrbCredInfo(EncryptionKey new_key, PrincipalName new_pname, TicketFlags new_flags, KerberosTime new_authtime, KerberosTime new_starttime, KerberosTime new_endtime, KerberosTime new_renewTill, PrincipalName new_sname, HostAddresses new_caddr)
KrbCredInfoback to summary
public KrbCredInfo(DerValue encoding) throws Asn1Exception, IOException, RealmException

Constructs a KrbCredInfo object.

Parameters
encoding:DerValue

a Der-encoded data.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
RealmException:
if an error occurs while parsing a Realm object.

Method Detail

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

Encodes an KrbCredInfo object.

Returns:byte[]

the byte array of encoded KrbCredInfo 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.