public final class OpenSslClientContext extends OpenSslContext
SslContext which uses OpenSSL's SSL/TLS implementation.ctx, VERIFY_DEPTH| Constructor and Description |
|---|
OpenSslClientContext()
Creates a new instance.
|
OpenSslClientContext(File certChainFile)
Creates a new instance.
|
OpenSslClientContext(File certChainFile,
TrustManagerFactory trustManagerFactory)
Creates a new instance.
|
OpenSslClientContext(File certChainFile,
TrustManagerFactory trustManagerFactory,
Iterable<String> ciphers,
ApplicationProtocolConfig apn,
long sessionCacheSize,
long sessionTimeout)
Creates a new instance.
|
OpenSslClientContext(TrustManagerFactory trustManagerFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
OpenSslSessionContext |
sessionContext()
Returns the
SSLSessionContext object held by this context. |
applicationProtocolNegotiator, certificates, chooseTrustManager, cipherSuites, context, destroyPools, finalize, isClient, newEngine, newEngine, sessionCacheSize, sessionTimeout, setTicketKeys, statsdefaultClientProvider, defaultServerProvider, generateKeySpec, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContextpublic OpenSslClientContext()
throws SSLException
SSLExceptionpublic OpenSslClientContext(File certChainFile) throws SSLException
certChainFile - an X.509 certificate chain file in PEM format.
null to use the system defaultSSLExceptionpublic OpenSslClientContext(TrustManagerFactory trustManagerFactory) throws SSLException
trustManagerFactory - the TrustManagerFactory that provides the TrustManagers
that verifies the certificates sent from servers.
null to use the default.SSLExceptionpublic OpenSslClientContext(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 OpenSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws SSLException
certChainFile - an X.509 certificate chain file in PEM formattrustManagerFactory - 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.apn - Provides a means to configure parameters related to application protocol negotiation.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 OpenSslSessionContext sessionContext()
SslContextSSLSessionContext object held by this context.sessionContext in class OpenSslContextCopyright © 2008–2015 The Netty Project. All rights reserved.