Package io.netty.handler.ssl
Class JdkSslClientContext
- java.lang.Object
-
- io.netty.handler.ssl.SslContext
-
- io.netty.handler.ssl.JdkSslContext
-
- io.netty.handler.ssl.JdkSslClientContext
-
@Deprecated public final class JdkSslClientContext extends JdkSslContext
Deprecated.A client-sideSslContext
which uses JDK's SSL/TLS implementation.
-
-
Field Summary
-
Fields inherited from class io.netty.handler.ssl.JdkSslContext
PROTOCOL
-
Fields inherited from class io.netty.handler.ssl.SslContext
ALIAS, resumptionController, X509_CERT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description JdkSslClientContext()
Deprecated.JdkSslClientContext(java.io.File certChainFile)
Deprecated.JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.JdkSslClientContext(java.io.File trustCertCollectionFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.io.File keyCertChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
Deprecated.JdkSslClientContext(java.io.File trustCertCollectionFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.io.File keyCertChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)
Deprecated.JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
Deprecated.JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)
Deprecated.JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, java.lang.Iterable<java.lang.String> nextProtocols, long sessionCacheSize, long sessionTimeout)
Deprecated.JdkSslClientContext(java.security.Provider provider, java.io.File trustCertCollectionFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)
Deprecated.JdkSslClientContext(java.security.Provider sslContextProvider, java.security.cert.X509Certificate[] trustCertCollection, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.security.cert.X509Certificate[] keyCertChain, java.security.PrivateKey key, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, java.lang.String[] protocols, long sessionCacheSize, long sessionTimeout, java.security.SecureRandom secureRandom, java.lang.String keyStoreType, java.lang.String endpointIdentificationAlgorithm, ResumptionController resumptionController)
Deprecated.JdkSslClientContext(javax.net.ssl.TrustManagerFactory trustManagerFactory)
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static javax.net.ssl.SSLContext
newSSLContext(java.security.Provider sslContextProvider, java.security.cert.X509Certificate[] trustCertCollection, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.security.cert.X509Certificate[] keyCertChain, java.security.PrivateKey key, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, long sessionCacheSize, long sessionTimeout, java.security.SecureRandom secureRandom, java.lang.String keyStore, ResumptionController resumptionController)
Deprecated.private static javax.net.ssl.TrustManager[]
wrapIfNeeded(javax.net.ssl.TrustManager[] tms, ResumptionController resumptionController)
Deprecated.-
Methods inherited from class io.netty.handler.ssl.JdkSslContext
applicationProtocolNegotiator, buildKeyManagerFactory, buildKeyManagerFactory, buildKeyManagerFactory, buildKeyManagerFactory, cipherSuites, context, isClient, newEngine, newEngine, sessionContext, toNegotiator
-
Methods inherited from class io.netty.handler.ssl.SslContext
attributes, buildKeyManagerFactory, buildKeyManagerFactory, buildKeyStore, buildTrustManagerFactory, buildTrustManagerFactory, buildTrustManagerFactory, defaultClientProvider, defaultServerProvider, generateKeySpec, isServer, keyStorePassword, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContextInternal, newHandler, newHandler, newHandler, newHandler, newHandler, newHandler, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContextInternal, nextProtocols, sessionCacheSize, sessionTimeout, toApplicationProtocolConfig, toPrivateKey, toPrivateKey, toPrivateKey, toPrivateKeyInternal, toX509Certificates, toX509Certificates, toX509CertificatesInternal
-
-
-
-
Constructor Detail
-
JdkSslClientContext
@Deprecated public JdkSslClientContext() throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(java.io.File certChainFile) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
certChainFile
- an X.509 certificate chain file in PEM format.null
to use the system default- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(javax.net.ssl.TrustManagerFactory trustManagerFactory) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
trustManagerFactory
- theTrustManagerFactory
that provides theTrustManager
s that verifies the certificates sent from servers.null
to use the default.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
certChainFile
- an X.509 certificate chain file in PEM format.null
to use the system defaulttrustManagerFactory
- theTrustManagerFactory
that provides theTrustManager
s that verifies the certificates sent from servers.null
to use the default.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, java.lang.Iterable<java.lang.String> nextProtocols, long sessionCacheSize, long sessionTimeout) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
certChainFile
- an X.509 certificate chain file in PEM format.null
to use the system defaulttrustManagerFactory
- theTrustManagerFactory
that provides theTrustManager
s 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.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
certChainFile
- an X.509 certificate chain file in PEM format.null
to use the system defaulttrustManagerFactory
- theTrustManagerFactory
that provides theTrustManager
s 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.cipherFilter
- a filter to apply over the supplied list of ciphersapn
- 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.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
certChainFile
- an X.509 certificate chain file in PEM format.null
to use the system defaulttrustManagerFactory
- theTrustManagerFactory
that provides theTrustManager
s 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.cipherFilter
- a filter to apply over the supplied list of ciphersapn
- Application Protocol Negotiator object.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.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
JdkSslClientContext(java.security.Provider provider, java.io.File trustCertCollectionFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws javax.net.ssl.SSLException
Deprecated.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(java.io.File trustCertCollectionFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.io.File keyCertChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
trustCertCollectionFile
- an X.509 certificate collection file in PEM format.null
to use the system defaulttrustManagerFactory
- theTrustManagerFactory
that provides theTrustManager
s that verifies the certificates sent from servers.null
to use the default or the results of parsingtrustCertCollectionFile
keyCertChainFile
- an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication.null
to use the system defaultkeyFile
- a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication.null
for no mutual authentication.keyPassword
- the password of thekeyFile
.null
if it's not password-protected. Ignored ifkeyFile
isnull
.keyManagerFactory
- theKeyManagerFactory
that provides theKeyManager
s that is used to encrypt data being sent to servers.null
to use the default or the results of parsingkeyCertChainFile
andkeyFile
.ciphers
- the cipher suites to enable, in the order of preference.null
to use the default cipher suites.cipherFilter
- a filter to apply over the supplied list of ciphersapn
- 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.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
@Deprecated public JdkSslClientContext(java.io.File trustCertCollectionFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.io.File keyCertChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws javax.net.ssl.SSLException
Deprecated.Creates a new instance.- Parameters:
trustCertCollectionFile
- an X.509 certificate collection file in PEM format.null
to use the system defaulttrustManagerFactory
- theTrustManagerFactory
that provides theTrustManager
s that verifies the certificates sent from servers.null
to use the default or the results of parsingtrustCertCollectionFile
keyCertChainFile
- an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication.null
to use the system defaultkeyFile
- a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication.null
for no mutual authentication.keyPassword
- the password of thekeyFile
.null
if it's not password-protected. Ignored ifkeyFile
isnull
.keyManagerFactory
- theKeyManagerFactory
that provides theKeyManager
s that is used to encrypt data being sent to servers.null
to use the default or the results of parsingkeyCertChainFile
andkeyFile
.ciphers
- the cipher suites to enable, in the order of preference.null
to use the default cipher suites.cipherFilter
- a filter to apply over the supplied list of ciphersapn
- Application Protocol Negotiator object.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.- Throws:
javax.net.ssl.SSLException
-
JdkSslClientContext
JdkSslClientContext(java.security.Provider sslContextProvider, java.security.cert.X509Certificate[] trustCertCollection, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.security.cert.X509Certificate[] keyCertChain, java.security.PrivateKey key, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, java.lang.String[] protocols, long sessionCacheSize, long sessionTimeout, java.security.SecureRandom secureRandom, java.lang.String keyStoreType, java.lang.String endpointIdentificationAlgorithm, ResumptionController resumptionController) throws javax.net.ssl.SSLException
Deprecated.- Throws:
javax.net.ssl.SSLException
-
-
Method Detail
-
newSSLContext
private static javax.net.ssl.SSLContext newSSLContext(java.security.Provider sslContextProvider, java.security.cert.X509Certificate[] trustCertCollection, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.security.cert.X509Certificate[] keyCertChain, java.security.PrivateKey key, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, long sessionCacheSize, long sessionTimeout, java.security.SecureRandom secureRandom, java.lang.String keyStore, ResumptionController resumptionController) throws javax.net.ssl.SSLException
Deprecated.- Throws:
javax.net.ssl.SSLException
-
wrapIfNeeded
private static javax.net.ssl.TrustManager[] wrapIfNeeded(javax.net.ssl.TrustManager[] tms, ResumptionController resumptionController)
Deprecated.
-
-