Package org.bouncycastle.tls
Class NewSessionTicket
java.lang.Object
org.bouncycastle.tls.NewSessionTicket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream output) Encode thisNewSessionTicketto anOutputStream.byte[]longstatic NewSessionTicketparse(InputStream input) Parse aNewSessionTicketfrom 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 thisNewSessionTicketto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aNewSessionTicketfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
NewSessionTicketobject. - Throws:
IOException
-