com.ibm.security.krb5.internal
Class KDCReq
- java.lang.Object
com.ibm.security.krb5.internal.KDCReq
Direct known subclasses:
- public class KDCReq
- 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.
Constructor Summary
Constructor and Description |
---|
KDCReq()
|
KDCReq(byte[] data,int req_type)
|
KDCReq(com.ibm.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
Modifier and Type | Method and Description |
---|---|
|
asn1Encode()
Encodes this object to a byte array.
|
|
asn1EncodeReqBody()
|
|
getMessageType()
Returns the message type.
|
|
getPAData()
Returns pre-authentication data.
|
|
getProtocolVersionNumber()
Return the Kerberos protocol version number.
|
getRequestBody()
Returns the body of the message request.
|
|
|
init(com.ibm.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 |
Constructor Detail
KDCReq
- public KDCReq(PAData[] new_pAData,
- KDCReqBody new_reqBody,
- int req_type)
KDCReq
- public KDCReq()
KDCReq
- public KDCReq(byte[] data,
- int req_type)
- throws Asn1Exception
- java.io.IOException
- KrbException
KDCReq
- public KDCReq(com.ibm.security.util.DerValue der,
- int req_type)
- throws Asn1Exception
- java.io.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. java.io.IOException
- if an I/O error occurs while reading encoded data. Method Detail
init
- protected void init(com.ibm.security.util.DerValue encoding,
- int req_type)
- throws Asn1Exception
- java.io.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. java.io.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
- java.io.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. java.io.IOException
- if an I/O error occurs while reading encoded data. asn1EncodeReqBody
- public byte[] asn1EncodeReqBody( )
- throws Asn1Exception
- java.io.IOException
getPAData
- public PAData[] getPAData()
Returns pre-authentication data.
Returns:
array of pre-authentication data or null if there
is no pre-authentication data.
getRequestBody
- public KDCReqBody getRequestBody( )
Returns the body of the message request.
Returns:
message request body.
getMessageType
- public int getMessageType()
Returns the message type.
Returns:
the message type.
getProtocolVersionNumber
- public int getProtocolVersionNumber( )
Return the Kerberos protocol version number.
Returns:
the protocol version number.