Package io.netty.handler.ssl
Class OpenSslClientSessionCache
java.lang.Object
io.netty.handler.ssl.OpenSslSessionCache
io.netty.handler.ssl.OpenSslClientSessionCache
- All Implemented Interfaces:
io.netty.internal.tcnative.SSLSessionCache
OpenSslSessionCache that is used by the client-side.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classHost / Port tuple used to find aOpenSslInternalSessionin the cache.Nested classes/interfaces inherited from class io.netty.handler.ssl.OpenSslSessionCache
OpenSslSessionCache.NativeSslSession -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<OpenSslClientSessionCache.HostPort, Set<OpenSslSessionCache.NativeSslSession>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidclear()Clear the cache and free all cached SSL_SESSION*.private static OpenSslClientSessionCache.HostPortprotected booleanCalled once a newOpenSslInternalSessionwas created.protected voidCalled once anOpenSslInternalSessionwas removed from the cache.(package private) booleansetSession(long ssl, OpenSslInternalSession session, String host, int port) Methods inherited from class io.netty.handler.ssl.OpenSslSessionCache
containsSessionWithId, getIds, getSession, getSession, getSessionCacheSize, getSessionTimeout, removeSessionWithId, sessionCreated, setSessionCacheSize, setSessionTimeout
-
Field Details
-
sessions
private final Map<OpenSslClientSessionCache.HostPort,Set<OpenSslSessionCache.NativeSslSession>> sessions
-
-
Constructor Details
-
OpenSslClientSessionCache
OpenSslClientSessionCache(OpenSslEngineMap engineMap)
-
-
Method Details
-
sessionCreated
Description copied from class:OpenSslSessionCacheCalled once a newOpenSslInternalSessionwas created.- Overrides:
sessionCreatedin classOpenSslSessionCache- Parameters:
session- the new session.- Returns:
trueif the session should be cached,falseotherwise.
-
sessionRemoved
Description copied from class:OpenSslSessionCacheCalled once anOpenSslInternalSessionwas removed from the cache.- Overrides:
sessionRemovedin classOpenSslSessionCache- Parameters:
session- the session to remove.
-
setSession
- Overrides:
setSessionin classOpenSslSessionCache
-
keyFor
-
clear
void clear()Description copied from class:OpenSslSessionCacheClear the cache and free all cached SSL_SESSION*.- Overrides:
clearin classOpenSslSessionCache
-