Package org.apache.zookeeper.common
Class ClientX509Util
java.lang.Object
org.apache.zookeeper.common.X509Util
org.apache.zookeeper.common.ClientX509Util
- All Implemented Interfaces:
Closeable
,AutoCloseable
X509 utilities specific for client-server communication framework.
-
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
DEFAULT_HANDSHAKE_DETECTION_TIMEOUT_MILLIS, DEFAULT_PROTOCOL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.ssl.SslContext
io.netty.handler.ssl.SslContext
io.netty.handler.ssl.SslContext
createNettySslContextForServer
(ZKConfig config, KeyManager keyManager, TrustManager trustManager) protected String
io.netty.handler.ssl.SslProvider
getSslProvider
(ZKConfig config) protected boolean
Methods inherited from class org.apache.zookeeper.common.X509Util
close, createKeyManager, createSSLContext, createSSLContextAndOptions, createSSLContextAndOptionsFromConfig, createSSLServerSocket, createSSLServerSocket, createSSLSocket, createSSLSocket, createTrustManager, enableCertFileReloading, getCipherSuitesProperty, getDefaultSSLContext, getDefaultSSLContextAndOptions, getFipsMode, getFipsModeProperty, getPasswordFromConfigPropertyOrFile, getSslCipherSuitesProperty, getSslClientAuthProperty, getSslContextSupplierClassProperty, getSslCrlEnabledProperty, getSslEnabledProtocolsProperty, getSslHandshakeDetectionTimeoutMillisProperty, getSslHandshakeTimeoutMillis, getSslHostnameVerificationEnabledProperty, getSslKeystoreLocationProperty, getSslKeystorePasswdPathProperty, getSslKeystorePasswdProperty, getSslKeystoreTypeProperty, getSslOcspEnabledProperty, getSslProtocolProperty, getSslTruststoreLocationProperty, getSslTruststorePasswdPathProperty, getSslTruststorePasswdProperty, getSslTruststoreTypeProperty, isClientHostnameVerificationEnabled, isServerHostnameVerificationEnabled, loadKeyStore, loadTrustStore
-
Constructor Details
-
ClientX509Util
public ClientX509Util()
-
-
Method Details
-
getConfigPrefix
- Specified by:
getConfigPrefix
in classX509Util
-
shouldVerifyClientHostname
protected boolean shouldVerifyClientHostname()- Specified by:
shouldVerifyClientHostname
in classX509Util
-
getSslAuthProviderProperty
-
getSslProviderProperty
-
createNettySslContextForClient
public io.netty.handler.ssl.SslContext createNettySslContextForClient(ZKConfig config) throws 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
-