public class PaEncTsEnc
extends java.lang.Object
implements org.apache.directory.api.asn1.Asn1Object
PA-ENC-TS-ENC ::= SEQUENCE {
patimestamp [0] KerberosTime -- client's time --,
pausec [1] Microseconds OPTIONAL
}
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
log
The logger
|
private int |
paEncTsEncLength |
private KerberosTime |
patimestamp
The patimestamp
|
private int |
paTimestampLength |
private java.lang.Integer |
pausec
The pausec
|
private int |
paUsecLength |
| Constructor and Description |
|---|
PaEncTsEnc()
Creates a new instance of PaEncTsEnc.
|
PaEncTsEnc(KerberosTime paTimestamp,
int pausec)
Creates a new instance of PaEncTsEnc.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the PA-ENC-TS-ENC length
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the PA-ENC-TS-ENC message to a PDU.
|
KerberosTime |
getPaTimestamp()
Returns the patimestamp value.
|
int |
getPausec() |
void |
setPaTimestamp(KerberosTime patimestamp)
Set the patimestamp.
|
void |
setPausec(int pausec) |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs) |
private static final org.slf4j.Logger log
private static final boolean IS_DEBUG
private KerberosTime patimestamp
private java.lang.Integer pausec
private int paTimestampLength
private int paUsecLength
private int paEncTsEncLength
public PaEncTsEnc()
public PaEncTsEnc(KerberosTime paTimestamp, int pausec)
public KerberosTime getPaTimestamp()
public void setPaTimestamp(KerberosTime patimestamp)
patimestamp - The patimestamp valuepublic int getPausec()
public void setPausec(int pausec)
pausec - the pausec to setpublic int computeLength()
PA-ENC-TS-ENC :
0x30 L1 PA-ENC-TS-ENC sequence
|
+--> 0xA0 0x11 patimestamp tag
| |
| +--> 0x18 0x0F patimestamp value (KerberosTime)
|
+--> 0xA1 L2 pausec tag
|
+--> 0x02 L2-1 pausec (INTEGER)
computeLength in interface org.apache.directory.api.asn1.Asn1Objectpublic java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.api.asn1.EncoderException
PA-ENC-TS-ENC :
0x30 LL
0xA0 0x11
0x18 0x0F patimestamp
[0xA1 LL
0x02 LL pausec]
encode in interface org.apache.directory.api.asn1.Asn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toString(java.lang.String tabs)
Object.toString()