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