Package org.bouncycastle.crypto.tls
Class NewSessionTicket
- java.lang.Object
-
- org.bouncycastle.crypto.tls.NewSessionTicket
-
public class NewSessionTicket extends java.lang.Object
Deprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
ticket
Deprecated.protected long
ticketLifetimeHint
Deprecated.
-
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 void
encode(java.io.OutputStream output)
Deprecated.Encode thisNewSessionTicket
to anOutputStream
.byte[]
getTicket()
Deprecated.long
getTicketLifetimeHint()
Deprecated.static NewSessionTicket
parse(java.io.InputStream input)
Deprecated.Parse aNewSessionTicket
from anInputStream
.
-
-
-
Method Detail
-
getTicketLifetimeHint
public long getTicketLifetimeHint()
Deprecated.
-
getTicket
public byte[] getTicket()
Deprecated.
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Deprecated.Encode thisNewSessionTicket
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static NewSessionTicket parse(java.io.InputStream input) throws java.io.IOException
Deprecated.Parse aNewSessionTicket
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
NewSessionTicket
object. - Throws:
java.io.IOException
-
-