public class ServerSessionContext extends Object
| Constructor and Description |
|---|
ServerSessionContext() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
Enumeration<byte[]> |
getIds() |
SSLSession |
getSession(byte[] sessionId) |
int |
getSessionCacheSize() |
int |
getSessionTimeout() |
protected void |
sessionRemoved(SSLSession session)
Called when a session is removed.
|
void |
setPersistentCache(SSLServerSessionCache persistentCache) |
void |
setSessionCacheSize(int size) |
void |
setSessionTimeout(int seconds) |
byte[] |
toBytes(SSLSession session)
Converts the given session to bytes.
|
OpenSSLSessionImpl |
toSession(byte[] data,
String host,
int port)
Creates a session from the given bytes.
|
protected void |
trimToSize()
Makes sure cache size is < maximumSize.
|
protected SSLSession |
wrapSSLSessionIfNeeded(SSLSession session) |
public void setPersistentCache(SSLServerSessionCache persistentCache)
protected void sessionRemoved(SSLSession session)
public SSLSession getSession(byte[] sessionId)
getSession in interface SSLSessionContextpublic final Enumeration<byte[]> getIds()
getIds in interface SSLSessionContextpublic final int getSessionCacheSize()
getSessionCacheSize in interface SSLSessionContextpublic final int getSessionTimeout()
getSessionTimeout in interface SSLSessionContextprotected void trimToSize()
public void setSessionTimeout(int seconds)
throws IllegalArgumentException
setSessionTimeout in interface SSLSessionContextIllegalArgumentExceptionpublic final void setSessionCacheSize(int size)
throws IllegalArgumentException
setSessionCacheSize in interface SSLSessionContextIllegalArgumentExceptionpublic byte[] toBytes(SSLSession session)
public OpenSSLSessionImpl toSession(byte[] data, String host, int port)
protected SSLSession wrapSSLSessionIfNeeded(SSLSession session)