krb5.lib
Class KDCRep

java.lang.Object
  extended by krb5.lib.KDCRep
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ASRep, TGSRep

public class KDCRep
extends java.lang.Object
implements java.io.Serializable

Class Description : KDC reply class. A modified version of the code obtained from the Open Group Research Institute.

Version:
1.1
Author:
Bojan Pajkovski
See Also:
Serialized Form

Field Summary
 PrincipalName cname
          Name
 Realm crealm
          Realm
 EncKDCRepPart encKDCRepPart
          Encrypted KDC response part
 EncryptedData encPart
          Encrypted part
 int msgType
          Message type
 PAData[] pAData
          PA data
 int pvno
          Version
 Ticket ticket
          Ticket
 
Constructor Summary
KDCRep(PAData[] new_pAData, Realm new_crealm, PrincipalName new_cname, Ticket new_ticket, EncryptedData new_encPart, int req_type)
          Class constructor
 
Method Summary
 void decrypt(EncryptionKey key)
          Decrypts with a key
 void decrypt(java.lang.String password)
          Decrypts with password
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pvno

public int pvno
Version


msgType

public int msgType
Message type


pAData

public PAData[] pAData
PA data


crealm

public Realm crealm
Realm


cname

public PrincipalName cname
Name


ticket

public Ticket ticket
Ticket


encPart

public EncryptedData encPart
Encrypted part


encKDCRepPart

public EncKDCRepPart encKDCRepPart
Encrypted KDC response part

Constructor Detail

KDCRep

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

Parameters:
new_pAData - PAData[]
new_crealm - Realm
new_cname - PrincipalName
new_ticket - Ticket
new_encPart - EncryptedData
req_type - int
Method Detail

decrypt

public void decrypt(java.lang.String password)
             throws KrbException
Decrypts with password

Parameters:
password - String
Throws:
KrbException

decrypt

public void decrypt(EncryptionKey key)
             throws KrbException
Decrypts with a key

Parameters:
key - EncryptionKey
Throws:
KrbException