org.bouncycastle.crypto.tls
Class NewSessionTicket
java.lang.Object
org.bouncycastle.crypto.tls.NewSessionTicket
public class NewSessionTicket
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ticketLifetimeHint
protected long ticketLifetimeHint
ticket
protected byte[] ticket
NewSessionTicket
public NewSessionTicket(long ticketLifetimeHint,
byte[] ticket)
getTicketLifetimeHint
public long getTicketLifetimeHint()
getTicket
public byte[] getTicket()
encode
public void encode(java.io.OutputStream output)
throws java.io.IOException
- Encode this
NewSessionTicket
to an OutputStream
.
- Parameters:
output
- the OutputStream
to encode to.
- Throws:
java.io.IOException
parse
public static NewSessionTicket parse(java.io.InputStream input)
throws java.io.IOException
- Parse a
NewSessionTicket
from an InputStream
.
- Parameters:
input
- the InputStream
to parse from.
- Returns:
- a
NewSessionTicket
object.
- Throws:
java.io.IOException