Module java.base
Package javax.net.ssl

Interface SSLSessionContext


public interface SSLSessionContext
A SSLSessionContext represents a set of SSLSessions associated with a single entity. For example, it could be associated with a server or client who participates in many sessions concurrently.

Not all environments will contain session contexts. For example, stateless session resumption.

Session contexts may not contain all sessions. For example, stateless sessions are not stored in the session context.

There are SSLSessionContext parameters that affect how sessions are stored:

  • Sessions can be set to expire after a specified time limit.
  • The number of sessions that can be stored in context can be limited.
A session can be retrieved based on its session id, and all session id's in a SSLSessionContext can be listed.
Since:
1.4
See Also: