Package org.bouncycastle.crypto.tls
Class NewSessionTicket
- java.lang.Object
-
- org.bouncycastle.crypto.tls.NewSessionTicket
-
public class NewSessionTicket extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
ticket
protected long
ticketLifetimeHint
-
Constructor Summary
Constructors Constructor Description NewSessionTicket(long ticketLifetimeHint, byte[] ticket)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream output)
Encode thisNewSessionTicket
to anOutputStream
.byte[]
getTicket()
long
getTicketLifetimeHint()
static NewSessionTicket
parse(java.io.InputStream input)
Parse aNewSessionTicket
from anInputStream
.
-
-
-
Method Detail
-
getTicketLifetimeHint
public long getTicketLifetimeHint()
-
getTicket
public byte[] getTicket()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Encode thisNewSessionTicket
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static NewSessionTicket parse(java.io.InputStream input) throws java.io.IOException
Parse aNewSessionTicket
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
NewSessionTicket
object. - Throws:
java.io.IOException
-
-