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
AnSslContextwhich 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 SSLContextcontext()Returns the JDKSSLContextobject held by this context.SSLEnginenewEngine()Creates a newSSLEngine.SSLEnginenewEngine(String peerHost, int peerPort)Creates a newSSLEngineusing advisory peer information.longsessionCacheSize()Returns the size of the cache used for storing SSL session objects.SSLSessionContextsessionContext()Returns the JDKSSLSessionContextobject held by this context.longsessionTimeout()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 JDKSSLContextobject held by this context.
-
sessionContext
public final SSLSessionContext sessionContext()
Returns the JDKSSLSessionContextobject held by this context.
-
cipherSuites
public final List<String> 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
public final SSLEngine newEngine()
Description copied from class:SslContextCreates a newSSLEngine.- Specified by:
newEnginein classSslContext- Returns:
- a new
SSLEngine
-
newEngine
public final SSLEngine newEngine(String peerHost, int peerPort)
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
-
-