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
public abstract class JdkSslContext extends SslContext
AnSslContext
which uses JDK's SSL/TLS implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<String>
cipherSuites()
Returns the list of enabled cipher suites, in the order of preference.abstract SSLContext
context()
Returns the JDKSSLContext
object held by this context.SSLEngine
newEngine()
Creates a newSSLEngine
.SSLEngine
newEngine(String peerHost, int peerPort)
Creates a newSSLEngine
using advisory peer information.long
sessionCacheSize()
Returns the size of the cache used for storing SSL session objects.SSLSessionContext
sessionContext()
Returns the JDKSSLSessionContext
object held by this context.long
sessionTimeout()
Returns the timeout for the cached SSL session objects, in seconds.-
Methods inherited from class org.jboss.netty.handler.ssl.SslContext
bufferPool, defaultClientProvider, defaultServerProvider, isClient, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocols
-
-
-
-
Method Detail
-
context
public abstract SSLContext context()
Returns the JDKSSLContext
object held by this context.
-
sessionContext
public final SSLSessionContext sessionContext()
Returns the JDKSSLSessionContext
object held by this context.
-
cipherSuites
public final List<String> 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
public final SSLEngine newEngine()
Description copied from class:SslContext
Creates a newSSLEngine
.- Specified by:
newEngine
in classSslContext
- Returns:
- a new
SSLEngine
-
newEngine
public final SSLEngine newEngine(String peerHost, int peerPort)
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
-
-