Package io.netty.handler.ssl
Class OpenSslSessionContext
- java.lang.Object
-
- io.netty.handler.ssl.OpenSslSessionContext
-
- All Implemented Interfaces:
javax.net.ssl.SSLSessionContext
- Direct Known Subclasses:
OpenSslServerSessionContext
public abstract class OpenSslSessionContext extends java.lang.Object implements javax.net.ssl.SSLSessionContextOpenSSL specificSSLSessionContextimplementation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Enumeration<byte[]>getIds()javax.net.ssl.SSLSessiongetSession(byte[] bytes)intgetSessionCacheSize()intgetSessionTimeout()booleanisSessionCacheEnabled()Returntrueif 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.OpenSslSessionStatsstats()Returns the stats of this context.
-
-
-
Method Detail
-
setSessionCacheSize
public void setSessionCacheSize(int size)
- Specified by:
setSessionCacheSizein interfacejavax.net.ssl.SSLSessionContext
-
getSessionCacheSize
public int getSessionCacheSize()
- Specified by:
getSessionCacheSizein interfacejavax.net.ssl.SSLSessionContext
-
setSessionTimeout
public void setSessionTimeout(int seconds)
- Specified by:
setSessionTimeoutin interfacejavax.net.ssl.SSLSessionContext
-
getSessionTimeout
public int getSessionTimeout()
- Specified by:
getSessionTimeoutin interfacejavax.net.ssl.SSLSessionContext
-
getSession
public javax.net.ssl.SSLSession getSession(byte[] bytes)
- Specified by:
getSessionin interfacejavax.net.ssl.SSLSessionContext
-
getIds
public java.util.Enumeration<byte[]> getIds()
- Specified by:
getIdsin interfacejavax.net.ssl.SSLSessionContext
-
setTicketKeys
@Deprecated public void setTicketKeys(byte[] keys)
Deprecated.Sets the SSL session ticket keys of this context.
-
setTicketKeys
public void setTicketKeys(OpenSslSessionTicketKey... keys)
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
public OpenSslSessionStats stats()
Returns the stats of this context.
-
-