|
||||||||||
| 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.EncKdcRepPart
public class EncKdcRepPart
Base class for encrypted parts of KDC responses. The ASN.1 grammar for this structure is :
EncKDCRepPart ::= SEQUENCE {
key [0] EncryptionKey,
last-req [1] LastReq,
nonce [2] UInt32,
key-expiration [3] KerberosTime OPTIONAL,
flags [4] TicketFlags,
authtime [5] KerberosTime,
starttime [6] KerberosTime OPTIONAL,
endtime [7] KerberosTime,
renew-till [8] KerberosTime OPTIONAL,
srealm [9] Realm,
sname [10] PrincipalName,
caddr [11] HostAddresses OPTIONAL
}
| Constructor Summary | |
|---|---|
EncKdcRepPart()
Creates a new instance of EncKdcRepPart. |
|
| 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 EncKdcRepPart()
| Method Detail |
|---|
public KerberosTime getAuthTime()
KerberosTime.
KerberosTime.public void setAuthTime(KerberosTime time)
KerberosTime.
time - public HostAddresses getClientAddresses()
HostAddresses.
HostAddresses.public void setClientAddresses(HostAddresses caddr)
HostAddresses.
addresses - public KerberosTime getEndTime()
KerberosTime.
KerberosTime.public void setEndTime(KerberosTime time)
KerberosTime.
time - public TicketFlags getFlags()
TicketFlags.
TicketFlags.public void setFlags(TicketFlags flags)
TicketFlags.
flags - public EncryptionKey getKey()
EncryptionKey.
EncryptionKey.public void setKey(EncryptionKey key)
EncryptionKey.
key - public KerberosTime getKeyExpiration()
KerberosTime.
KerberosTime.public void setKeyExpiration(KerberosTime expiration)
KerberosTime.
expiration - public LastReq getLastReq()
LastReq.
LastReq.public void setLastReq(LastReq lastReq)
LastReq.
lastReq - The LastReq to setpublic int getNonce()
public void setNonce(int nonce)
nonce - public KerberosTime getRenewTill()
KerberosTime.
KerberosTime.public void setRenewTill(KerberosTime till)
KerberosTime.
till - public PrincipalName getSName()
PrincipalName.
PrincipalName.public void setSName(PrincipalName sname)
PrincipalName.
principal - The server PrincipalNamepublic String getSRealm()
public void setSRealm(String srealm)
srealm - The server realmpublic KerberosTime getStartTime()
KerberosTime.
KerberosTime.public void setStartTime(KerberosTime time)
KerberosTime.
time - he start time to setpublic int computeLength()
EncKdcRepPart :
0x30 L1 EncKdcRepPart sequence
|
+--> 0xA0 L2 key tag
| |
| +--> 0x30 L2-1 key ( EncryptionKey)
|
+--> 0xA1 L3 last-req tag
| |
| +--> 0x30 L3-1 last-req ( LastReq )
|
+--> 0xA2 L4 nonce tag
| |
| +--> 0x02 L4-1 nonce (Int)
|
[+--> 0xA3 0x11 key-expiration tag]
| |
| +--> 0x18 0x0F key-expiration ( KerberosTime )
|
+--> 0xA4 0x07 flags tag
| |
| +--> 0x03 0x05 flags ( TicketFlags )
|
+--> 0xA5 0x11 authtime tag
| |
| +--> 0x18 0x0F authtime ( KerberosTime )
|
[+--> 0xA6 0x11 starttime tag]
| |
| +--> 0x18 0x0F starttime ( KerberosTime )
|
+--> 0xA7 0x11 endtime tag
| |
| +--> 0x18 0x0F endtime ( KerberosTime )
|
[+--> 0xA8 0x11 renew-till tag]
| |
| +--> 0x18 0x0F renew-till ( KerberosTime )
|
+--> 0xA9 L5 srealm tag
| |
| +--> 0x1B L5-1 srealm ( KerberosString )
|
+--> 0xAA L6 sname tag
| |
| +--> 0x30 L6-1 sname ( PrincipalName )
|
[+--> 0xAB L7 caddr tag]
|
+--> 0x30 L7-1 caddr ( HostAddresses )
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 where to put the PDU. It should have been allocated
before, with the right size.
org.apache.directory.shared.asn1.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||