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

public Class EncKDCRepPart

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

Implements the ASN.1 EncKDCRepPart type.
EncKDCRepPart          ::= SEQUENCE {
     key               [0] EncryptionKey,
     last-req          [1] LastReq,
     nonce             [2] UInt32,
     key-expiration    [3] KerberosTime OPTIONAL,
     flags             [4] TicketFlags,
     authtime          [5] KerberosTime,
     starttime         [6] KerberosTime OPTIONAL,
     endtime           [7] KerberosTime,
     renew-till        [8] KerberosTime OPTIONAL,
     srealm            [9] Realm,
     sname             [10] PrincipalName,
     caddr             [11] HostAddresses OPTIONAL,
     encrypted-pa-data [12] SEQUENCE OF PA-DATA 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 KerberosTime
public LastReq
public int
public int
public PAData[]
public KerberosTime
public PrincipalName
public KerberosTime

Constructor Summary

AccessConstructor and Description
public
EncKDCRepPart(EncryptionKey new_key, LastReq new_lastReq, int new_nonce, KerberosTime new_keyExpiration, TicketFlags new_flags, KerberosTime new_authtime, KerberosTime new_starttime, KerberosTime new_endtime, KerberosTime new_renewTill, PrincipalName new_sname, HostAddresses new_caddr, PAData[] new_pAData, int new_msgType)

public
public
EncKDCRepPart(byte[] data, int rep_type)

public
EncKDCRepPart(DerValue encoding, int rep_type)

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte array of encoded EncKDCRepPart object.
asn1Encode
(int
type of encrypted reply message.
rep_type
)

Encodes an EncKDCRepPart object.

protected void
init(DerValue
a single DER-encoded value.
encoding
,
int
type of the encrypted reply message.
rep_type
)

Initializes an EncKDCRepPart object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

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
keyExpirationback to summary
public KerberosTime keyExpiration
lastReqback to summary
public LastReq lastReq
msgTypeback to summary
public int msgType
nonceback to summary
public int nonce
pADataback to summary
public PAData[] pAData
renewTillback to summary
public KerberosTime renewTill
snameback to summary
public PrincipalName sname
starttimeback to summary
public KerberosTime starttime

Constructor Detail

EncKDCRepPartback to summary
public EncKDCRepPart(EncryptionKey new_key, LastReq new_lastReq, int new_nonce, KerberosTime new_keyExpiration, TicketFlags new_flags, KerberosTime new_authtime, KerberosTime new_starttime, KerberosTime new_endtime, KerberosTime new_renewTill, PrincipalName new_sname, HostAddresses new_caddr, PAData[] new_pAData, int new_msgType)
EncKDCRepPartback to summary
public EncKDCRepPart()
EncKDCRepPartback to summary
public EncKDCRepPart(byte[] data, int rep_type) throws Asn1Exception, IOException, RealmException
EncKDCRepPartback to summary
public EncKDCRepPart(DerValue encoding, int rep_type) throws Asn1Exception, IOException, RealmException

Method Detail

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

Encodes an EncKDCRepPart object.

Parameters
rep_type:int

type of encrypted reply message.

Returns:byte[]

byte array of encoded EncKDCRepPart 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 rep_type) throws Asn1Exception, IOException, RealmException

Initializes an EncKDCRepPart object.

Parameters
encoding:DerValue

a single DER-encoded value.

rep_type:int

type of the encrypted reply message.

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 decoding an Realm object.