SSLSessionContext implementation.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ReferenceCountedOpenSslContext | |
| private final long | |
| private final OpenSslKeyMaterialProvider | |
| private final OpenSslSessionCache | |
| private final OpenSslSessionStats |
| Access | Constructor and Description |
|---|---|
| pack-priv | OpenSslSessionContext(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider, long mask, OpenSslSessionCache cache)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| public Enumeration | getIds()
Implements javax. SSLSessionContext.
|
| public SSLSession | getSession(byte[]
the Session identifier bytes)Implements javax. SSLSession bound to the specified session id.
|
| public int | getSessionCacheSize()
Implements javax. SSLSession
objects grouped under this SSLSessionContext.
|
| public int | getSessionTimeout()
Implements javax. SSLSession objects grouped
under this SSLSessionContext.
|
| pack-priv final boolean | |
| public boolean | |
| pack-priv final void | removeFromCache(OpenSslSessionId id)
Remove the given |
| public void | |
| public void | setSessionCacheSize(int
the new session cache size limit; zero means there is no
limit. size)Implements javax. SSLSession
objects grouped under this SSLSessionContext.
|
| pack-priv void | |
| public 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.
|
| public void | setTicketKeys(byte[] keys)
Deprecated
use
Sets the SSL session ticket keys of this context.
setTicketKeys(OpenSslSessionTicketKey..
|
| public void | |
| public OpenSslSessionStats | |
| pack-priv final boolean |
| context | back to summary |
|---|---|
| pack-priv final ReferenceCountedOpenSslContext context | |
| mask | back to summary |
|---|---|
| private final long mask | |
| provider | back to summary |
|---|---|
| private final OpenSslKeyMaterialProvider provider | |
| sessionCache | back to summary |
|---|---|
| private final OpenSslSessionCache sessionCache | |
| stats | back to summary |
|---|---|
| private final OpenSslSessionStats stats | |
| OpenSslSessionContext | back to summary |
|---|---|
| pack-priv OpenSslSessionContext(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider, long mask, OpenSslSessionCache cache) | |
| destroy | back to summary |
|---|---|
| pack-priv final void destroy() | |
| getIds | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns an Enumeration of all known session id's grouped under this
Session contexts may not contain all sessions. For example, stateless sessions are not stored in the session context.
| |
| getSession | back to summary |
|---|---|
| public SSLSession getSession(byte[] bytes) Implements javax. Doc from javax. Returns the
| |
| getSessionCacheSize | back to summary |
|---|---|
| public int getSessionCacheSize() Implements javax. Doc from javax. Returns the size of the cache used for storing
| |
| getSessionTimeout | back to summary |
|---|---|
| public 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
| |
| isInCache | back to summary |
|---|---|
| pack-priv final boolean isInCache(OpenSslSessionId id) | |
| isSessionCacheEnabled | back to summary |
|---|---|
| public boolean isSessionCacheEnabled() Return | |
| removeFromCache | back to summary |
|---|---|
| pack-priv final void removeFromCache(OpenSslSessionId id) Remove the given | |
| setSessionCacheEnabled | back to summary |
|---|---|
| public void setSessionCacheEnabled(boolean enabled) Enable or disable caching of SSL sessions. | |
| setSessionCacheSize | back to summary |
|---|---|
| public void setSessionCacheSize(int size) Implements javax. Doc from javax. Sets the size of the cache used for storing
| |
| setSessionFromCache | back to summary |
|---|---|
| pack-priv void setSessionFromCache(String host, int port, long ssl) | |
| setSessionTimeout | back to summary |
|---|---|
| public void setSessionTimeout(int seconds) 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
| |
| setTicketKeys | back to summary |
|---|---|
| public void setTicketKeys(byte[] keys)
Deprecated Sets the SSL session ticket keys of this context.
| |
| setTicketKeys | back to summary |
|---|---|
| public void setTicketKeys(OpenSslSessionTicketKey... keys) Sets the SSL session ticket keys of this context. Depending on the underlying native library you may omit the argument or pass an empty array and so let the native library handle the key generation and rotating for you. If this is supported by the underlying native library should be checked in this case. For example BoringSSL is known to support this. | |
| stats | back to summary |
|---|---|
| public OpenSslSessionStats stats() Returns the stats of this context. | |
| useKeyManager | back to summary |
|---|---|
| pack-priv final boolean useKeyManager() | |