com.ibm.security.krb5.internal

Class KDCReqBody

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.KDCReqBody

  1. public class KDCReqBody
  2. extends java.lang.Object
Implements the ASN.1 KDC-REQ-BODY type. KDC-REQ-BODY ::= SEQUENCE { kdc-options[0] KDCOptions, cname[1] PrincipalName OPTIONAL, --Used only in AS-REQ realm[2] Realm, --Server's realm --Also client's in AS-REQ sname[3] PrincipalName OPTIONAL, from[4] KerberosTime OPTIONAL, till[5] KerberosTime, rtime[6] KerberosTime OPTIONAL, nonce[7] INTEGER, etype[8] SEQUENCE OF INTEGER, --EncryptionType, --in preference order addresses[9] HostAddresses OPTIONAL, --Encrypted AuthorizationData encoding enc-authorization-data[10] EcryptedData OPTIONAL, --Encrypted AuthorizationData encoding additional-tickets[11] SEQUENCE OF Ticket OPTIONAL }

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
KDCReqBody(com.ibm.security.util.DerValue encoding,int msgType)
Constructs a KDCReqBody object.
KDCReqBody(KDCOptions new_kdcOptions,PrincipalName new_cname,Realm new_crealm,PrincipalName new_sname,KerberosTime new_from,KerberosTime new_till,KerberosTime new_rtime,int new_nonce,int[] new_eType,HostAddresses new_addresses,EncryptedData new_encAuthorizationData,Ticket[] new_additionalTickets)

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode(int msgType)
Encodes this object to an OutputStream.
  1. Ticket[]
getAdditionalTickets()
  1. HostAddresses
getAddresses()
Get the addresses.
  1. PrincipalName
getClient()
Get the Kerberos client name.
  1. EncryptedData
getEncryptedAuthzData()
  1. KerberosTime
getEndTime()
Get the end time.
  1. int[]
getEtypes()
Get the E-types.
  1. int
getNonce()
Get the Kerberos nonce.
  1. KDCOptions
getOptions()
Get the KDC options.
  1. Realm
getRealm()
Get the Kerberos client realm.
  1. KerberosTime
getRenewableTillTime()
Get the renewable till time.
  1. PrincipalName
getServer()
Get the Kerberos server name.
  1. KerberosTime
getStartTime()
Get the start time.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

KDCReqBody

  1. public KDCReqBody(KDCOptions new_kdcOptions,
  2. PrincipalName new_cname,
  3. Realm new_crealm,
  4. PrincipalName new_sname,
  5. KerberosTime new_from,
  6. KerberosTime new_till,
  7. KerberosTime new_rtime,
  8. int new_nonce,
  9. int[] new_eType,
  10. HostAddresses new_addresses,
  11. EncryptedData new_encAuthorizationData,
  12. Ticket[] new_additionalTickets)
  13. throws java.io.IOException
Throws:
java.io.IOException

KDCReqBody

  1. public KDCReqBody(com.ibm.security.util.DerValue encoding,
  2. int msgType)
  3. throws Asn1Exception
  4. RealmException
  5. KrbException
  6. java.io.IOException
Constructs a KDCReqBody object.
Parameters:
encoding - a DER-encoded data.
msgType - 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.
RealmException - if an error occurs while constructing a Realm object from the encoded data.

Method Detail

asn1Encode

  1. public byte[] asn1Encode(int msgType)
  2. throws Asn1Exception
  3. java.io.IOException
Encodes this object to an OutputStream.
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.

getAdditionalTickets

  1. public Ticket[] getAdditionalTickets( )

getEncryptedAuthzData

  1. public EncryptedData getEncryptedAuthzData( )

getClient

  1. public PrincipalName getClient( )
Get the Kerberos client name.

Returns:
the Kerberos client name.

getServer

  1. public PrincipalName getServer( )
Get the Kerberos server name.

Returns:
the Kerberos server name.

getRealm

  1. public Realm getRealm()
Get the Kerberos client realm.

Returns:
the Kerberos realm.

getNonce

  1. public int getNonce()
Get the Kerberos nonce.

Returns:
the Kerberos nonce.

getOptions

  1. public KDCOptions getOptions()
Get the KDC options.

Returns:
the KDC options.

getStartTime

  1. public KerberosTime getStartTime( )
Get the start time.

Returns:
the start time.

getEndTime

  1. public KerberosTime getEndTime( )
Get the end time.

Returns:
the end time.

getRenewableTillTime

  1. public KerberosTime getRenewableTillTime( )
Get the renewable till time.

Returns:
the renewable till time.

getEtypes

  1. public int[] getEtypes()
Get the E-types.

Returns:
the E-types.

getAddresses

  1. public HostAddresses getAddresses( )
Get the addresses.

Returns:
the addresses.