Class OpenSslServerSessionContext
java.lang.Object
io.netty.handler.ssl.OpenSslSessionContext
io.netty.handler.ssl.OpenSslServerSessionContext
- All Implemented Interfaces:
javax.net.ssl.SSLSessionContext
OpenSslSessionContext implementation which offers extra methods which are only useful for the server-side.-
Field Summary
Fields inherited from class OpenSslSessionContext
context -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslServerSessionContext(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionbooleansetSessionIdContext(byte[] sidCtx) Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_contextMethods inherited from class OpenSslSessionContext
destroy, getIds, getSession, getSessionCacheSize, getSessionTimeout, isInCache, isSessionCacheEnabled, removeFromCache, setSessionCacheEnabled, setSessionCacheSize, setSessionFromCache, setSessionTimeout, setTicketKeys, setTicketKeys, stats, useKeyManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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:
trueif success,falseotherwise.
-