public interface SSLClientSessionCache
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
SSLClientSessionCache
implementation.
public abstract byte[] getSessionData(String host, int port)
| Parameters | |
|---|---|
| host | from javax.net.ssl.SSLSession#getPeerHost() |
| port | from javax.net.ssl.SSLSession#getPeerPort() |
| Returns | |
| byte[] | the session data or null if none is cached |
| Throws | |
| NullPointerException | if host is null |
public abstract void putSessionData(SSLSession session, byte[] sessionData)
| Parameters | |
|---|---|
| session | to cache data for |
| sessionData | to cache |
| Throws | |
| NullPointerException | if session, result of
session.getPeerHost()
or data is null |