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.-
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
getIds, getSession, getSessionCacheSize, getSessionTimeout, isSessionCacheEnabled, setSessionCacheEnabled, setSessionCacheSize, setSessionTimeout, setTicketKeys, setTicketKeys, statsModifier and TypeMethodDescriptionEnumeration<byte[]> getIds()getSession(byte[] bytes) intintbooleanReturntrueif caching of SSL sessions is enabled,falseotherwise.voidsetSessionCacheEnabled(boolean enabled) Enable or disable caching of SSL sessions.voidsetSessionCacheSize(int size) voidsetSessionTimeout(int seconds) voidsetTicketKeys(byte[] keys) Deprecated.voidsetTicketKeys(OpenSslSessionTicketKey... keys) Sets the SSL session ticket keys of this context.stats()Returns the stats of this context.
-
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.
-
OpenSslSessionContext.setTicketKeys(OpenSslSessionTicketKey...).