javax.net.ssl
Interface SSLSessionContext
public interface SSLSessionContext
Represents a group of SSLSessions related to a particular host. This context determines
the number of sessions allowed in the set, and if those sessions will expire after a
certain amount of time.
getSession
SSLSession getSession (byte[] sessionID)
Parameters: sessionID - an ID for a requested session belonging to this context
Returns: returns the SSL session with the given ID, or null if not found
getIds
Enumeration getIds ()
Returns: returns set of all session ids for this context
setSessionTimeout
void setSessionTimeout (int timeoutSeconds)
throws IllegalArgumentException
Sets the timeout for the sessions in this context
Parameters: timeoutSeconds - session timeout in seconds, zero means no timeout, sessions will not expire
Throws:
IllegalArgumentException - throws when timeoutSeconds is a negative number
getSessionTimeout
int getSessionTimeout ()
Returns: returns session timeout, zero means the sessions in this context will not timeout
setSessionCacheSize
void setSessionCacheSize (int numEntries)
throws IllegalArgumentException
Parameters: numEntries - number of sessions allowed in this context, zero means there is no limit on number of entries
Throws:
IllegalArgumentException - throws when number of entries is a negative number
getSessionCacheSize
int getSessionCacheSize ()
Returns: returns the number of sessions allowed in this context, zero means there is no upper limit on number of sessions in this context
Licensed Materials - Property of IBM © Copyright IBM Corp. 2006, 2008 All Rights Reserved.