AbstractSessionContext

Supports SSL session caches.

Constructors

this
this(int maximumSize)

Constructs a new session context.

Members

Functions

cacheSession
void cacheSession(NativeSslSession session)

Adds the given session to the cache.

finalize
void finalize()
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.
getSessionFromCache
NativeSslSession getSessionFromCache(byte[] sessionId)

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

getSessionFromPersistentCache
NativeSslSession getSessionFromPersistentCache(byte[] sessionId)

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

getSessionTimeout
int getSessionTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

setSessionCacheSize
void setSessionCacheSize(int size)
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.
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.

Variables

sslCtxNativePointer
long sslCtxNativePointer;
Undocumented in source.

Inherited Members

From SSLSessionContext

getSession
SSLSession getSession(byte[] sessionId)

Returns the <code>SSLSession</code> bound to the specified session id.

getIds
Enumeration!(byte[]) getIds()

Returns an Enumeration of all session id's grouped under this <code>SSLSessionContext</code>.

setSessionTimeout
void setSessionTimeout(int seconds)

Sets the timeout limit for <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>. <p> If the timeout limit is set to 't' seconds, a session exceeds the timeout limit 't' seconds after its creation time. When the timeout limit is exceeded for a session, the <code>SSLSession</code> object is invalidated and future connections cannot resume or rejoin the session. A check for sessions exceeding the timeout is made immediately whenever the timeout limit is changed for this <code>SSLSessionContext</code>.

getSessionTimeout
int getSessionTimeout()

Returns the timeout limit of <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>. <p> If the timeout limit is set to 't' seconds, a session exceeds the timeout limit 't' seconds after its creation time. When the timeout limit is exceeded for a session, the <code>SSLSession</code> object is invalidated and future connections cannot resume or rejoin the session. A check for sessions exceeding the timeout limit is made immediately whenever the timeout limit is changed for this <code>SSLSessionContext</code>.

setSessionCacheSize
void setSessionCacheSize(int size)

Sets the size of the cache used for storing <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>.

getSessionCacheSize
int getSessionCacheSize()

Returns the size of the cache used for storing <code>SSLSession</code> objects grouped under this <code>SSLSessionContext</code>.

Meta