Top Description Fields Constructors Methods
io.netty.handler.ssl

public final Class JdkSslClientContext

extends JdkSslContext
Class Inheritance
Annotations
@Deprecated
Imports
java.security.KeyStore, .Provider, .PrivateKey, javax.net.ssl.KeyManager, .KeyManagerFactory, .SSLContext, .SSLException, .SSLSessionContext, .TrustManager, .TrustManagerFactory, java.io.File, java.security.cert.X509Certificate

Deprecated

Use SslContextBuilder to create JdkSslContext instances and only use JdkSslContext in your code.

A client-side SslContext which uses JDK's SSL/TLS implementation.

Field Summary

Inherited from io.netty.handler.ssl.JdkSslContext:
PROTOCOL

Constructor Summary

AccessConstructor and Description
public
JdkSslClientContext()

Deprecated use SslContextBuilder
Creates a new instance.
public
JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
)

Deprecated use SslContextBuilder
Creates a new instance.
public
JdkSslClientContext(TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

Deprecated use SslContextBuilder
Creates a new instance.
public
JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
)

Deprecated use SslContextBuilder
Creates a new instance.
public
JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
Iterable<String>
the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
nextProtocols
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Deprecated use SslContextBuilder
Creates a new instance.
public
JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Deprecated use SslContextBuilder
Creates a new instance.
public
JdkSslClientContext(File
an X.509 certificate chain file in PEM format. null to use the system default
certChainFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.
trustManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
JdkApplicationProtocolNegotiator
Application Protocol Negotiator object.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Deprecated use SslContextBuilder
Creates a new instance.
pack-priv
JdkSslClientContext(Provider provider, File trustCertCollectionFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)

Deprecated as a consequence of JdkApplicationProtocolNegotiator being deprecated.
public
JdkSslClientContext(File
an X.509 certificate collection file in PEM format. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.
keyFile
,
String
the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
ApplicationProtocolConfig
Provides a means to configure parameters related to application protocol negotiation.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Deprecated use SslContextBuilder
Creates a new instance.
public
JdkSslClientContext(File
an X.509 certificate collection file in PEM format. null to use the system default
trustCertCollectionFile
,
TrustManagerFactory
the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile
trustManagerFactory
,
File
an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default
keyCertChainFile
,
File
a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.
keyFile
,
String
the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.
keyPassword
,
KeyManagerFactory
the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile.
keyManagerFactory
,
Iterable<String>
the cipher suites to enable, in the order of preference. null to use the default cipher suites.
ciphers
,
CipherSuiteFilter
a filter to apply over the supplied list of ciphers
cipherFilter
,
JdkApplicationProtocolNegotiator
Application Protocol Negotiator object.
apn
,
long
the size of the cache used for storing SSL session objects. 0 to use the default value.
sessionCacheSize
,
long
the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
sessionTimeout
)

Deprecated use SslContextBuilder
Creates a new instance.
pack-priv
JdkSslClientContext(Provider sslContextProvider, X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize, long sessionTimeout, String keyStoreType)

Method Summary

Modifier and TypeMethod and Description
private static SSLContext
newSSLContext(Provider sslContextProvider, X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, long sessionCacheSize, long sessionTimeout, String keyStore)

Inherited from io.netty.handler.ssl.JdkSslContext:
applicationProtocolNegotiatorbuildKeyManagerFactorybuildKeyManagerFactorybuildKeyManagerFactorybuildKeyManagerFactorycipherSuitescontextisClientnewEnginenewEnginesessionContexttoNegotiator

Constructor Detail

JdkSslClientContextback to summary
public JdkSslClientContext() throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Annotations
@Deprecated
JdkSslClientContextback to summary
public JdkSslClientContext(File certChainFile) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
certChainFile:File

an X.509 certificate chain file in PEM format. null to use the system default

Annotations
@Deprecated
JdkSslClientContextback to summary
public JdkSslClientContext(TrustManagerFactory trustManagerFactory) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
trustManagerFactory:TrustManagerFactory

the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.

Annotations
@Deprecated
JdkSslClientContextback to summary
public JdkSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
certChainFile:File

an X.509 certificate chain file in PEM format. null to use the system default

trustManagerFactory:TrustManagerFactory

the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.

Annotations
@Deprecated
JdkSslClientContextback to summary
public JdkSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, Iterable<String> nextProtocols, long sessionCacheSize, long sessionTimeout) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
certChainFile:File

an X.509 certificate chain file in PEM format. null to use the system default

trustManagerFactory:TrustManagerFactory

the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.

ciphers:Iterable<String>

the cipher suites to enable, in the order of preference. null to use the default cipher suites.

nextProtocols:Iterable<String>

the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.

sessionCacheSize:long

the size of the cache used for storing SSL session objects. 0 to use the default value.

sessionTimeout:long

the timeout for the cached SSL session objects, in seconds. 0 to use the default value.

Annotations
@Deprecated
JdkSslClientContextback to summary
public JdkSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
certChainFile:File

an X.509 certificate chain file in PEM format. null to use the system default

trustManagerFactory:TrustManagerFactory

the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.

ciphers:Iterable<String>

the cipher suites to enable, in the order of preference. null to use the default cipher suites.

cipherFilter:CipherSuiteFilter

a filter to apply over the supplied list of ciphers

apn:ApplicationProtocolConfig

Provides a means to configure parameters related to application protocol negotiation.

sessionCacheSize:long

the size of the cache used for storing SSL session objects. 0 to use the default value.

sessionTimeout:long

the timeout for the cached SSL session objects, in seconds. 0 to use the default value.

Annotations
@Deprecated
JdkSslClientContextback to summary
public JdkSslClientContext(File certChainFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
certChainFile:File

an X.509 certificate chain file in PEM format. null to use the system default

trustManagerFactory:TrustManagerFactory

the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default.

ciphers:Iterable<String>

the cipher suites to enable, in the order of preference. null to use the default cipher suites.

cipherFilter:CipherSuiteFilter

a filter to apply over the supplied list of ciphers

apn:JdkApplicationProtocolNegotiator

Application Protocol Negotiator object.

sessionCacheSize:long

the size of the cache used for storing SSL session objects. 0 to use the default value.

sessionTimeout:long

the timeout for the cached SSL session objects, in seconds. 0 to use the default value.

Annotations
@Deprecated
JdkSslClientContextback to summary
pack-priv JdkSslClientContext(Provider provider, File trustCertCollectionFile, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws SSLException

Deprecated

as a consequence of JdkApplicationProtocolNegotiator being deprecated. See corresponding docs for further information.

JdkSslClientContextback to summary
public JdkSslClientContext(File trustCertCollectionFile, TrustManagerFactory trustManagerFactory, File keyCertChainFile, File keyFile, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
trustCertCollectionFile:File

an X.509 certificate collection file in PEM format. null to use the system default

trustManagerFactory:TrustManagerFactory

the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile

keyCertChainFile:File

an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default

keyFile:File

a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.

keyPassword:String

the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.

keyManagerFactory:KeyManagerFactory

the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile.

ciphers:Iterable<String>

the cipher suites to enable, in the order of preference. null to use the default cipher suites.

cipherFilter:CipherSuiteFilter

a filter to apply over the supplied list of ciphers

apn:ApplicationProtocolConfig

Provides a means to configure parameters related to application protocol negotiation.

sessionCacheSize:long

the size of the cache used for storing SSL session objects. 0 to use the default value.

sessionTimeout:long

the timeout for the cached SSL session objects, in seconds. 0 to use the default value.

Annotations
@Deprecated
JdkSslClientContextback to summary
public JdkSslClientContext(File trustCertCollectionFile, TrustManagerFactory trustManagerFactory, File keyCertChainFile, File keyFile, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, JdkApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws SSLException

Deprecated

use SslContextBuilder

Creates a new instance.

Parameters
trustCertCollectionFile:File

an X.509 certificate collection file in PEM format. null to use the system default

trustManagerFactory:TrustManagerFactory

the TrustManagerFactory that provides the TrustManagers that verifies the certificates sent from servers. null to use the default or the results of parsing trustCertCollectionFile

keyCertChainFile:File

an X.509 certificate chain file in PEM format. This provides the public key for mutual authentication. null to use the system default

keyFile:File

a PKCS#8 private key file in PEM format. This provides the private key for mutual authentication. null for no mutual authentication.

keyPassword:String

the password of the keyFile. null if it's not password-protected. Ignored if keyFile is null.

keyManagerFactory:KeyManagerFactory

the KeyManagerFactory that provides the KeyManagers that is used to encrypt data being sent to servers. null to use the default or the results of parsing keyCertChainFile and keyFile.

ciphers:Iterable<String>

the cipher suites to enable, in the order of preference. null to use the default cipher suites.

cipherFilter:CipherSuiteFilter

a filter to apply over the supplied list of ciphers

apn:JdkApplicationProtocolNegotiator

Application Protocol Negotiator object.

sessionCacheSize:long

the size of the cache used for storing SSL session objects. 0 to use the default value.

sessionTimeout:long

the timeout for the cached SSL session objects, in seconds. 0 to use the default value.

Annotations
@Deprecated
JdkSslClientContextback to summary
pack-priv JdkSslClientContext(Provider sslContextProvider, X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize, long sessionTimeout, String keyStoreType) throws SSLException

Method Detail

newSSLContextback to summary
private static SSLContext newSSLContext(Provider sslContextProvider, X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, long sessionCacheSize, long sessionTimeout, String keyStore) throws SSLException