SSLSessionContext

A <code>SSLSessionContext</code> represents a set of <code>SSLSession</code>s associated with a single entity. For example, it could be associated with a server or client who participates in many sessions concurrently. <p> Not all environments will contain session contexts. <p> There are <code>SSLSessionContext</code> parameters that affect how sessions are stored: <UL> <LI>Sessions can be set to expire after a specified time limit. <LI>The number of sessions that can be stored in context can be limited. </UL> A session can be retrieved based on its session id, and all session id's in a <code>SSLSessionContext</code> can be listed.

@see SSLSession

@author Nathan Abramson @author David Brownell

Members

Functions

getIds
Enumeration!(byte[]) getIds()

Returns an Enumeration of all session id's grouped under this <code>SSLSessionContext</code>.

getSession
SSLSession getSession(byte[] sessionId)

Returns the <code>SSLSession</code> bound to the specified session id.

getSessionCacheSize
int getSessionCacheSize()

Returns the size of the cache used for storing <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>.

getSessionTimeout
int getSessionTimeout()

Returns the timeout limit of <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>. <p> 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 <code>SSLSession</code> object is invalidated and future connections cannot resume or rejoin the session. A check for sessions exceeding the timeout limit is made immediately whenever the timeout limit is changed for this <code>SSLSessionContext</code>.

setSessionCacheSize
void setSessionCacheSize(int size)

Sets the size of the cache used for storing <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>.

setSessionTimeout
void setSessionTimeout(int seconds)

Sets the timeout limit for <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>. <p> 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 <code>SSLSession</code> object is invalidated and future connections cannot resume or rejoin the session. A check for sessions exceeding the timeout is made immediately whenever the timeout limit is changed for this <code>SSLSessionContext</code>.

Meta