public interface SSLSessionContext
SSLSessions.| Modifier and Type | Method and Description |
|---|---|
Enumeration<byte[]> |
getIds()
Returns an iterable of all session identifiers in this session context.
|
SSLSession |
getSession(byte[] sessionId)
Returns the session for the specified session identifier.
|
int |
getSessionCacheSize()
Returns the size of the session cache for this session context.
|
int |
getSessionTimeout()
Returns the timeout for sessions in this session context.
|
void |
setSessionCacheSize(int size)
Sets the size of the session cache for this session context.
|
void |
setSessionTimeout(int seconds)
Sets the timeout for sessions in this context.
|
Enumeration<byte[]> getIds()
SSLSession getSession(byte[] sessionId)
sessionId - the session identifier of the session to look up.null
if the specified session identifier does not refer to a session
in this context.int getSessionCacheSize()
zero if unlimited.int getSessionTimeout()
zero if unlimited.void setSessionCacheSize(int size)
throws IllegalArgumentException
size - the size of the session cache, or zero for unlimited
cache size.IllegalArgumentException - if size is negative.void setSessionTimeout(int seconds)
throws IllegalArgumentException
seconds - the timeout in seconds, or zero if unlimited.IllegalArgumentException - if seconds is negative.