javax.net.ssl.SSLSessionContext |
A collection of SSLSession
s.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an iterable of all session identifiers in this session context.
| |||||||||||
Returns the session for the specified session identifier.
| |||||||||||
Returns the size of the session cache for this session context.
| |||||||||||
Returns the timeout for sessions in this session context.
| |||||||||||
Sets the size of the session cache for this session context.
| |||||||||||
Sets the timeout for sessions in this context.
|
Returns an iterable of all session identifiers in this session context.
Returns the session for the specified session identifier.
sessionId | the session identifier of the session to look up. |
---|
null
if the specified session identifier does not refer to a session
in this context.
Returns the size of the session cache for this session context.
zero
if unlimited.
Returns the timeout for sessions in this session context. Sessions exceeding the timeout are invalidated.
zero
if unlimited.
Sets the size of the session cache for this session context.
size | the size of the session cache, or zero for unlimited
cache size. |
---|
IllegalArgumentException | if size is negative.
|
---|
Sets the timeout for sessions in this context. Sessions exceeding the timeout are invalidated.
seconds | the timeout in seconds, or zero if unlimited. |
---|
IllegalArgumentException | if seconds is negative.
|
---|