public class ApRep extends KerberosMessage
AP-REP ::= [APPLICATION 15] SEQUENCE {
pvno [0] INTEGER (5),
msg-type [1] INTEGER (15),
enc-part [2] -- EncAPRepPart
}
| Modifier and Type | Field and Description |
|---|---|
private int |
apRepLength |
private int |
apRepSeqLength |
private EncryptedData |
encPart
The encryptedData, an encrypted EncAPRepPart
|
private int |
encPartLength |
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
The logger
|
private int |
msgTypeLength |
private int |
pvnoLength |
| Constructor and Description |
|---|
ApRep()
Creates a new instance of AP-REP.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the AP-REP length
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the AP-REP component
|
EncryptedData |
getEncPart()
Returns the
EncryptedData. |
void |
setEncPart(EncryptedData encPart)
Sets the
EncryptedData. |
java.lang.String |
toString() |
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumberprivate static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private EncryptedData encPart
private int pvnoLength
private int msgTypeLength
private int encPartLength
private int apRepLength
private int apRepSeqLength
public EncryptedData getEncPart()
EncryptedData.EncryptedData.public void setEncPart(EncryptedData encPart)
EncryptedData.encPart - The encrypted partpublic int computeLength()
AP-REP :
0x6F L1 AP-REP message
|
+--> 0x30 L2
|
+--> 0xA0 0x03
| |
| +--> 0x02 0x01 0x05 pvno
|
+--> 0xA1 0x03
| |
| +--> 0x02 0x01 0x0E msg-type
|
+--> 0xA2 L3
|
+--> 0x30 L3-1 enc-part
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.api.asn1.EncoderException
buffer - The buffer containing the encoded resultorg.apache.directory.api.asn1.EncoderException - If the encoding failedpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()