public class EncKrbCredPart extends Object implements org.apache.directory.api.asn1.Asn1Object
Constructor and Description |
---|
EncKrbCredPart() |
Modifier and Type | Method and Description |
---|---|
void |
addTicketInfo(KrbCredInfo info)
add KrbCredInfo object to the existing list of ticket-info
|
int |
computeLength()
computing length of EncKrbCredPart:
|
ByteBuffer |
encode(ByteBuffer buffer) |
Integer |
getNonce() |
HostAddress |
getRecipientAddress() |
HostAddress |
getSenderAddress() |
List<KrbCredInfo> |
getTicketInfo() |
KerberosTime |
getTimestamp() |
Integer |
getUsec() |
void |
setNonce(Integer nonce) |
void |
setRecipientAddress(HostAddress recipientAddress) |
void |
setSenderAddress(HostAddress senderAddress) |
void |
setTicketInfo(List<KrbCredInfo> ticketInfo) |
void |
setTimestamp(KerberosTime timestamp) |
void |
setUsec(Integer usec) |
String |
toString() |
public EncKrbCredPart()
public int computeLength()
0x7D L1 | +--> 0x30 L1-2 EncKrbCredPart seq tag | +--> 0xA0 L2 seq of KrbCredInfo tag | | | +--> 0x30 L2-2 seq tag | | | +--> 0x30 LL1 KrbCredInfo | . .... | +--> 0x30 LLn KrbCredInfo | +--> 0xA1 L3 nonce tag | | | +--> 0x02 L3-2 nonce (UInt32) | +--> 0xA2 11 timestamp tag | | | +--> 0x18 0x0F timestamp (KerberosTime) | +--> 0xA3 L4 usec tag | | | +--> 0x02 L4-2 usec (Microseconds) | +--> 0xA4 L5 s-address tag | | | +--> 0x30 L5-2 s-address (HostAddress) | +--> 0xA5 L6 r-address tag | +--> 0x30 L6-2 s-address (HostAddress)
computeLength
in interface org.apache.directory.api.asn1.Asn1Object
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode
in interface org.apache.directory.api.asn1.Asn1Object
org.apache.directory.api.asn1.EncoderException
public List<KrbCredInfo> getTicketInfo()
public void setTicketInfo(List<KrbCredInfo> ticketInfo)
ticketInfo
- the ticketInfo to setpublic KerberosTime getTimestamp()
public void setTimestamp(KerberosTime timestamp)
timestamp
- the timestamp 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 void addTicketInfo(KrbCredInfo info)
info
- the KrbCredInfopublic String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.