sun.security.mule.krb5.internal
Class KDCReqBody

java.lang.Object
  extended by sun.security.mule.krb5.internal.KDCReqBody

public class KDCReqBody
extends 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] 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
 HostAddresses addresses
           
 PrincipalName cname
           
 Realm crealm
           
 KerberosTime from
           
 KDCOptions kdcOptions
           
 KerberosTime rtime
           
 PrincipalName sname
           
 KerberosTime till
           
 
Constructor Summary
KDCReqBody(sun.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, Config kerberosConfig)
           
 
Method Summary
 byte[] asn1Encode(int msgType)
          Encodes this object to an OutputStream.
 int getNonce()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kdcOptions

public KDCOptions kdcOptions

cname

public PrincipalName cname

crealm

public Realm crealm

sname

public PrincipalName sname

from

public KerberosTime from

till

public KerberosTime till

rtime

public KerberosTime rtime

addresses

public HostAddresses addresses
Constructor Detail

KDCReqBody

public 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,
                  Config kerberosConfig)
           throws IOException
Throws:
IOException

KDCReqBody

public KDCReqBody(sun.security.util.DerValue encoding,
                  int msgType)
           throws Asn1Exception,
                  RealmException,
                  KrbException,
                  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.
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.
KrbException
Method Detail

asn1Encode

public byte[] asn1Encode(int msgType)
                  throws Asn1Exception,
                         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.
IOException - if an I/O error occurs while reading encoded data.

getNonce

public int getNonce()


Copyright © 2013. All Rights Reserved.