public class PaEncTsEnc extends Object implements org.apache.directory.api.asn1.Asn1Object
PA-ENC-TS-ENC ::= SEQUENCE { patimestamp [0] KerberosTime -- client's time --, pausec [1] Microseconds OPTIONAL }
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
|
ByteBuffer |
encode(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) |
String |
toString() |
String |
toString(String tabs) |
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.Asn1Object
public ByteBuffer encode(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.Asn1Object
buffer
- The buffer where to put the PDU. It should have been allocated
before, with the right size.org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
public String toString(String tabs)
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.