com.ibm.security.krb5.internal

Class KDCReq

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.KDCReq
Direct known subclasses:
ASReq, TGSReq

  1. public class KDCReq
  2. extends java.lang.Object
Implements the ASN.1 KRB_KDC_REQ type. KDC-REQ ::= SEQUENCE { pvno[1] INTEGER, msg-type[2] INTEGER, padata[3] SEQUENCE OF PA-DATA OPTIONAL, req-body[4] KDC-REQ-BODY }

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
  1. byte[]
asn1Encode()
Encodes this object to a byte array.
  1. byte[]
asn1EncodeReqBody()
  1. int
getMessageType()
Returns the message type.
  1. PAData[]
getPAData()
Returns pre-authentication data.
  1. int
getProtocolVersionNumber()
Return the Kerberos protocol version number.
  1. KDCReqBody
getRequestBody()
Returns the body of the message request.
  1. protected
  2. void
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

  1. public KDCReq(PAData[] new_pAData,
  2. KDCReqBody new_reqBody,
  3. int req_type)

KDCReq

  1. public KDCReq()

KDCReq

  1. public KDCReq(byte[] data,
  2. int req_type)
  3. throws Asn1Exception
  4. java.io.IOException
  5. KrbException
Throws:
java.io.IOException

KDCReq

  1. public KDCReq(com.ibm.security.util.DerValue der,
  2. int req_type)
  3. throws Asn1Exception
  4. java.io.IOException
  5. 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

  1. protected void init(com.ibm.security.util.DerValue encoding,
  2. int req_type)
  3. throws Asn1Exception
  4. java.io.IOException
  5. 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

  1. public byte[] asn1Encode()
  2. throws Asn1Exception
  3. 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

  1. public byte[] asn1EncodeReqBody( )
  2. throws Asn1Exception
  3. java.io.IOException
Throws:
java.io.IOException

getPAData

  1. public PAData[] getPAData()
Returns pre-authentication data.
Returns:
array of pre-authentication data or null if there is no pre-authentication data.

getRequestBody

  1. public KDCReqBody getRequestBody( )
Returns the body of the message request.
Returns:
message request body.

getMessageType

  1. public int getMessageType()
Returns the message type.
Returns:
the message type.

getProtocolVersionNumber

  1. public int getProtocolVersionNumber( )
Return the Kerberos protocol version number.
Returns:
the protocol version number.