public class KrbCred extends KerberosMessage
Constructor and Description |
---|
KrbCred()
Creates a new instance of KrbCred.
|
Modifier and Type | Method and Description |
---|---|
void |
addTicket(Ticket ticket)
adds a Ticket to the ticket list
|
int |
computeLength()
Compute the KRB-CRED length
|
ByteBuffer |
encode(ByteBuffer buffer) |
EncryptedData |
getEncPart() |
List<Ticket> |
getTickets() |
void |
setEncPart(EncryptedData encPart) |
void |
setTickets(List<Ticket> tickets) |
String |
toString() |
getMessageType, getProtocolVersionNumber, setMessageType, setProtocolVersionNumber
public KrbCred()
public int computeLength()
KRB-CRED : 0x76 L1 KRB-CRED APPLICATION[22] | +--> 0x30 L2 KRB-CRED sequence | +--> 0xA0 0x03 pvno tag | | | +--> 0x02 0x01 0x05 pvno (5) | +--> 0xA1 0x03 msg-type tag | | | +--> 0x02 0x01 0x16 msg-type (22) | +--> 0xA2 L3 tickets tag | | | +--> 0x30 LL tickets seq tag | | | +--> 0x30 LL1 ticket (Ticket) | . ... | +--> 0x30 LLn ticket (Ticket) | +--> 0xA3 L4 enc-part tag | +--> 0x30 L4-2 enc-part (EncryptedData)
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
org.apache.directory.api.asn1.EncoderException
public List<Ticket> getTickets()
public void setTickets(List<Ticket> tickets)
tickets
- the tickets to setpublic EncryptedData getEncPart()
public void setEncPart(EncryptedData encPart)
encPart
- the encPart to setpublic void addTicket(Ticket ticket)
ticket
- the Ticket to be addedpublic String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.