public final class JdkSslClientContext extends JdkSslContext
SslContext which uses JDK's SSL/TLS implementation.| Constructor and Description | 
|---|
JdkSslClientContext()
Creates a new instance. 
 | 
JdkSslClientContext(File certChainFile)
Creates a new instance. 
 | 
JdkSslClientContext(File certChainFile,
                   TrustManagerFactory trustManagerFactory)
Creates a new instance. 
 | 
JdkSslClientContext(SslBufferPool bufPool,
                   File certChainFile,
                   TrustManagerFactory trustManagerFactory,
                   Iterable<String> ciphers,
                   Iterable<String> nextProtocols,
                   long sessionCacheSize,
                   long sessionTimeout)
Creates a new instance. 
 | 
JdkSslClientContext(TrustManagerFactory trustManagerFactory)
Creates a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SSLContext | 
context()
Returns the JDK  
SSLContext object held by this context. | 
boolean | 
isClient()
Returns the  
true if and only if this context is for client-side. | 
List<String> | 
nextProtocols()
Returns the list of application layer protocols for the TLS NPN/ALPN extension, in the order of preference. 
 | 
cipherSuites, newEngine, newEngine, sessionCacheSize, sessionContext, sessionTimeoutbufferPool, defaultClientProvider, defaultServerProvider, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContextpublic JdkSslClientContext()
                    throws SSLException
SSLExceptionpublic JdkSslClientContext(File certChainFile) throws SSLException
certChainFile - an X.509 certificate chain file in PEM format.
                      null to use the system defaultSSLExceptionpublic JdkSslClientContext(TrustManagerFactory trustManagerFactory) throws SSLException
trustManagerFactory - the TrustManagerFactory that provides the TrustManagers
                            that verifies the certificates sent from servers.
                            null to use the default.SSLExceptionpublic JdkSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory) throws SSLException
certChainFile - an X.509 certificate chain file in PEM format.
                      null to use the system defaulttrustManagerFactory - the TrustManagerFactory that provides the TrustManagers
                            that verifies the certificates sent from servers.
                            null to use the default.SSLExceptionpublic JdkSslClientContext(SslBufferPool bufPool, File certChainFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, Iterable<String> nextProtocols, long sessionCacheSize, long sessionTimeout) throws SSLException
bufPool - the buffer pool which will be used by this context.
                null to use the default buffer pool.certChainFile - an X.509 certificate chain file in PEM format.
                      null to use the system defaulttrustManagerFactory - the TrustManagerFactory that provides the TrustManagers
                            that verifies the certificates sent from servers.
                            null to use the default.ciphers - the cipher suites to enable, in the order of preference.
                null to use the default cipher suites.nextProtocols - the application layer protocols to accept, in the order of preference.
                      null to disable TLS NPN/ALPN extension.sessionCacheSize - the size of the cache used for storing SSL session objects.
                         0 to use the default value.sessionTimeout - the timeout for the cached SSL session objects, in seconds.
                       0 to use the default value.SSLExceptionpublic boolean isClient()
SslContexttrue if and only if this context is for client-side.isClient in class SslContextpublic List<String> nextProtocols()
SslContextnextProtocols in class SslContextnull if NPN/ALPN extension has been disabled.public SSLContext context()
JdkSslContextSSLContext object held by this context.context in class JdkSslContextCopyright © 2008-2016 The Netty Project. All Rights Reserved.