Class JdkSslContext
java.lang.Object
org.jboss.netty.handler.ssl.SslContext
org.jboss.netty.handler.ssl.JdkSslContext
- Direct Known Subclasses:
JdkSslClientContext, JdkSslServerContext
An
SslContext which uses JDK's SSL/TLS implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]private static final InternalLogger(package private) static final String(package private) static final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddIfSupported(String[] supported, List<String> enabled, String... names) Returns the list of enabled cipher suites, in the order of preference.abstract SSLContextcontext()Returns the JDKSSLContextobject held by this context.final SSLEngineCreates a newSSLEngine.final SSLEngineCreates a newSSLEngineusing advisory peer information.final longReturns the size of the cache used for storing SSL session objects.final SSLSessionContextReturns the JDKSSLSessionContextobject held by this context.final longReturns the timeout for the cached SSL session objects, in seconds.private static String[]toCipherSuiteArray(Iterable<String> ciphers) private SSLEnginewrapEngine(SSLEngine engine) Methods inherited from class SslContext
bufferPool, defaultClientProvider, defaultServerProvider, isClient, isServer, newBufferPool, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocols
-
Field Details
-
logger
-
PROTOCOL
- See Also:
-
PROTOCOLS
-
DEFAULT_CIPHERS
-
cipherSuites
-
unmodifiableCipherSuites
-
-
Constructor Details
-
JdkSslContext
JdkSslContext(SslBufferPool bufferPool, Iterable<String> ciphers)
-
-
Method Details
-
addIfSupported
-
context
Returns the JDKSSLContextobject held by this context. -
sessionContext
Returns the JDKSSLSessionContextobject held by this context. -
cipherSuites
Description copied from class:SslContextReturns the list of enabled cipher suites, in the order of preference.- Specified by:
cipherSuitesin classSslContext
-
sessionCacheSize
public final long sessionCacheSize()Description copied from class:SslContextReturns the size of the cache used for storing SSL session objects.- Specified by:
sessionCacheSizein classSslContext
-
sessionTimeout
public final long sessionTimeout()Description copied from class:SslContextReturns the timeout for the cached SSL session objects, in seconds.- Specified by:
sessionTimeoutin classSslContext
-
newEngine
Description copied from class:SslContextCreates a newSSLEngine.- Specified by:
newEnginein classSslContext- Returns:
- a new
SSLEngine
-
newEngine
Description copied from class:SslContextCreates a newSSLEngineusing advisory peer information.- Specified by:
newEnginein classSslContext- Parameters:
peerHost- the non-authoritative name of the hostpeerPort- the non-authoritative port- Returns:
- a new
SSLEngine
-
wrapEngine
-
toCipherSuiteArray
-