|
||||||||||
| 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.PaEncTsEnc
public class PaEncTsEnc
The PaEncTsEnc structure is used to store a PA-ENC-TS-ENC associated to a type. The ASN.1 grammar is :
PA-ENC-TS-ENC ::= SEQUENCE {
patimestamp [0] KerberosTime -- client's time --,
pausec [1] Microseconds OPTIONAL
}
| Constructor Summary | |
|---|---|
PaEncTsEnc()
Creates a new instance of PaEncTsEnc. |
|
PaEncTsEnc(KerberosTime paTimestamp,
int pausec)
Creates a new instance of PaEncTsEnc. |
|
| Method Summary | |
|---|---|
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)
|
| 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 PaEncTsEnc()
public PaEncTsEnc(KerberosTime paTimestamp,
int pausec)
| Method Detail |
|---|
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)
public ByteBuffer encode(ByteBuffer buffer)
throws org.apache.directory.shared.asn1.EncoderException
PA-ENC-TS-ENC :
0x30 LL
0xA0 0x11
0x18 0x0F patimestamp
[0xA1 LL
0x02 LL pausec]
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()public String toString(String tabs)
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||