SSLSessionContext.setSessionTimeout

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>.

@param seconds the new session timeout limit in seconds; zero means there is no limit.

@exception IllegalArgumentException if the timeout specified is {@code < 0}. @see #getSessionTimeout

interface SSLSessionContext
void
setSessionTimeout
()

Meta