Package org.apache.zookeeper.common
Class ClientNettyX509Util
java.lang.Object
org.apache.zookeeper.common.X509Util
org.apache.zookeeper.common.ClientX509Util
org.apache.zookeeper.common.ClientNettyX509Util
- All Implemented Interfaces:
Closeable,AutoCloseable
Extends
ClientX509Util with Netty-specific SSL context creation
methods. This class is only loaded when Netty is present on the classpath.
Code that only needs SSL property names should use ClientX509Util
directly so that Netty remains an optional dependency.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.zookeeper.common.X509Util
X509Util.ClientAuth -
Field Summary
Fields inherited from class org.apache.zookeeper.common.X509Util
CLIENT_CERT_RELOAD_KEY, DEFAULT_HANDSHAKE_DETECTION_TIMEOUT_MILLIS, FIPS_MODE_PROPERTY, TLS_1_1, TLS_1_2, TLS_1_3 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.ssl.SslContextio.netty.handler.ssl.SslContextio.netty.handler.ssl.SslContextcreateNettySslContextForServer(ZKConfig config, KeyManager keyManager, TrustManager trustManager) io.netty.handler.ssl.SslProvidergetSslProvider(ZKConfig config) Methods inherited from class org.apache.zookeeper.common.ClientX509Util
getConfigPrefix, getSslAuthProviderProperty, getSslProviderProperty, shouldVerifyClientHostnameMethods inherited from class org.apache.zookeeper.common.X509Util
allowReverseDnsLookup, buildClientKeyManager, buildClientKeyManager, buildKeyManager, buildServerTrustManager, buildServerTrustManager, buildTrustManager, close, createKeyManager, createSSLContext, createSSLContextAndOptions, createSSLContextAndOptionsFromConfig, createSSLServerSocket, createSSLServerSocket, createSSLSocket, createSSLSocket, createTrustManager, createTrustManagerInternal, defaultTlsProtocol, enableCertFileReloading, getCipherSuitesProperty, getDefaultSSLContext, getDefaultSSLContextAndOptions, getFipsMode, getFipsModeProperty, getPasswordFromConfigPropertyOrFile, getSslAllowReverseDnsLookupProperty, getSslCipherSuitesProperty, getSslClientAuthProperty, getSslClientHostnameVerificationEnabledProperty, getSslClientKeystoreLocationProperty, getSslClientKeystorePasswdPathProperty, getSslClientKeystorePasswdProperty, getSslClientKeystoreTypeProperty, getSslContextSupplierClassProperty, getSslCrlEnabledProperty, getSslEnabledProtocolsProperty, getSslHandshakeDetectionTimeoutMillisProperty, getSslHandshakeTimeoutMillis, getSslHostnameVerificationEnabledProperty, getSslKeystoreLocationProperty, getSslKeystorePasswdPathProperty, getSslKeystorePasswdProperty, getSslKeystoreTypeProperty, getSslOcspEnabledProperty, getSslProtocolProperty, getSslServerTruststoreLocationProperty, getSslServerTruststorePasswdPathProperty, getSslServerTruststorePasswdProperty, getSslServerTruststoreTypeProperty, getSslTruststoreLocationProperty, getSslTruststorePasswdPathProperty, getSslTruststorePasswdProperty, getSslTruststoreTypeProperty, isClientHostnameVerificationEnabled, isServerHostnameVerificationEnabled, loadKeyStore, loadSuppliedSSLContext, loadTrustStore
-
Constructor Details
-
ClientNettyX509Util
public ClientNettyX509Util()
-
-
Method Details
-
createNettySslContextForClient
public io.netty.handler.ssl.SslContext createNettySslContextForClient(ZKConfig config) throws X509Exception.SSLContextException, X509Exception.KeyManagerException, X509Exception.TrustManagerException, SSLException -
createNettySslContextForServer
public io.netty.handler.ssl.SslContext createNettySslContextForServer(ZKConfig config) throws X509Exception.SSLContextException, X509Exception.KeyManagerException, X509Exception.TrustManagerException, SSLException -
createNettySslContextForServer
public io.netty.handler.ssl.SslContext createNettySslContextForServer(ZKConfig config, KeyManager keyManager, TrustManager trustManager) throws SSLException - Throws:
SSLException
-
getSslProvider
-