public interface SSLClientSessionCache
SSLSession cache used by
SSLSessionContext to share client-side SSL sessions
across processes. For example, this cache enables applications to
persist and reuse sessions across restarts.
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 SSLClientSessionCache implementation.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSessionData(String host,
int port)
Gets data from a pre-existing session for a given server host and port.
|
void |
putSessionData(SSLSession session,
byte[] sessionData)
Stores session data for the given session.
|
byte[] getSessionData(String host, int port)
host - from SSLSession.getPeerHost()port - from SSLSession.getPeerPort()NullPointerException - if host is nullvoid putSessionData(SSLSession session, byte[] sessionData)
session - to cache data forsessionData - to cacheNullPointerException - if session, result of
session.getPeerHost() or data is null