ServerSessionContext

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

Constructors

this
this(int maximumSize)
Undocumented in source.

Members

Functions

getSessionFromPersistentCache
NativeSslSession getSessionFromPersistentCache(byte[] sessionId)
Undocumented in source. Be warned that the author may not have intended to support it.
onBeforeAddSession
void onBeforeAddSession(NativeSslSession session)
Undocumented in source. Be warned that the author may not have intended to support it.
onBeforeRemoveSession
void onBeforeRemoveSession(NativeSslSession session)
Undocumented in source. Be warned that the author may not have intended to support it.
setPersistentCache
void setPersistentCache(SSLServerSessionCache persistentCache)

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

Inherited Members

From AbstractSessionContext

sslCtxNativePointer
long sslCtxNativePointer;
Undocumented in source.
setVerify
void setVerify(int mode)
Undocumented in source. Be warned that the author may not have intended to support it.
useCaCertificate
void useCaCertificate(string caFile, string password)
Undocumented in source. Be warned that the author may not have intended to support it.
useCertificate
void useCertificate(string certificate, string privateKey, string certPassword, string keyPassword)
Undocumented in source. Be warned that the author may not have intended to support it.
getIds
Enumeration!(byte[]) getIds()

This method is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance.

getSession
SSLSession getSession(byte[] sessionId)

This is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance or the validity of the returned session.

getSessionCacheSize
int getSessionCacheSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getSessionTimeout
int getSessionTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
setSessionTimeout
void setSessionTimeout(int seconds)
Undocumented in source. Be warned that the author may not have intended to support it.
setSessionCacheSize
void setSessionCacheSize(int size)
Undocumented in source. Be warned that the author may not have intended to support it.
finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
cacheSession
void cacheSession(NativeSslSession session)

Adds the given session to the cache.

getSessionFromCache
NativeSslSession getSessionFromCache(byte[] sessionId)

Called for server sessions only. Retrieves the session by its ID. Overridden by {@link ServerSessionContext} to

onBeforeAddSession
void onBeforeAddSession(NativeSslSession session)

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

onBeforeRemoveSession
void onBeforeRemoveSession(NativeSslSession session)

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

getSessionFromPersistentCache
NativeSslSession getSessionFromPersistentCache(byte[] sessionId)

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

Meta