SSLSessionContext implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final OpenSSLContext | |
| private final long | |
| private static final Enumeration | |
| private static final StringManager | |
| private final OpenSSLSessionStats |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | getIds()
Implements javax. Returns an Enumeration of all known session id's grouped under this
|
| public SSLSession | getSession(byte[]
the Session identifier bytes)Implements javax. Returns the |
| public int | getSessionCacheSize()
Implements javax. Returns the size of the cache used for storing |
| public int | getSessionTimeout()
Implements javax. Returns the timeout limit of |
| public boolean | |
| public void | setSessionCacheEnabled(boolean
true to enable caching, false to disableEnable or disable caching of SSL sessions. |
| public void | setSessionCacheSize(int
the new session cache size limit; zero means there is no
limit. size)Implements javax. Sets the size of the cache used for storing |
| public boolean | Returns: true if success, false otherwise.can be any kind of binary data, it is therefore possible to use e.g. the name
of the application and/or the hostname and/or service name sidCtx)Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_context |
| public void | setSessionTimeout(int
the new session timeout limit in seconds; zero means
there is no limit. seconds)Implements javax. Sets the timeout limit for |
| public void | |
| public OpenSSLSessionStats |
| context | back to summary |
|---|---|
private final OpenSSLContext context
| |
| contextID | back to summary |
|---|---|
| private final long contextID | |
| EMPTY | back to summary |
|---|---|
| private static final Enumeration<byte[]> EMPTY | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| stats | back to summary |
|---|---|
| private final OpenSSLSessionStats stats | |
| OpenSSLSessionContext | back to summary |
|---|---|
| pack-priv OpenSSLSessionContext(OpenSSLContext context) | |
| 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
| |
| isSessionCacheEnabled | back to summary |
|---|---|
public boolean isSessionCacheEnabled()
| |
| 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
| |
| setSessionIdContext | back to summary |
|---|---|
| public boolean setSessionIdContext(byte[] sidCtx) Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_context
| |
| 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) Sets the SSL session ticket keys of this context.
| |
| stats | back to summary |
|---|---|
public OpenSSLSessionStats stats()
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasMoreElements()
Implements java. Tests if this enumeration contains more elements. |
| public byte[] | nextElement()
Implements java. Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
| EmptyEnumeration | back to summary |
|---|---|
| private EmptyEnumeration() | |
| hasMoreElements | back to summary |
|---|---|
| public boolean hasMoreElements() Implements java. Doc from java. Tests if this enumeration contains more elements.
| |
| nextElement | back to summary |
|---|---|
| public byte[] nextElement() Implements java. Doc from java. Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
| |