Package org.conscrypt
Class ServerSessionContext
java.lang.Object
org.conscrypt.AbstractSessionContext
org.conscrypt.ServerSessionContext
- All Implemented Interfaces:
SSLSessionContext
Caches server sessions. Indexes by session ID. Users typically look up
sessions using the ID provided by an SSL client.
-
Field Summary
FieldsFields inherited from class org.conscrypt.AbstractSessionContext
sslCtxNativePointer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) NativeSslSession
getSessionFromPersistentCache
(byte[] sessionId) Called for server sessions only.(package private) void
onBeforeAddSession
(NativeSslSession session) Called when the given session is about to be added.(package private) void
onBeforeRemoveSession
(NativeSslSession session) Called when a session is about to be removed.void
setPersistentCache
(SSLServerSessionCache persistentCache) Applications should not use this method.Methods inherited from class org.conscrypt.AbstractSessionContext
cacheSession, finalize, getIds, getSession, getSessionCacheSize, getSessionFromCache, getSessionTimeout, removeSession, setSessionCacheSize, setSessionTimeout
-
Field Details
-
persistentCache
-
-
Constructor Details
-
ServerSessionContext
ServerSessionContext()
-
-
Method Details
-
setPersistentCache
Applications should not use this method. Instead useConscrypt.setServerSessionCache(SSLContext, SSLServerSessionCache)
. -
getSessionFromPersistentCache
Description copied from class:AbstractSessionContext
Called for server sessions only. Retrieves the session by ID from the persistent cache.Visible for extension only, not intended to be called directly.
- Specified by:
getSessionFromPersistentCache
in classAbstractSessionContext
-
onBeforeAddSession
Description copied from class:AbstractSessionContext
Called when the given session is about to be added. Used byClientSessionContext
to update its host-and-port based cache.Visible for extension only, not intended to be called directly.
- Specified by:
onBeforeAddSession
in classAbstractSessionContext
-
onBeforeRemoveSession
Description copied from class:AbstractSessionContext
Called when a session is about to be removed. Used byClientSessionContext
to update its host-and-port based cache.Visible for extension only, not intended to be called directly.
- Specified by:
onBeforeRemoveSession
in classAbstractSessionContext
-