|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.kerberos.components.KdcReqBody
public class KdcReqBody
The KDC-REQ-BODY data structure. It will store the object described by the ASN.1 grammar :
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
}
| Constructor Summary | |
|---|---|
KdcReqBody()
Creates a new instance of RequestBody. |
|
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KdcReqBody()
| Method Detail |
|---|
public Ticket[] getAdditionalTickets()
Tickets.
Tickets.public void setAdditionalTickets(List<Ticket> additionalTickets)
additionalTickets - the additionalTickets to setpublic void addAdditionalTicket(Ticket additionalTicket)
additionalTickets - the additionalTickets to setpublic HostAddresses getAddresses()
HostAddresses.
HostAddresses.public void setAddresses(HostAddresses addresses)
addresses - the addresses to setpublic PrincipalName getCName()
public void setCName(PrincipalName cName)
cName - the cName to setpublic EncryptedData getEncAuthorizationData()
AuthorizationData as EncryptedData.
AuthorizationData as EncryptedData.public void setEncAuthorizationData(EncryptedData encAuthorizationData)
encAuthorizationData - the encAuthorizationData to setpublic List<EncryptionType> getEType()
EncryptionTypes.
EncryptionTypes.public void setEType(List<EncryptionType> eType)
eType - the eType to setpublic void addEType(EncryptionType eType)
eType - the eType to addpublic KerberosTime getFrom()
KerberosTime.
KerberosTime.public void setFrom(KerberosTime from)
from - the from to setpublic KdcOptions getKdcOptions()
KdcOptions.
KdcOptions.public void setKdcOptions(KdcOptions kdcOptions)
kdcOptions - the kdcOptions to setpublic int getNonce()
public void setNonce(int nonce)
nonce - the nonce to setpublic String getRealm()
public void setRealm(String realm)
realm - the realm to setpublic KerberosTime getRTime()
KerberosTime.
KerberosTime.public void setRtime(KerberosTime rtime)
rtime - the renewTime to setpublic PrincipalName getSName()
PrincipalName.
PrincipalName.public void setSName(PrincipalName sName)
sName - the sName to setpublic KerberosTime getTill()
KerberosTime.
KerberosTime.public void setTill(KerberosTime till)
till - the till to setpublic int computeLength()
KdcReqBody :
0x30 L1 KdcReqBody sequence
|
+--> 0xA0 L2 kdc-options tag
| |
| +--> 0x03 L2-1 kdc-options (BitString)
|
+--> 0xA1 L3 cname tag
| |
| +--> 0x30 L3-1 cname (PrincipalName)
|
+--> 0xA2 L4 realm tag
| |
| +--> 0x1B L4-1 realm (Realm, KerberosString)
|
+--> 0xA3 L5 sname tag
| |
| +--> 0x30 L5-1 sname (PrincipalName)
|
+--> 0xA4 L6 from tag
| |
| +--> 0x18 L6-1 from (KerberosTime)
|
+--> 0xA5 L7 till tag
| |
| +--> 0x18 L7-1 till (KerberosTime)
|
+--> 0xA6 L8 rtime tag
| |
| +--> 0x18 L8-1 rtime (KerberosTime)
|
+--> 0xA7 L9 nonce tag
| |
| +--> 0x02 L9-1 nonce (Int)
|
+--> 0xA8 L10 etype tag
| |
| +--> 0x30 L10-1 SEQ
| |
| +--> 0x02 L10-1-1 etype
| |
| +--> 0x02 L10-1-2 etype
| |
| :
|
+--> 0xA9 L11 addresses tag
| |
| +--> 0x30 L11-1 addresses (HostAddresses)
|
+--> 0xAA L12 enc-authorization-data tag
| |
| +--> 0x30 L12-1 enc-authorization-data
|
+--> 0xAB L13 additional-tickets tag
|
+--> 0x30 L13-1 additional-tickets
|
+--> 0x61 L13-1-1 Ticket
|
+--> 0x61 L13-1-2 Ticket
|
:
public ByteBuffer encode(ByteBuffer buffer)
throws org.apache.directory.shared.asn1.EncoderException
encode in interface org.apache.directory.shared.asn1.Asn1Objectencode in class org.apache.directory.shared.asn1.AbstractAsn1Objectbuffer - The buffer containing the encoded result
org.apache.directory.shared.asn1.EncoderException - If the encoding failedpublic String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||