Package org.bouncycastle.tls
Class NewSessionTicket
- java.lang.Object
-
- org.bouncycastle.tls.NewSessionTicket
-
public class NewSessionTicket extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]ticketprotected longticketLifetimeHint
-
Constructor Summary
Constructors Constructor Description NewSessionTicket(long ticketLifetimeHint, byte[] ticket)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream output)Encode thisNewSessionTicketto anOutputStream.byte[]getTicket()longgetTicketLifetimeHint()static NewSessionTicketparse(java.io.InputStream input)Parse aNewSessionTicketfrom anInputStream.
-
-
-
Method Detail
-
getTicketLifetimeHint
public long getTicketLifetimeHint()
-
getTicket
public byte[] getTicket()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionEncode thisNewSessionTicketto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static NewSessionTicket parse(java.io.InputStream input) throws java.io.IOException
Parse aNewSessionTicketfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
NewSessionTicketobject. - Throws:
java.io.IOException
-
-