public class NewSessionTicket
extends java.lang.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(java.io.OutputStream output)
Encode this
NewSessionTicket to an OutputStream. |
byte[] |
getTicket() |
long |
getTicketLifetimeHint() |
static NewSessionTicket |
parse(java.io.InputStream input)
Parse a
NewSessionTicket from an InputStream. |
public long getTicketLifetimeHint()
public byte[] getTicket()
public void encode(java.io.OutputStream output)
throws java.io.IOException
NewSessionTicket to an OutputStream.output - the OutputStream to encode to.java.io.IOExceptionpublic static NewSessionTicket parse(java.io.InputStream input) throws java.io.IOException
NewSessionTicket from an InputStream.input - the InputStream to parse from.NewSessionTicket object.java.io.IOException