public class NewSessionTicket extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
ticket |
protected long |
ticketLifetimeHint |
Constructor and Description |
---|
NewSessionTicket(long ticketLifetimeHint,
byte[] ticket) |
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encode this
NewSessionTicket to an OutputStream . |
byte[] |
getTicket() |
long |
getTicketLifetimeHint() |
static NewSessionTicket |
parse(InputStream input)
Parse a
NewSessionTicket from an InputStream . |
public long getTicketLifetimeHint()
public byte[] getTicket()
public void encode(OutputStream output) throws IOException
NewSessionTicket
to an OutputStream
.output
- the OutputStream
to encode to.IOException
public static NewSessionTicket parse(InputStream input) throws IOException
NewSessionTicket
from an InputStream
.input
- the InputStream
to parse from.NewSessionTicket
object.IOException