Top Fields Constructors Methods
org.bouncycastle.tls

public Class NewSessionTicket

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream

Field Summary

Modifier and TypeField and Description
protected byte[]
protected long

Constructor Summary

AccessConstructor and Description
public
NewSessionTicket(long ticketLifetimeHint, byte[] ticket)

Method Summary

Modifier and TypeMethod and Description
public void
encode(OutputStream
the OutputStream to encode to.
output
)

Encode this NewSessionTicket to an OutputStream.

public byte[]
public long
public static NewSessionTicket

Returns:

a NewSessionTicket object.
parse
(InputStream
the InputStream to parse from.
input
)

Parse a NewSessionTicket from an InputStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ticketback to summary
protected byte[] ticket
ticketLifetimeHintback to summary
protected long ticketLifetimeHint

Constructor Detail

NewSessionTicketback to summary
public NewSessionTicket(long ticketLifetimeHint, byte[] ticket)

Method Detail

encodeback to summary
public void encode(OutputStream output) throws IOException

Encode this NewSessionTicket to an OutputStream.

Parameters
output:OutputStream

the OutputStream to encode to.

getTicketback to summary
public byte[] getTicket()
getTicketLifetimeHintback to summary
public long getTicketLifetimeHint()
parseback to summary
public static NewSessionTicket parse(InputStream input) throws IOException

Parse a NewSessionTicket from an InputStream.

Parameters
input:InputStream

the InputStream to parse from.

Returns:NewSessionTicket

a NewSessionTicket object.