| Modifier and Type | Field and Description |
|---|---|
| private static final int | DEFAULT_SESSION_TIMEOUT_SECONDS
Maximum lifetime of a session (in seconds) after which it's considered invalid and should not be used to for new connections. |
| private volatile int | |
| private final Map | |
| pack-priv final long | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| protected void | finalize()
Overrides java. |
| public final Enumeration | getIds()
Implements javax. |
| public final SSLSession | getSession(byte[]
the Session identifier sessionId)Implements javax. |
| public final int | getSessionCacheSize()
Implements javax. SSLSession
objects grouped under this SSLSessionContext.
|
| pack-priv final NativeSslSession | |
| pack-priv abstract NativeSslSession | |
| public final int | getSessionTimeout()
Implements javax. SSLSession objects grouped
under this SSLSessionContext.
|
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv final void | |
| public final void | setSessionCacheSize(int
the new session cache size limit; zero means there is no
limit. size)Implements javax. SSLSession
objects grouped under this SSLSessionContext.
|
| public final void | setSessionTimeout(int
the new session timeout limit in seconds; zero means
there is no limit. seconds)Implements javax. SSLSession objects grouped
under this SSLSessionContext.
|
| private void |
| DEFAULT_SESSION_TIMEOUT_SECONDS | back to summary |
|---|---|
| private static final int DEFAULT_SESSION_TIMEOUT_SECONDS Maximum lifetime of a session (in seconds) after which it's considered invalid and should not be used to for new connections. | |
| maximumSize | back to summary |
|---|---|
| private volatile int maximumSize | |
| sessions | back to summary |
|---|---|
private final Map<ByteArray, NativeSslSession> sessions
| |
| sslCtxNativePointer | back to summary |
|---|---|
| pack-priv final long sslCtxNativePointer | |
| timeout | back to summary |
|---|---|
| private volatile int timeout | |
| AbstractSessionContext | back to summary |
|---|---|
| pack-priv AbstractSessionContext(int maximumSize) Constructs a new session context.
| |
| cacheSession | back to summary |
|---|---|
| pack-priv final void cacheSession(NativeSslSession session) Adds the given session to the cache. | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| getIds | back to summary |
|---|---|
| public final Enumeration Implements javax. This method is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance.
| |
| getSession | back to summary |
|---|---|
| public final SSLSession getSession(byte[] sessionId) Implements javax. 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 | back to summary |
|---|---|
| public final int getSessionCacheSize() Implements javax. Doc from javax. Returns the size of the cache used for storing
| |
| getSessionFromCache | back to summary |
|---|---|
| pack-priv final NativeSslSession getSessionFromCache(byte[] sessionId) Called for server sessions only. Retrieves the session by its ID. Overridden by
| |
| getSessionFromPersistentCache | back to summary |
|---|---|
| pack-priv abstract NativeSslSession getSessionFromPersistentCache(byte[] sessionId) Called for server sessions only. Retrieves the session by ID from the persistent cache. Visible for extension only, not intended to be called directly. | |
| getSessionTimeout | back to summary |
|---|---|
| public final int getSessionTimeout() Implements javax. Doc from javax. Returns the timeout limit of
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
| |
| onBeforeAddSession | back to summary |
|---|---|
| pack-priv abstract void onBeforeAddSession(NativeSslSession session) Called when the given session is about to be added. Used by Visible for extension only, not intended to be called directly. | |
| onBeforeRemoveSession | back to summary |
|---|---|
| pack-priv abstract void onBeforeRemoveSession(NativeSslSession session) Called when a session is about to be removed. Used by Visible for extension only, not intended to be called directly. | |
| removeSession | back to summary |
|---|---|
| pack-priv final void removeSession(NativeSslSession session) Removes the given session from the cache. | |
| setSessionCacheSize | back to summary |
|---|---|
| public final void setSessionCacheSize(int size) throws IllegalArgumentException Implements javax. Doc from javax. Sets the size of the cache used for storing
| |
| setSessionTimeout | back to summary |
|---|---|
| public final void setSessionTimeout(int seconds) throws IllegalArgumentException Implements javax. Doc from javax. Sets the timeout limit for
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
| |
| trimToSize | back to summary |
|---|---|
| private void trimToSize() Makes sure cache size is < maximumSize. | |