- java.lang.Object
-
- net.luminis.tls.NewSessionTicket
-
public class NewSessionTicket extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsConstants.CipherSuitecipherprotected longearlyDataMaxSizeprotected booleanhasEarlyDataExtensionprotected byte[]pskprotected byte[]ticketprotected longticketAgeAddprotected java.util.DateticketCreationDateprotected intticketLifeTime
-
Constructor Summary
Constructors Modifier Constructor Description protectedNewSessionTicket()protectedNewSessionTicket(byte[] data)NewSessionTicket(byte[] psk, NewSessionTicketMessage newSessionTicketMessage, TlsConstants.CipherSuite currentCipher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NewSessionTicketdeserialize(byte[] data)TlsConstants.CipherSuitegetCipher()longgetEarlyDataMaxSize()byte[]getPSK()byte[]getSessionTicketIdentity()byte[]getTicket()longgetTicketAgeAdd()java.util.DategetTicketCreationDate()intgetTicketLifeTime()booleanhasEarlyDataExtension()byte[]serialize()java.lang.StringtoString()
-
-
-
Field Detail
-
psk
protected byte[] psk
-
ticketCreationDate
protected java.util.Date ticketCreationDate
-
ticketAgeAdd
protected long ticketAgeAdd
-
ticket
protected byte[] ticket
-
ticketLifeTime
protected int ticketLifeTime
-
hasEarlyDataExtension
protected boolean hasEarlyDataExtension
-
earlyDataMaxSize
protected long earlyDataMaxSize
-
cipher
protected TlsConstants.CipherSuite cipher
-
-
Constructor Detail
-
NewSessionTicket
protected NewSessionTicket()
-
NewSessionTicket
public NewSessionTicket(byte[] psk, NewSessionTicketMessage newSessionTicketMessage, TlsConstants.CipherSuite currentCipher)
-
NewSessionTicket
protected NewSessionTicket(byte[] data)
-
-
Method Detail
-
deserialize
public static NewSessionTicket deserialize(byte[] data)
-
serialize
public byte[] serialize()
-
getPSK
public byte[] getPSK()
-
getTicketCreationDate
public java.util.Date getTicketCreationDate()
-
getTicketAgeAdd
public long getTicketAgeAdd()
-
getSessionTicketIdentity
public byte[] getSessionTicketIdentity()
-
getTicket
public byte[] getTicket()
-
getTicketLifeTime
public int getTicketLifeTime()
-
getCipher
public TlsConstants.CipherSuite getCipher()
-
hasEarlyDataExtension
public boolean hasEarlyDataExtension()
-
getEarlyDataMaxSize
public long getEarlyDataMaxSize()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-