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

public Class KRBCred

extends Object
Class Inheritance
Imports
sun.security.krb5.EncryptedData, .Asn1Exception, .RealmException, sun.security.util.*, java.util.ArrayList, java.io.IOException, java.math.BigInteger

Implements the ASN.1 Authenticator type.
KRB-CRED     ::= [APPLICATION 22] SEQUENCE {
     pvno            [0] INTEGER (5),
     msg-type        [1] INTEGER (22),
     tickets         [2] SEQUENCE OF Ticket,
     enc-part        [3] EncryptedData -- EncKrbCredPart
}

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 EncryptedData
private int
private int
public Ticket[]

Constructor Summary

AccessConstructor and Description
public
KRBCred(Ticket[] new_tickets, EncryptedData new_encPart)

public
KRBCred(byte[] data)

public
KRBCred(DerValue encoding)

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the data of encoded EncAPRepPart object.
asn1Encode
()

Encodes an KRBCred object.

private void
init(DerValue
a single DER-encoded value.
encoding
)

Initializes an KRBCred object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encPartback to summary
public EncryptedData encPart
msgTypeback to summary
private int msgType
pvnoback to summary
private int pvno
ticketsback to summary
public Ticket[] tickets

Constructor Detail

KRBCredback to summary
public KRBCred(Ticket[] new_tickets, EncryptedData new_encPart) throws IOException
KRBCredback to summary
public KRBCred(byte[] data) throws Asn1Exception, RealmException, KrbApErrException, IOException
KRBCredback to summary
public KRBCred(DerValue encoding) throws Asn1Exception, RealmException, KrbApErrException, IOException

Method Detail

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

Encodes an KRBCred object.

Returns:byte[]

the data of encoded EncAPRepPart object.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
initback to summary
private void init(DerValue encoding) throws Asn1Exception, RealmException, KrbApErrException, IOException

Initializes an KRBCred object.

Parameters
encoding:DerValue

a single DER-encoded value.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
RealmException:
if an error occurs while parsing a Realm object.
KrbApErrException:
if the value read from the DER-encoded data stream does not match the pre-defined value.
IOException:
if an I/O error occurs while reading encoded data.