Top Description Fields Constructors Methods
org.conscrypt

public final Class ServerSessionContext

extends AbstractSessionContext
Class Inheritance
Annotations
@Internal
Imports
javax.net.ssl.SSLContext

Caches server sessions. Indexes by session ID. Users typically look up sessions using the ID provided by an SSL client.

Field Summary

Modifier and TypeField and Description
private SSLServerSessionCache
Inherited from org.conscrypt.AbstractSessionContext:
sslCtxNativePointer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv NativeSslSession
getSessionFromPersistentCache(byte[] sessionId)

Implements abstract org.conscrypt.AbstractSessionContext.getSessionFromPersistentCache.

Called for server sessions only.
pack-priv void
onBeforeAddSession(NativeSslSession session)

Implements abstract org.conscrypt.AbstractSessionContext.onBeforeAddSession.

Called when the given session is about to be added.
pack-priv void
onBeforeRemoveSession(NativeSslSession session)

Implements abstract org.conscrypt.AbstractSessionContext.onBeforeRemoveSession.

Called when a session is about to be removed.
public void
setPersistentCache(SSLServerSessionCache persistentCache)

Applications should not use this method.

Inherited from org.conscrypt.AbstractSessionContext:
cacheSessionfinalizegetIdsgetSessiongetSessionCacheSizegetSessionFromCachegetSessionTimeoutremoveSessionsetSessionCacheSizesetSessionTimeout

Field Detail

persistentCacheback to summary
private SSLServerSessionCache persistentCache

Constructor Detail

ServerSessionContextback to summary
pack-priv ServerSessionContext()

Method Detail

getSessionFromPersistentCacheback to summary
pack-priv NativeSslSession getSessionFromPersistentCache(byte[] sessionId)

Implements abstract org.conscrypt.AbstractSessionContext.getSessionFromPersistentCache.

Doc from org.conscrypt.AbstractSessionContext.getSessionFromPersistentCache.

Called for server sessions only. Retrieves the session by ID from the persistent cache.

Visible for extension only, not intended to be called directly.

Annotations
@Override
onBeforeAddSessionback to summary
pack-priv void onBeforeAddSession(NativeSslSession session)

Implements abstract org.conscrypt.AbstractSessionContext.onBeforeAddSession.

Doc from org.conscrypt.AbstractSessionContext.onBeforeAddSession.

Called when the given session is about to be added. Used by ClientSessionContext to update its host-and-port based cache.

Visible for extension only, not intended to be called directly.

Annotations
@Override
onBeforeRemoveSessionback to summary
pack-priv void onBeforeRemoveSession(NativeSslSession session)

Implements abstract org.conscrypt.AbstractSessionContext.onBeforeRemoveSession.

Doc from org.conscrypt.AbstractSessionContext.onBeforeRemoveSession.

Called when a session is about to be removed. Used by ClientSessionContext to update its host-and-port based cache.

Visible for extension only, not intended to be called directly.

Annotations
@Override
setPersistentCacheback to summary
public void setPersistentCache(SSLServerSessionCache persistentCache)

Applications should not use this method. Instead use Conscrypt#setServerSessionCache(SSLContext, SSLServerSessionCache).