public final class SSLSessionContextImpl
extends java.lang.Object
implements javax.net.ssl.SSLSessionContext
| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration<byte[]> |
getIds()
Returns an enumeration of the active SSL sessions.
|
javax.net.ssl.SSLSession |
getSession(byte[] sessionId)
Returns the
SSLSession bound to the specified session id. |
int |
getSessionCacheSize()
Gets the size of the cache used for storing
SSLSession objects. |
int |
getSessionsAmount() |
int |
getSessionTimeout()
Gets the timeout limit for cached
SSLSession objects |
void |
setSessionCacheSize(int size)
Sets the size of the cache used for storing
SSLSession objects. |
void |
setSessionTimeout(int seconds)
Sets the timeout limit for cached
SSLSession objects
Note that after reset the timeout, the cached session before
should be timed within the shorter one of the old timeout and the
new timeout. |
public javax.net.ssl.SSLSession getSession(byte[] sessionId)
SSLSession bound to the specified session id.getSession in interface javax.net.ssl.SSLSessionContextpublic java.util.Enumeration<byte[]> getIds()
getIds in interface javax.net.ssl.SSLSessionContextpublic void setSessionTimeout(int seconds)
throws java.lang.IllegalArgumentException
SSLSession objects
Note that after reset the timeout, the cached session before
should be timed within the shorter one of the old timeout and the
new timeout.setSessionTimeout in interface javax.net.ssl.SSLSessionContextjava.lang.IllegalArgumentExceptionpublic int getSessionTimeout()
SSLSession objectsgetSessionTimeout in interface javax.net.ssl.SSLSessionContextpublic void setSessionCacheSize(int size)
throws java.lang.IllegalArgumentException
SSLSession objects.setSessionCacheSize in interface javax.net.ssl.SSLSessionContextjava.lang.IllegalArgumentExceptionpublic int getSessionCacheSize()
SSLSession objects.getSessionCacheSize in interface javax.net.ssl.SSLSessionContextpublic int getSessionsAmount()