public interface SSLServerSessionCache
SSLSession cache used by
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
SSLSessions 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.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSessionData(byte[] id)
Gets the session data for given session ID.
|
void |
putSessionData(SSLSession session,
byte[] sessionData)
Stores session data for the given session.
|
byte[] getSessionData(byte[] id)
id - from SSLSession.getId()NullPointerException - if id is nullvoid putSessionData(SSLSession session, byte[] sessionData)
session - to cache data forsessionData - to cacheNullPointerException - if session or data is null