sun.security.mule.krb5.internal
Class KDCRep
java.lang.Object
sun.security.mule.krb5.internal.KDCRep
- Direct Known Subclasses:
- ASRep, TGSRep
public class KDCRep
- extends Object
Implements the ASN.1 KDC-REP type.
KDC-REP ::= SEQUENCE {
pvno [0] INTEGER (5),
msg-type [1] INTEGER (11 -- AS -- | 13 -- TGS --),
padata [2] SEQUENCE OF PA-DATA OPTIONAL
-- NOTE: not empty --,
crealm [3] Realm,
cname [4] PrincipalName,
ticket [5] Ticket,
enc-part [6] EncryptedData
-- EncASRepPart or EncTGSRepPart,
-- as appropriate
}
This definition reflects the Network Working Group RFC 4120
specification available at
http://www.ietf.org/rfc/rfc4120.txt.
|
Method Summary |
byte[] |
asn1Encode()
Encodes this object to a byte array. |
protected void |
init(sun.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 |
crealm
public Realm crealm
cname
public PrincipalName cname
ticket
public Ticket ticket
encPart
public EncryptedData encPart
encKDCRepPart
public EncKDCRepPart encKDCRepPart
KDCRep
public KDCRep(PAData[] new_pAData,
Realm new_crealm,
PrincipalName new_cname,
Ticket new_ticket,
EncryptedData new_encPart,
int req_type)
throws IOException
- Throws:
IOException
KDCRep
public KDCRep()
KDCRep
public KDCRep(byte[] data,
int req_type)
throws Asn1Exception,
KrbApErrException,
RealmException,
IOException
- Throws:
Asn1Exception
KrbApErrException
RealmException
IOException
KDCRep
public KDCRep(sun.security.util.DerValue encoding,
int req_type)
throws Asn1Exception,
RealmException,
KrbApErrException,
IOException
- Throws:
Asn1Exception
RealmException
KrbApErrException
IOException
init
protected void init(sun.security.util.DerValue encoding,
int req_type)
throws Asn1Exception,
RealmException,
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.
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,
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.
IOException - if an I/O error occurs while reading encoded data.
Copyright © 2013. All Rights Reserved.