public class LastReq extends Object implements org.apache.directory.api.asn1.Asn1Object
LastReq ::= SEQUENCE OF SEQUENCE {
lr-type [0] Int32,
lr-value [1] KerberosTime
}
| Constructor and Description |
|---|
LastReq()
Creates a new instance of LastReq.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(LastReqEntry lastReqEntry)
Add a new LastReqEntry
|
int |
computeLength()
Compute the LastReq length
|
void |
createNewLR()
Create a new currentLR
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the LastReq message to a PDU.
|
LastReqEntry |
getCurrentLR() |
LastReqType |
getCurrentLrType() |
KerberosTime |
getCurrentLrValue() |
List<LastReqEntry> |
getLastReqs() |
void |
setCurrentLrType(LastReqType lrType)
Set the CurrentLr type
|
void |
setCurrentLrValue(KerberosTime lrValue)
Set the CurrentLr value
|
String |
toString() |
String |
toString(String tabs) |
public LastReqType getCurrentLrType()
public void setCurrentLrType(LastReqType lrType)
public KerberosTime getCurrentLrValue()
public void setCurrentLrValue(KerberosTime lrValue)
public LastReqEntry getCurrentLR()
public void createNewLR()
public void addEntry(LastReqEntry lastReqEntry)
lastReqEntry - The enry to addpublic List<LastReqEntry> getLastReqs()
public int computeLength()
LastReq :
0x30 L1 LastReq
|
+--> 0x30 L2
|
+--> 0xA0 L3 lr-type tag
| |
| +--> 0x02 L3-1 lrType (int)
|
+--> 0xA1 0x11 lr-value tag
|
+--> 0x18 0x0F ttt (KerberosString)
computeLength in interface org.apache.directory.api.asn1.Asn1Objectpublic ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
LastReq :
0x30 LL
0x30 LL
0xA0 LL
0x02 0x01 lrType
0xA1 0x11
0x18 0x0F lrValue
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 String toString(String tabs)
Object.toString()public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.