public class

KDCRep

extends Object
java.lang.Object
   ↳ sun.security.mule.krb5.internal.KDCRep
Known Direct Subclasses

Class Overview

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.

Summary

Fields
private boolean DEBUG
public PrincipalName cname
public Realm crealm
public EncKDCRepPart encKDCRepPart
public EncryptedData encPart
private int msgType
private PAData[] pAData
private int pvno
public Ticket ticket
Public Constructors
KDCRep(PAData[] new_pAData, Realm new_crealm, PrincipalName new_cname, Ticket new_ticket, EncryptedData new_encPart, int req_type)
KDCRep()
KDCRep(byte[] data, int req_type)
KDCRep(DerValue encoding, int req_type)
Public Methods
byte[] asn1Encode()
Encodes this object to a byte array.
Protected Methods
void init(DerValue encoding, int req_type)
Initializes an KDCRep object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private boolean DEBUG

public PrincipalName cname

public Realm crealm

public EncKDCRepPart encKDCRepPart

public EncryptedData encPart

private int msgType

private PAData[] pAData

private int pvno

public Ticket ticket

Public Constructors

public KDCRep (PAData[] new_pAData, Realm new_crealm, PrincipalName new_cname, Ticket new_ticket, EncryptedData new_encPart, int req_type)

Parameters
new_pAData
new_crealm
new_cname
new_ticket
new_encPart
req_type
Throws
IOException

public KDCRep ()

public KDCRep (byte[] data, int req_type)

Parameters
data
req_type

public KDCRep (DerValue encoding, int req_type)

Parameters
encoding
req_type

Public Methods

public byte[] asn1Encode ()

Encodes this object to a byte array.

Returns
  • byte array of encoded APReq object.
Throws
Asn1Exception if an error occurs while decoding an ASN1 encoded data.
IOException if an I/O error occurs while reading encoded data.

Protected Methods

protected void init (DerValue encoding, int req_type)

Initializes an KDCRep object.

Parameters
encoding A single DER-encoded value.
req_type Reply message type.
Throws
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 constructing a Realm object from DER-encoded data.
KrbApErrException if the value read from the DER-encoded data stream does not match the pre-defined value.