sun.security.mule.krb5.internal
Class KDCReq
java.lang.Object
sun.security.mule.krb5.internal.KDCReq
- Direct Known Subclasses:
- ASReq, TGSReq
public class KDCReq
- extends Object
Implements the ASN.1 KRB_KDC_REQ type.
KDC-REQ ::= SEQUENCE {
-- NOTE: first tag is [1], not [0]
pvno [1] INTEGER (5) ,
msg-type [2] INTEGER (10 -- AS -- | 12 -- TGS --),
padata [3] SEQUENCE OF PA-DATA OPTIONAL
-- NOTE: not empty --,
req-body [4] KDC-REQ-BODY
}
This definition reflects the Network Working Group RFC 4120
specification available at
http://www.ietf.org/rfc/rfc4120.txt.
|
Constructor Summary |
KDCReq()
|
KDCReq(byte[] data,
int req_type)
|
KDCReq(sun.security.util.DerValue der,
int req_type)
Creates an KDCReq object from a DerValue object and asn1 type. |
KDCReq(PAData[] new_pAData,
KDCReqBody new_reqBody,
int req_type)
|
|
Method Summary |
byte[] |
asn1Encode()
Encodes this object to a byte array. |
byte[] |
asn1EncodeReqBody()
|
protected void |
init(sun.security.util.DerValue encoding,
int req_type)
Initializes a KDCReq object from a DerValue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reqBody
public KDCReqBody reqBody
KDCReq
public KDCReq(PAData[] new_pAData,
KDCReqBody new_reqBody,
int req_type)
throws IOException
- Throws:
IOException
KDCReq
public KDCReq()
KDCReq
public KDCReq(byte[] data,
int req_type)
throws Asn1Exception,
IOException,
KrbException
- Throws:
Asn1Exception
IOException
KrbException
KDCReq
public KDCReq(sun.security.util.DerValue der,
int req_type)
throws Asn1Exception,
IOException,
KrbException
- Creates an KDCReq object from a DerValue object and asn1 type.
- Parameters:
der - a DER value of an KDCReq object.req_type - a encoded asn1 type value.
- Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
KrbException
init
protected void init(sun.security.util.DerValue encoding,
int req_type)
throws Asn1Exception,
IOException,
KrbException
- Initializes a KDCReq object from a DerValue. The DER encoding
must be in the format specified by the KRB_KDC_REQ ASN.1 notation.
- Parameters:
encoding - a DER-encoded KDCReq object.req_type - an int indicating whether it's KRB_AS_REQ or KRB_TGS_REQ type
- Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
KrbException - if an error occurs while constructing a Realm object,
or a Krb object from DER-encoded data.
asn1Encode
public byte[] asn1Encode()
throws Asn1Exception,
IOException
- Encodes this object to a byte array.
- Returns:
- an byte array of encoded data.
- Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
asn1EncodeReqBody
public byte[] asn1EncodeReqBody()
throws Asn1Exception,
IOException
- Throws:
Asn1Exception
IOException
Copyright © 2013. All Rights Reserved.