Package org.bouncycastle.tls
Class NewSessionTicket
java.lang.Object
org.bouncycastle.tls.NewSessionTicket
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisNewSessionTicket
to anOutputStream
.byte[]
long
static NewSessionTicket
parse
(InputStream input) Parse aNewSessionTicket
from anInputStream
.
-
Field Details
-
ticketLifetimeHint
protected long ticketLifetimeHint -
ticket
protected byte[] ticket
-
-
Constructor Details
-
NewSessionTicket
public NewSessionTicket(long ticketLifetimeHint, byte[] ticket)
-
-
Method Details
-
getTicketLifetimeHint
public long getTicketLifetimeHint() -
getTicket
public byte[] getTicket() -
encode
Encode thisNewSessionTicket
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aNewSessionTicket
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
NewSessionTicket
object. - Throws:
IOException
-