Package io.netty.handler.ssl
Class OpenSslServerSessionContext
java.lang.Object
io.netty.handler.ssl.OpenSslSessionContext
io.netty.handler.ssl.OpenSslServerSessionContext
- All Implemented Interfaces:
SSLSessionContext
OpenSslSessionContext
implementation which offers extra methods which are only useful for the server-side.-
Field Summary
Fields inherited from class io.netty.handler.ssl.OpenSslSessionContext
context
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSslServerSessionContext
(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionboolean
setSessionIdContext
(byte[] sidCtx) Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_contextMethods inherited from class io.netty.handler.ssl.OpenSslSessionContext
destroy, getIds, getSession, getSessionCacheSize, getSessionTimeout, isInCache, isSessionCacheEnabled, removeFromCache, setSessionCacheEnabled, setSessionCacheSize, setSessionFromCache, setSessionTimeout, setTicketKeys, setTicketKeys, stats, useKeyManager
-
Constructor Details
-
OpenSslServerSessionContext
OpenSslServerSessionContext(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider)
-
-
Method Details
-
setSessionIdContext
public boolean setSessionIdContext(byte[] sidCtx) Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_context- Parameters:
sidCtx
- 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- Returns:
true
if success,false
otherwise.
-