public class KdcReqBody extends Object implements org.apache.directory.api.asn1.Asn1Object
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 and Description |
---|
KdcReqBody()
Creates a new instance of RequestBody.
|
public KdcReqBody()
public Ticket[] getAdditionalTickets()
Ticket
s.Ticket
s.public void setAdditionalTickets(List<Ticket> additionalTickets)
additionalTickets
- the additionalTickets to setpublic void addAdditionalTicket(Ticket additionalTicket)
additionalTicket
- the additionalTicket 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 Set<EncryptionType> getEType()
EncryptionType
s.EncryptionType
s.public void setEType(Set<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 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 | :
computeLength
in interface org.apache.directory.api.asn1.Asn1Object
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode
in interface org.apache.directory.api.asn1.Asn1Object
buffer
- The buffer containing the encoded resultorg.apache.directory.api.asn1.EncoderException
- If the encoding failedpublic String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.