com.ibm.security.krb5.internal

Class KDCRep

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.KDCRep
Direct known subclasses:
ASRep, TGSRep

  1. public class KDCRep
  2. extends java.lang.Object
Implements the ASN.1 KDC-REP type. KDC-REP ::= SEQUENCE { pvno[0] INTEGER, msg-type[1] INTEGER, padata[2] SEQUENCE OF PA-DATA OPTIONAL, crealm[3] Realm, cname[4] PrincipalName, ticket[5] Ticket, enc-part[6] EncryptedData }

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. PrincipalName
cname
  1. Realm
crealm
  1. EncKDCRepPart
encKDCRepPart
  1. EncryptedData
encPart
  1. int
msgType
  1. PAData[]
pAData
  1. int
pvno
  1. Ticket
ticket

Constructor Summary

Constructor and Description
KDCRep()
KDCRep(byte[] data,int req_type)
KDCRep(com.ibm.security.util.DerValue encoding,int req_type)
KDCRep(PAData[] new_pAData,Realm new_crealm,PrincipalName new_cname,Ticket new_ticket,EncryptedData new_encPart,int req_type)

Method Summary

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

Field Detail

pvno

  1. public int pvno

msgType

  1. public int msgType

pAData

  1. public PAData[] pAData

crealm

  1. public Realm crealm

cname

  1. public PrincipalName cname

ticket

  1. public Ticket ticket

encPart

  1. public EncryptedData encPart

encKDCRepPart

  1. public EncKDCRepPart encKDCRepPart

Constructor Detail

KDCRep

  1. public KDCRep(PAData[] new_pAData,
  2. Realm new_crealm,
  3. PrincipalName new_cname,
  4. Ticket new_ticket,
  5. EncryptedData new_encPart,
  6. int req_type)

KDCRep

  1. public KDCRep()

KDCRep

  1. public KDCRep(byte[] data,
  2. int req_type)
  3. throws Asn1Exception
  4. KrbApErrException
  5. RealmException
  6. java.io.IOException
Throws:
java.io.IOException

KDCRep

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

Method Detail

decrypt

  1. public void decrypt(EncryptionKey key)
  2. throws Asn1Exception
  3. java.io.IOException
  4. KrbException
  5. RealmException
Throws:
java.io.IOException

init

  1. protected void init(com.ibm.security.util.DerValue encoding,
  2. int req_type)
  3. throws Asn1Exception
  4. RealmException
  5. java.io.IOException
  6. KrbApErrException
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.
java.io.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.

asn1Encode

  1. public byte[] asn1Encode()
  2. throws Asn1Exception
  3. java.io.IOException
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.
java.io.IOException - if an I/O error occurs while reading encoded data.