SSLSessionContext represents a set of
SSLSessions associated with a single entity. For example,
it could be associated with a server or client who participates in many
sessions concurrently.
Not all environments will contain session contexts. For example, stateless session resumption.
Session contexts may not contain all sessions. For example, stateless sessions are not stored in the session context.
There are SSLSessionContext parameters that affect how
sessions are stored:
SSLSessionContext can be listed.
SSLSession
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | Returns: an enumeration of all the Session id'sReturns an Enumeration of all known session id's grouped under this
|
| public SSLSession | Returns: theSSLSession or null if
the specified session id does not refer to a valid SSLSession.the Session identifier sessionId)Returns the |
| public int | Returns: size of the session cache; zero means there is no size limit.Returns the size of the cache used for storing |
| public int | Returns: the session timeout limit in seconds; zero means there is no limit.Returns the timeout limit of |
| public void | setSessionCacheSize(int
the new session cache size limit; zero means there is no
limit. size)Sets the size of the cache used for storing |
| public void | setSessionTimeout(int
the new session timeout limit in seconds; zero means
there is no limit. seconds)Sets the timeout limit for |
| getIds | back to summary |
|---|---|
| public Enumeration Returns an Enumeration of all known session id's grouped under this
Session contexts may not contain all sessions. For example, stateless sessions are not stored in the session context.
| |
| getSession | back to summary |
|---|---|
| public SSLSession getSession(byte[] sessionId) Returns the
| |
| getSessionCacheSize | back to summary |
|---|---|
| public int getSessionCacheSize() Returns the size of the cache used for storing Implementation Note The JDK implementation returns the cache size as set by
the
| |
| getSessionTimeout | back to summary |
|---|---|
| public int getSessionTimeout() Returns the timeout limit of
If the timeout limit is set to 't' seconds, a session exceeds the
timeout limit 't' seconds after its creation time.
When the timeout limit is exceeded for a session, the
Implementation Note The JDK implementation returns the session timeout as set by
the
| |
| setSessionCacheSize | back to summary |
|---|---|
| public void setSessionCacheSize(int size) Sets the size of the cache used for storing API Note Note that the JDK Implementation uses default values for both
the session cache size and timeout. See
| |
| setSessionTimeout | back to summary |
|---|---|
| public void setSessionTimeout(int seconds) Sets the timeout limit for
If the timeout limit is set to 't' seconds, a session exceeds the
timeout limit 't' seconds after its creation time.
When the timeout limit is exceeded for a session, the
API Note Note that the JDK Implementation uses default values for both
the session cache size and timeout. See
| |