| java.lang.Object |
| ↳ |
sun.security.mule.krb5.internal.KDCReqBody |
Class Overview
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.
Summary
| Public Constructors |
|
|
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)
|
|
|
KDCReqBody(DerValue encoding, int msgType)
Constructs a KDCReqBody object.
|
| Public Methods |
|
byte[]
|
asn1Encode(int msgType)
Encodes this object to an OutputStream.
|
|
int
|
getNonce()
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
Parameters
| new_kdcOptions
| |
| new_cname
| |
| new_crealm
| |
| new_sname
| |
| new_from
| |
| new_till
| |
| new_rtime
| |
| new_nonce
| |
| new_eType
| |
| new_addresses
| |
| new_encAuthorizationData
| |
| new_additionalTickets
| |
| kerberosConfig
| |
public
KDCReqBody
(DerValue encoding, int msgType)
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
| |
Public Methods
public
byte[]
asn1Encode
(int msgType)
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.
|