public class LastReq
extends java.lang.Object
implements org.apache.directory.api.asn1.Asn1Object
LastReq ::= SEQUENCE OF SEQUENCE {
lr-type [0] Int32,
lr-value [1] KerberosTime
}
| Modifier and Type | Field and Description |
|---|---|
private LastReqEntry |
currentLR
The current LastReqEntry being processed
|
private static boolean |
IS_DEBUG
Speedup for logs
|
private java.util.List<LastReqEntry> |
lastReqs
The list of LastReq elements
|
private int[] |
lastReqSeqLen |
private int |
lastReqSeqSeqLen |
private static org.slf4j.Logger |
LOG
The logger
|
private int[] |
lrTypeTagLen |
private int[] |
lrValueTagLen |
| 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
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the LastReq message to a PDU.
|
LastReqEntry |
getCurrentLR() |
LastReqType |
getCurrentLrType() |
KerberosTime |
getCurrentLrValue() |
java.util.List<LastReqEntry> |
getLastReqs() |
void |
setCurrentLrType(LastReqType lrType)
Set the CurrentLr type
|
void |
setCurrentLrValue(KerberosTime lrValue)
Set the CurrentLr value
|
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 java.util.List<LastReqEntry> lastReqs
private LastReqEntry currentLR
private int[] lrTypeTagLen
private int[] lrValueTagLen
private int[] lastReqSeqLen
private int lastReqSeqSeqLen
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 java.util.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 java.nio.ByteBuffer encode(java.nio.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 java.lang.String toString(java.lang.String tabs)
Object.toString()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()