Package org.jboss.netty.handler.ssl
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 void
addIfSupported
(String[] supported, List<String> enabled, String... names) Returns the list of enabled cipher suites, in the order of preference.abstract SSLContext
context()
Returns the JDKSSLContext
object held by this context.final SSLEngine
Creates a newSSLEngine
.final SSLEngine
Creates a newSSLEngine
using advisory peer information.final long
Returns the size of the cache used for storing SSL session objects.final SSLSessionContext
Returns the JDKSSLSessionContext
object held by this context.final long
Returns the timeout for the cached SSL session objects, in seconds.private static String[]
toCipherSuiteArray
(Iterable<String> ciphers) private SSLEngine
wrapEngine
(SSLEngine engine) Methods inherited from class org.jboss.netty.handler.ssl.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 JDKSSLContext
object held by this context. -
sessionContext
Returns the JDKSSLSessionContext
object held by this context. -
cipherSuites
Description copied from class:SslContext
Returns the list of enabled cipher suites, in the order of preference.- Specified by:
cipherSuites
in classSslContext
-
sessionCacheSize
public final long sessionCacheSize()Description copied from class:SslContext
Returns the size of the cache used for storing SSL session objects.- Specified by:
sessionCacheSize
in classSslContext
-
sessionTimeout
public final long sessionTimeout()Description copied from class:SslContext
Returns the timeout for the cached SSL session objects, in seconds.- Specified by:
sessionTimeout
in classSslContext
-
newEngine
Description copied from class:SslContext
Creates a newSSLEngine
.- Specified by:
newEngine
in classSslContext
- Returns:
- a new
SSLEngine
-
newEngine
Description copied from class:SslContext
Creates a newSSLEngine
using advisory peer information.- Specified by:
newEngine
in classSslContext
- Parameters:
peerHost
- the non-authoritative name of the hostpeerPort
- the non-authoritative port- Returns:
- a new
SSLEngine
-
wrapEngine
-
toCipherSuiteArray
-