public class EncApRepPart extends KerberosMessage
EncAPRepPart ::= [APPLICATION 27] SEQUENCE {
ctime [0] KerberosTime,
cusec [1] Microseconds,
subkey [2] OPTIONAL,
seq-number [3] UInt32 OPTIONAL
}
| Modifier and Type | Field and Description |
|---|---|
private KerberosTime |
ctime
The client time
|
private int |
ctimeLength |
private int |
cusec
the microsecond part of the client's timestamp
|
private int |
cusecLength |
private int |
encApRepPartLength |
private int |
encApRepPartSeqLength |
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
The logger
|
private java.lang.Integer |
seqNumber
Sequence number
|
private int |
seqNumberLength |
private EncryptionKey |
subkey
Encryption key
|
private int |
subKeyLength |
| Constructor and Description |
|---|
EncApRepPart()
Creates a new instance of EncApRepPart.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the Authenticator length
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the EncApRepPart message to a PDU.
|
KerberosTime |
getCTime()
Returns the client
KerberosTime. |
int |
getCusec() |
java.lang.Integer |
getSeqNumber() |
EncryptionKey |
getSubkey() |
void |
setCTime(KerberosTime ctime) |
void |
setCusec(int cusec) |
void |
setSeqNumber(java.lang.Integer seqNumber) |
void |
setSubkey(EncryptionKey subkey) |
java.lang.String |
toString() |
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumberprivate static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private KerberosTime ctime
private int cusec
private EncryptionKey subkey
private java.lang.Integer seqNumber
private int ctimeLength
private int cusecLength
private int subKeyLength
private int seqNumberLength
private int encApRepPartSeqLength
private int encApRepPartLength
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 java.lang.Integer getSeqNumber()
public void setSeqNumber(java.lang.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 java.nio.ByteBuffer encode(java.nio.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.EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()