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, setProtocolVersionNumber
public KrbSafe()
public 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
org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.