| java.lang.Object |
| ↳ |
sun.security.mule.krb5.internal.KDCReq |
Known Direct Subclasses
|
Class Overview
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.
Summary
| Public Constructors |
|
|
KDCReq(PAData[] new_pAData, KDCReqBody new_reqBody, int req_type)
|
|
|
KDCReq()
|
|
|
KDCReq(byte[] data, int req_type)
|
|
|
KDCReq(DerValue der, int req_type)
Creates an KDCReq object from a DerValue object and asn1 type.
|
| Protected Methods |
|
void
|
init(DerValue encoding, int req_type)
Initializes a KDCReq object from a DerValue.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
public
KDCReq
(PAData[] new_pAData, KDCReqBody new_reqBody, int req_type)
Parameters
| new_pAData
| |
| new_reqBody
| |
| req_type
| |
public
KDCReq
(byte[] data, int req_type)
public
KDCReq
(DerValue der, int req_type)
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
| |
Public Methods
public
byte[]
asn1Encode
()
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.
|
public
byte[]
asn1EncodeReqBody
()
Protected Methods
protected
void
init
(DerValue encoding, int req_type)
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.
|