com.ibm.security.krb5.internal
Class KDCRep
- java.lang.Object
com.ibm.security.krb5.internal.KDCRep
Direct known subclasses:
- public class KDCRep
- extends java.lang.Object
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 |
---|---|
cname
|
|
crealm
|
|
encKDCRepPart
|
|
encPart
|
|
|
msgType
|
|
pAData
|
|
pvno
|
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 |
---|---|
|
asn1Encode()
Encodes this object to a byte array.
|
|
decrypt(EncryptionKey key)
|
|
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
- public int pvno
msgType
- public int msgType
pAData
- public PAData[] pAData
crealm
- public Realm crealm
cname
- public PrincipalName cname
ticket
- public Ticket ticket
encPart
- public EncryptedData encPart
encKDCRepPart
- public EncKDCRepPart encKDCRepPart
Constructor Detail
KDCRep
- public KDCRep(PAData[] new_pAData,
- Realm new_crealm,
- PrincipalName new_cname,
- Ticket new_ticket,
- EncryptedData new_encPart,
- int req_type)
KDCRep
- public KDCRep()
KDCRep
- public KDCRep(byte[] data,
- int req_type)
- throws Asn1Exception
- KrbApErrException
- RealmException
- java.io.IOException
KDCRep
- public KDCRep(com.ibm.security.util.DerValue encoding,
- int req_type)
- throws Asn1Exception
- RealmException
- KrbApErrException
- java.io.IOException
Method Detail
decrypt
- public void decrypt(EncryptionKey key)
- throws Asn1Exception
- java.io.IOException
- KrbException
- RealmException
init
- protected void init(com.ibm.security.util.DerValue encoding,
- int req_type)
- throws Asn1Exception
- RealmException
- java.io.IOException
- 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
- public byte[] asn1Encode()
- throws Asn1Exception
- 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.