public class KrbSafeBody
extends org.apache.directory.api.asn1.AbstractAsn1Object
KRB-SAFE-BODY ::= SEQUENCE {
user-data [0] OCTET STRING,
timestamp [1] KerberosTime OPTIONAL,
usec [2] Microseconds OPTIONAL,
seq-number [3] UInt32 OPTIONAL,
s-address [4] HostAddress,
r-address [5] HostAddress OPTIONAL
}
| Constructor and Description |
|---|
KrbSafeBody()
Creates a new instance of KrbSafeBody.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the KRB-SAFE-BODY length:
|
ByteBuffer |
encode(ByteBuffer buffer) |
HostAddress |
getRecipientAddress() |
HostAddress |
getSenderAddress() |
int |
getSeqNumber() |
KerberosTime |
getTimestamp() |
int |
getUsec() |
byte[] |
getUserData() |
void |
setRecipientAddress(HostAddress recipientAddress) |
void |
setSenderAddress(HostAddress senderAddress) |
void |
setSeqNumber(int seqNumber) |
void |
setTimestamp(KerberosTime timestamp) |
void |
setUsec(int usec) |
void |
setUserData(byte[] userData) |
String |
toString() |
public byte[] getUserData()
public void setUserData(byte[] userData)
userData - the userData to setpublic KerberosTime getTimestamp()
public void setTimestamp(KerberosTime timestamp)
timestamp - the timestamp to setpublic int getUsec()
public void setUsec(int usec)
usec - the usec to setpublic int getSeqNumber()
public void setSeqNumber(int seqNumber)
seqNumber - the seqNumber to setpublic HostAddress getSenderAddress()
public void setSenderAddress(HostAddress senderAddress)
senderAddress - the senderAddress to setpublic HostAddress getRecipientAddress()
public void setRecipientAddress(HostAddress recipientAddress)
recipientAddress - the recipientAddress to setpublic int computeLength()
0x30 L1 KRB-SAFE-BODY SEQ
|
+--> 0xA0 L2 user-data tag
| |
| +--> 0x04 L2-1 user-data (Octet String)
|
+--> 0xA1 0x11 timestamp tag
| |
| +--> 0x18 0x0F timestamp (KerberosTime)
|
+--> 0xA2 L3 usec tag
| |
| +--> 0x02 L3-1 usec (Microseconds)
|
+--> 0xA3 L4 seq-number tag
| |
| +--> 0x02 L4-1 seqnumber (UInt32)
|
+--> 0xA4 L5 s-address tag
| |
| +--> 0x30 L5-1 s-address (HostAddress)
|
+--> 0xA5 L6 r-address tag
|
+--> 0x30 L6-1 r-address (HostAddress)
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.