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

public Class KDCRep

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.krb5.internal.TGSRep, sun.security.krb5.internal.ASRep
Imports
sun.security.krb5.*, sun.security.util.*, java.io.IOException, java.math.BigInteger

Implements the ASN.1 KDC-REP type.
KDC-REP         ::= SEQUENCE {
        pvno            [0] INTEGER (5),
        msg-type        [1] INTEGER (11 -- AS -- | 13 -- TGS --),
        padata          [2] SEQUENCE OF PA-DATA OPTIONAL
                                  -- NOTE: not empty --,
        crealm          [3] Realm,
        cname           [4] PrincipalName,
        ticket          [5] Ticket,
        enc-part        [6] EncryptedData
                                  -- EncASRepPart or EncTGSRepPart,
                                  -- as appropriate
}

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

Constructor Summary

AccessConstructor and Description
public
KDCRep(PAData[] new_pAData, PrincipalName new_cname, Ticket new_ticket, EncryptedData new_encPart, int req_type)

public
public
KDCRep(byte[] data, int req_type)

public
KDCRep(DerValue encoding, int req_type)

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte array of encoded APReq object.
asn1Encode
()

Encodes this object to a byte array.

protected void
init(DerValue
a single DER-encoded value.
encoding
,
int
reply message type.
req_type
)

Initializes an KDCRep object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cnameback to summary
public PrincipalName cname
encKDCRepPartback to summary
public EncKDCRepPart encKDCRepPart
encPartback to summary
public EncryptedData encPart
msgTypeback to summary
private int msgType
pADataback to summary
public PAData[] pAData
pvnoback to summary
private int pvno
ticketback to summary
public Ticket ticket

Constructor Detail

KDCRepback to summary
public KDCRep(PAData[] new_pAData, PrincipalName new_cname, Ticket new_ticket, EncryptedData new_encPart, int req_type) throws IOException
KDCRepback to summary
public KDCRep()
KDCRepback to summary
public KDCRep(byte[] data, int req_type) throws Asn1Exception, KrbApErrException, RealmException, IOException
KDCRepback to summary
public KDCRep(DerValue encoding, int req_type) throws Asn1Exception, RealmException, KrbApErrException, IOException

Method Detail

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

Encodes this object to a byte array.

Returns:byte[]

byte array of encoded APReq 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
protected void init(DerValue encoding, int req_type) throws Asn1Exception, RealmException, IOException, KrbApErrException

Initializes an KDCRep object.

Parameters
encoding:DerValue

a single DER-encoded value.

req_type:int

reply message type.

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