public class EncApRepPart extends KerberosMessage
EncAPRepPart ::= [APPLICATION 27] SEQUENCE { ctime [0] KerberosTime, cusec [1] Microseconds, subkey [2] <EncryptionKey> OPTIONAL, seq-number [3] UInt32 OPTIONAL }
Constructor and Description |
---|
EncApRepPart()
Creates a new instance of EncApRepPart.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the Authenticator length
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the EncApRepPart message to a PDU.
|
KerberosTime |
getCTime()
Returns the client
KerberosTime . |
int |
getCusec() |
Integer |
getSeqNumber() |
EncryptionKey |
getSubkey() |
void |
setCTime(KerberosTime ctime) |
void |
setCusec(int cusec) |
void |
setSeqNumber(Integer seqNumber) |
void |
setSubkey(EncryptionKey subkey) |
String |
toString() |
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumber
public EncApRepPart()
public KerberosTime getCTime()
KerberosTime
.KerberosTime
.public void setCTime(KerberosTime ctime)
ctime
- the ctime to setpublic int getCusec()
public void setCusec(int cusec)
cusec
- the cusec to setpublic EncryptionKey getSubkey()
public void setSubkey(EncryptionKey subkey)
subkey
- the subkey to setpublic Integer getSeqNumber()
public void setSeqNumber(Integer seqNumber)
seqNumber
- the seqNumber to setpublic int computeLength()
Authenticator : 0x7B L1 EncApRepPart [APPLICATION 27] | +--> 0x30 L2 SEQ | +--> 0xA0 11 ctime tag | | | +--> 0x18 0x0F ttt ctime (KerberosTime) | +--> 0xA1 L3 cusec tag | | | +--> 0x02 L3-1 cusec (INTEGER) | +--> 0xA2 L4 subkey (EncryptionKey) | +--> 0xA3 L5 seq-number tag | +--> 0x02 L5-1 NN seq-number (INTEGER)
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
EncApRepPart : 0x7B LL 0x30 LL 0xA0 0x11 0x18 0x0F ttt ctime 0xA1 LL 0x02 LL NN cusec [0xA2 LL 0x30 LL abcd] subkey [0xA3 LL 0x02 LL NN] seq-number
org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.