Package: org.conscrypt

SSLServerSessionCache

public interface SSLServerSessionCache
A persistent javax.net.ssl.SSLSession cache used by javax.net.ssl.SSLSessionContext to share server-side SSL sessions across processes. For example, this cache enables one server to resume a session started by a different server based on a session ID provided by the client.

The SSLSessionContext implementation converts SSLSession s into raw bytes and vice versa. The exact makeup of the session data is dependent upon the caller's implementation and is opaque to the SSLServerSessionCache implementation.

Public Methods

getSessionData

public abstract byte[] getSessionData(byte[] id)
Gets the session data for given session ID.
Parameters
id from javax.net.ssl.SSLSession#getId()
Returns
byte[] the session data or null if none is cached
Throws
NullPointerException if id is null

putSessionData

public abstract void putSessionData(SSLSession session, byte[] sessionData)
Stores session data for the given session.
Parameters
session to cache data for
sessionData to cache
Throws
NullPointerException if session or data is null