APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal

public Class KDCReqBody

extends Object
Class Inheritance
Imports
sun.security.krb5.*, sun.security.util.*, java.util.ArrayList, java.io.IOException, java.math.BigInteger

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] UInt32,
     etype                   [8] SEQUENCE OF Int32 -- EncryptionType
                                   -- in preference order --,
     addresses               [9] HostAddresses OPTIONAL,
     enc-authorization-data  [10] EncryptedData OPTIONAL
                                   -- AuthorizationData --,
     additional-tickets      [11] SEQUENCE OF Ticket OPTIONAL
                                      -- NOTE: not empty
}

This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.

Field Summary

Modifier and TypeField and Description
private Ticket[]
public HostAddresses
public PrincipalName
private EncryptedData
private int[]
public KerberosTime
public KDCOptions
private int
public KerberosTime
public PrincipalName
public KerberosTime

Constructor Summary

AccessConstructor and Description
public
KDCReqBody(KDCOptions new_kdcOptions, PrincipalName new_cname, 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)

public
KDCReqBody(DerValue
a DER-encoded data.
encoding
,
int
an int indicating whether it's KRB_AS_REQ or KRB_TGS_REQ type.
msgType
)

Constructs a KDCReqBody object.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

an byte array of encoded data.
asn1Encode
(int msgType)

Encodes this object to an OutputStream.

public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

additionalTicketsback to summary
private Ticket[] additionalTickets
addressesback to summary
public HostAddresses addresses
cnameback to summary
public PrincipalName cname
encAuthorizationDataback to summary
private EncryptedData encAuthorizationData
eTypeback to summary
private int[] eType
fromback to summary
public KerberosTime from
kdcOptionsback to summary
public KDCOptions kdcOptions
nonceback to summary
private int nonce
rtimeback to summary
public KerberosTime rtime
snameback to summary
public PrincipalName sname
tillback to summary
public KerberosTime till

Constructor Detail

KDCReqBodyback to summary
public KDCReqBody(KDCOptions new_kdcOptions, PrincipalName new_cname, 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) throws IOException
KDCReqBodyback to summary
public KDCReqBody(DerValue encoding, int msgType) throws Asn1Exception, RealmException, KrbException, IOException

Constructs a KDCReqBody object.

Parameters
encoding:DerValue

a DER-encoded data.

msgType:int

an int indicating whether it's KRB_AS_REQ or KRB_TGS_REQ type.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
RealmException:
if an error occurs while constructing a Realm object from the encoded data.
IOException:
if an I/O error occurs while reading encoded data.

Method Detail

asn1Encodeback to summary
public byte[] asn1Encode(int msgType) throws Asn1Exception, IOException

Encodes this object to an OutputStream.

Returns:byte[]

an byte array of encoded data.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
getNonceback to summary
public int getNonce()