jdk.tls.server.enableSessionTicketExtension determines if the
server will provide stateless session tickets, if the client supports it,
as described in RFC 5077 and RFC 8446. a stateless session ticket
contains the encrypted server's state which saves server resources.
jdk.tls.client.enableSessionTicketExtension determines if the
client will send an extension in the ClientHello in the pre-TLS 1.3.
This extension allows the client to accept the server's session state for
Server Side stateless resumption (RFC 5077). Setting the property to
"false" turns this off, by default it is true. For TLS 1.3, the system
property is not needed as this support is part of the spec.
jdk.tls.server.sessionTicketTimeout determines how long
a session in the server cache or the stateless resumption tickets are
available for use. The value set by the property can be modified by
SSLSessionContext.setSessionTimeout() during runtime.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| private final Map | |
| private final Cache | |
| private final Cache | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv SSLSessionImpl | |
| pack-priv SSLSessionImpl | |
| private int | |
| public Enumeration | getIds()
Implements javax. Returns an enumeration of the active SSL sessions. |
| pack-priv SessionTicketExtension. | |
| pack-priv SessionTicketExtension. | |
| private static String | |
| public SSLSession | getSession(byte[] sessionId)
Implements javax. Returns the |
| public int | getSessionCacheSize()
Implements javax. Gets the size of the cache used for storing
|
| public int | getSessionTimeout()
Implements javax. Gets the timeout limit for cached |
| private boolean | |
| pack-priv SSLSessionImpl | |
| pack-priv void | |
| pack-priv void | put(SSLSessionImpl
SSLSessionImpl entry to be stored s, boolean True if multiple entries may exist under one
session entry. canQueue)Put an entry in the cache |
| pack-priv void | |
| pack-priv void | |
| public void | setSessionCacheSize(int size)
Implements javax. Sets the size of the cache used for storing
|
| public void | setSessionTimeout(int seconds)
Implements javax. Sets the timeout limit for cached |
| pack-priv boolean |
| cacheLimit | back to summary |
|---|---|
| private int cacheLimit | |
| currentKeyID | back to summary |
|---|---|
| private int currentKeyID | |
| DEFAULT_MAX_CACHE_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_MAX_CACHE_SIZE | |
| DEFAULT_MAX_QUEUE_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_MAX_QUEUE_SIZE | |
| DEFAULT_SESSION_TIMEOUT | back to summary |
|---|---|
| pack-priv static final int DEFAULT_SESSION_TIMEOUT | |
| keyHashMap | back to summary |
|---|---|
| private final Map<Integer, SessionTicketExtension. | |
| sessionCache | back to summary |
|---|---|
| private final Cache<SessionId, SSLSessionImpl> sessionCache | |
| sessionHostPortCache | back to summary |
|---|---|
| private final Cache<String, SSLSessionImpl> sessionHostPortCache | |
| statelessSession | back to summary |
|---|---|
| private boolean statelessSession | |
| timeout | back to summary |
|---|---|
| private int timeout | |
| SSLSessionContextImpl | back to summary |
|---|---|
| pack-priv SSLSessionContextImpl(boolean server) | |
| cleanupStatelessKeys | back to summary |
|---|---|
| private void cleanupStatelessKeys() | |
| get | back to summary |
|---|---|
| pack-priv SSLSessionImpl get(byte[] id) | |
| get | back to summary |
|---|---|
| pack-priv SSLSessionImpl get(String hostname, int port) | |
| getDefaults | back to summary |
|---|---|
| private int getDefaults(boolean server) | |
| getIds | back to summary |
|---|---|
| public Enumeration Implements javax. Returns an enumeration of the active SSL sessions.
| |
| getKey | back to summary |
|---|---|
| pack-priv SessionTicketExtension. | |
| getKey | back to summary |
|---|---|
| pack-priv SessionTicketExtension. | |
| getKey | back to summary |
|---|---|
| private static String getKey(String hostname, int port) | |
| getSession | back to summary |
|---|---|
| public SSLSession getSession(byte[] sessionId) Implements javax. Returns the
| |
| getSessionCacheSize | back to summary |
|---|---|
| public int getSessionCacheSize() Implements javax. Gets the size of the cache used for storing
| |
| getSessionTimeout | back to summary |
|---|---|
| public int getSessionTimeout() Implements javax. Gets the timeout limit for cached
| |
| isTimedout | back to summary |
|---|---|
| private boolean isTimedout(SSLSession sess) | |
| pull | back to summary |
|---|---|
| pack-priv SSLSessionImpl pull(byte[] id) | |
| put | back to summary |
|---|---|
| pack-priv void put(SSLSessionImpl s) | |
| put | back to summary |
|---|---|
| pack-priv void put(SSLSessionImpl s, boolean canQueue) Put an entry in the cache
| |
| remove | back to summary |
|---|---|
| pack-priv void remove(SessionId key) | |
| remove | back to summary |
|---|---|
| pack-priv void remove(SessionId key, boolean isClient) | |
| setSessionCacheSize | back to summary |
|---|---|
| public void setSessionCacheSize(int size) throws IllegalArgumentException Implements javax. Sets the size of the cache used for storing
| |
| setSessionTimeout | back to summary |
|---|---|
| public void setSessionTimeout(int seconds) throws IllegalArgumentException Implements javax. Sets the timeout limit for cached
| |
| statelessEnabled | back to summary |
|---|---|
| pack-priv boolean statelessEnabled() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Enumeration | |
| public void |
| ids | back to summary |
|---|---|
| pack-priv ArrayList<byte[]> ids | |
| SessionCacheVisitor | back to summary |
|---|---|
| private SessionCacheVisitor() | |
| getSessionIds | back to summary |
|---|---|
| pack-priv Enumeration | |
| visit | back to summary |
|---|---|
| public void visit(Map<SessionId, SSLSessionImpl> map) Implements sun.
| |