Constructs a new session context.
Adds the given session to the cache.
This method is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance.
This is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance or the validity of the returned session.
Called for server sessions only. Retrieves the session by its ID. Overridden by {@link ServerSessionContext} to
Called for server sessions only. Retrieves the session by ID from the persistent cache.
Called when the given session is about to be added. Used by {@link ClientSessionContext} to update its host-and-port based cache.
Called when a session is about to be removed. Used by {@link ClientSessionContext} to update its host-and-port based cache.
Returns the <code>SSLSession</code> bound to the specified session id.
Returns an Enumeration of all session id's grouped under this <code>SSLSessionContext</code>.
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>.
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>.
Sets the size of the cache used for storing <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>.
Returns the size of the cache used for storing <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>.
Supports SSL session caches.