final class SSLSessionContextImpl extends Object implements SSLSessionContext
| 限定符和类型 | 类和说明 |
|---|---|
private class |
SSLSessionContextImpl.SessionCacheVisitor |
| 限定符和类型 | 字段和说明 |
|---|---|
private int |
cacheLimit |
private static int |
DEFAULT_MAX_CACHE_SIZE |
private Cache<SessionId,SSLSessionImpl> |
sessionCache |
private Cache<String,SSLSessionImpl> |
sessionHostPortCache |
private int |
timeout |
| 构造器和说明 |
|---|
SSLSessionContextImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) SSLSessionImpl |
get(byte[] id) |
(专用程序包) SSLSessionImpl |
get(String hostname,
int port) |
private static int |
getDefaultCacheLimit() |
Enumeration<byte[]> |
getIds()
Returns an enumeration of the active SSL sessions.
|
private static String |
getKey(String hostname,
int port) |
SSLSession |
getSession(byte[] sessionId)
Returns the
SSLSession bound to the specified session id. |
int |
getSessionCacheSize()
Gets the size of the cache used for storing
SSLSession objects. |
int |
getSessionTimeout()
Gets the timeout limit for cached
SSLSession objects |
private boolean |
isTimedout(SSLSession sess) |
(专用程序包) SSLSessionImpl |
pull(byte[] id) |
(专用程序包) void |
put(SSLSessionImpl s) |
(专用程序包) void |
remove(SessionId key) |
void |
setSessionCacheSize(int size)
Sets the size of the cache used for storing
SSLSession objects. |
void |
setSessionTimeout(int seconds)
Sets the timeout limit for cached
SSLSession objects
Note that after reset the timeout, the cached session before
should be timed within the shorter one of the old timeout and the
new timeout. |
private static final int DEFAULT_MAX_CACHE_SIZE
private final Cache<SessionId,SSLSessionImpl> sessionCache
private final Cache<String,SSLSessionImpl> sessionHostPortCache
private int cacheLimit
private int timeout
public SSLSession getSession(byte[] sessionId)
SSLSession bound to the specified session id.getSession 在接口中 SSLSessionContextpublic Enumeration<byte[]> getIds()
getIds 在接口中 SSLSessionContextpublic void setSessionTimeout(int seconds)
throws IllegalArgumentException
SSLSession objects
Note that after reset the timeout, the cached session before
should be timed within the shorter one of the old timeout and the
new timeout.setSessionTimeout 在接口中 SSLSessionContextIllegalArgumentExceptionpublic int getSessionTimeout()
SSLSession objectsgetSessionTimeout 在接口中 SSLSessionContextpublic void setSessionCacheSize(int size)
throws IllegalArgumentException
SSLSession objects.setSessionCacheSize 在接口中 SSLSessionContextIllegalArgumentExceptionpublic int getSessionCacheSize()
SSLSession objects.getSessionCacheSize 在接口中 SSLSessionContextSSLSessionImpl get(byte[] id)
SSLSessionImpl pull(byte[] id)
SSLSessionImpl get(String hostname, int port)
void put(SSLSessionImpl s)
void remove(SessionId key)
private static int getDefaultCacheLimit()
private boolean isTimedout(SSLSession sess)
Copyright © 2023. All rights reserved.