public class KrbSafe extends KerberosMessage
KRB-SAFE ::= [APPLICATION 20] SEQUENCE {
pvno [0] INTEGER (5),
msg-type [1] INTEGER (20),
safe-body [2] KRB-SAFE-BODY,
cksum [3] Checksum
}
| Constructor and Description |
|---|
KrbSafe()
Creates a new instance of KrbSafe.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the KRB-SAFE length
|
ByteBuffer |
encode(ByteBuffer buffer) |
Checksum |
getChecksum() |
KrbSafeBody |
getSafeBody() |
void |
setChecksum(Checksum checksum) |
void |
setSafeBody(KrbSafeBody safeBody) |
String |
toString() |
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumberpublic KrbSafeBody getSafeBody()
public void setSafeBody(KrbSafeBody safeBody)
safeBody - the KrbSafeBody to setpublic Checksum getChecksum()
public void setChecksum(Checksum checksum)
checksum - the checksum to setpublic int computeLength()
KRB-SAFE :
0x74 L1 KRB-SAFE APPLICATION[20]
|
+--> 0x30 L2 KRB-ERROR sequence
|
+--> 0xA0 0x03 pvno tag
| |
| +--> 0x02 0x01 0x05 pvno (5)
|
+--> 0xA1 0x03 msg-type tag
| |
| +--> 0x02 0x01 0x14 msg-type (20)
|
+--> 0xA2 L3 safe-body tag
| |
| +--> 0x30 L3-1 safe-body (KRB-SAFE-BODY)
|
+--> 0xA3 L4 cksum tag
|
+--> 0x30 L4-1 cksum (CHECKSUM)
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectencode in class org.apache.directory.api.asn1.AbstractAsn1Objectorg.apache.directory.api.asn1.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.