- java.lang.Object
-
- net.luminis.tls.engine.impl.TlsSessionRegistryImpl
-
- All Implemented Interfaces:
TlsSessionRegistry
public class TlsSessionRegistryImpl extends java.lang.Object implements TlsSessionRegistry
-
-
Constructor Summary
Constructors Constructor Description TlsSessionRegistryImpl()TlsSessionRegistryImpl(int ticketLifeTimeInSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewSessionTicketMessagecreateNewSessionTicketMessage(byte ticketNonce, TlsConstants.CipherSuite cipher, TlsState tlsState, java.lang.String applicationProtocol)NewSessionTicketMessagecreateNewSessionTicketMessage(byte ticketNonce, TlsConstants.CipherSuite cipher, TlsState tlsState, java.lang.String applicationProtocol, java.lang.Long maxEarlyDataSize, byte[] data)byte[]peekSessionData(ClientHelloPreSharedKeyExtension.PskIdentity pskIdentity)java.lang.IntegerselectIdentity(java.util.List<ClientHelloPreSharedKeyExtension.PskIdentity> identities, TlsConstants.CipherSuite cipher)TlsSessionuseSession(ClientHelloPreSharedKeyExtension.PskIdentity pskIdentity)
-
-
-
Method Detail
-
createNewSessionTicketMessage
public NewSessionTicketMessage createNewSessionTicketMessage(byte ticketNonce, TlsConstants.CipherSuite cipher, TlsState tlsState, java.lang.String applicationProtocol)
- Specified by:
createNewSessionTicketMessagein interfaceTlsSessionRegistry
-
createNewSessionTicketMessage
public NewSessionTicketMessage createNewSessionTicketMessage(byte ticketNonce, TlsConstants.CipherSuite cipher, TlsState tlsState, java.lang.String applicationProtocol, java.lang.Long maxEarlyDataSize, byte[] data)
- Specified by:
createNewSessionTicketMessagein interfaceTlsSessionRegistry
-
selectIdentity
public java.lang.Integer selectIdentity(java.util.List<ClientHelloPreSharedKeyExtension.PskIdentity> identities, TlsConstants.CipherSuite cipher)
- Specified by:
selectIdentityin interfaceTlsSessionRegistry
-
useSession
public TlsSession useSession(ClientHelloPreSharedKeyExtension.PskIdentity pskIdentity)
- Specified by:
useSessionin interfaceTlsSessionRegistry
-
peekSessionData
public byte[] peekSessionData(ClientHelloPreSharedKeyExtension.PskIdentity pskIdentity)
- Specified by:
peekSessionDatain interfaceTlsSessionRegistry
-
-