Class OpenSslSessionContext
java.lang.Object
io.netty.handler.ssl.OpenSslSessionContext
- All Implemented Interfaces:
SSLSessionContext
- Direct Known Subclasses:
OpenSslServerSessionContext
OpenSSL specific
SSLSessionContext implementation.-
Method Summary
Modifier 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
-
setSessionCacheSize
public void setSessionCacheSize(int size) - Specified by:
setSessionCacheSizein interfaceSSLSessionContext
-
getSessionCacheSize
public int getSessionCacheSize()- Specified by:
getSessionCacheSizein interfaceSSLSessionContext
-
setSessionTimeout
public void setSessionTimeout(int seconds) - Specified by:
setSessionTimeoutin interfaceSSLSessionContext
-
getSessionTimeout
public int getSessionTimeout()- Specified by:
getSessionTimeoutin interfaceSSLSessionContext
-
getSession
- Specified by:
getSessionin interfaceSSLSessionContext
-
getIds
- Specified by:
getIdsin interfaceSSLSessionContext
-
setTicketKeys
Deprecated.Sets the SSL session ticket keys of this context. -
setTicketKeys
Sets the SSL session ticket keys of this context. Depending on the underlying native library you may omit the argument or pass an empty array and so let the native library handle the key generation and rotating for you. If this is supported by the underlying native library should be checked in this case. For example BoringSSL is known to support this. -
setSessionCacheEnabled
public void setSessionCacheEnabled(boolean enabled) Enable or disable caching of SSL sessions. -
isSessionCacheEnabled
public boolean isSessionCacheEnabled()Returntrueif caching of SSL sessions is enabled,falseotherwise. -
stats
Returns the stats of this context.
-