com.ibm.security.krb5.internal

Class EncKDCRepPart

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.EncKDCRepPart
Direct known subclasses:
EncASRepPart, EncTGSRepPart

  1. public class EncKDCRepPart
  2. extends java.lang.Object
Implements the ASN.1 EncKDCRepPart type. EncKDCRepPart ::= SEQUENCE { key[0] EncryptionKey, last-req[1] LastReq, nonce[2] INTEGER, 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 }

This definition reflects the Network Working Group RFC 1510 specifications dated September 1993 and available at http://www.ietf.org/rfc/rfc1510.txt.


Field Summary

Modifier and Type Field and Description
  1. KerberosTime
authtime
  1. HostAddresses
caddr
  1. KerberosTime
endtime
  1. TicketFlags
flags
  1. EncryptionKey
key
  1. KerberosTime
keyExpiration
  1. LastReq
lastReq
  1. int
msgType
  1. int
nonce
  1. KerberosTime
renewTill
  1. PrincipalName
sname
  1. Realm
srealm
  1. KerberosTime
starttime

Constructor Summary

Constructor and Description
EncKDCRepPart()
EncKDCRepPart(byte[] data,int rep_type)
EncKDCRepPart(com.ibm.security.util.DerValue encoding,int rep_type)
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,Realm new_srealm,PrincipalName new_sname,HostAddresses new_caddr,int new_msgType)

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode(int rep_type)
Encodes an EncKDCRepPart object.
  1. protected
  2. void
init(com.ibm.security.util.DerValue encoding,int rep_type)
Initializes an EncKDCRepPart object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

key

  1. public EncryptionKey key

lastReq

  1. public LastReq lastReq

nonce

  1. public int nonce

keyExpiration

  1. public KerberosTime keyExpiration

flags

  1. public TicketFlags flags

authtime

  1. public KerberosTime authtime

starttime

  1. public KerberosTime starttime

endtime

  1. public KerberosTime endtime

renewTill

  1. public KerberosTime renewTill

srealm

  1. public Realm srealm

sname

  1. public PrincipalName sname

caddr

  1. public HostAddresses caddr

msgType

  1. public int msgType

Constructor Detail

EncKDCRepPart

  1. public EncKDCRepPart(EncryptionKey new_key,
  2. LastReq new_lastReq,
  3. int new_nonce,
  4. KerberosTime new_keyExpiration,
  5. TicketFlags new_flags,
  6. KerberosTime new_authtime,
  7. KerberosTime new_starttime,
  8. KerberosTime new_endtime,
  9. KerberosTime new_renewTill,
  10. Realm new_srealm,
  11. PrincipalName new_sname,
  12. HostAddresses new_caddr,
  13. int new_msgType)

EncKDCRepPart

  1. public EncKDCRepPart()

EncKDCRepPart

  1. public EncKDCRepPart(byte[] data,
  2. int rep_type)
  3. throws Asn1Exception
  4. java.io.IOException
  5. RealmException
Throws:
java.io.IOException

EncKDCRepPart

  1. public EncKDCRepPart(com.ibm.security.util.DerValue encoding,
  2. int rep_type)
  3. throws Asn1Exception
  4. java.io.IOException
  5. RealmException
Throws:
java.io.IOException

Method Detail

init

  1. protected void init(com.ibm.security.util.DerValue encoding,
  2. int rep_type)
  3. throws Asn1Exception
  4. java.io.IOException
  5. RealmException
Initializes an EncKDCRepPart object.
Parameters:
encoding - a single DER-encoded value.
rep_type - type of the encrypted reply message.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
java.io.IOException - if an I/O error occurs while reading encoded data.
RealmException - if an error occurs while decoding an Realm object.

asn1Encode

  1. public byte[] asn1Encode(int rep_type)
  2. throws Asn1Exception
  3. java.io.IOException
Encodes an EncKDCRepPart object.
Parameters:
rep_type - type of encrypted reply message.
Returns:
byte array of encoded EncKDCRepPart object.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
java.io.IOException - if an I/O error occurs while reading encoded data.