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
public class ClientX509Util extends X509Util
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, TLS_1_1, TLS_1_2, TLS_1_3
-
-
Constructor Summary
Constructors Constructor Description ClientX509Util()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.ssl.SslContext
createNettySslContextForClient(ZKConfig config)
io.netty.handler.ssl.SslContext
createNettySslContextForServer(ZKConfig config)
io.netty.handler.ssl.SslContext
createNettySslContextForServer(ZKConfig config, KeyManager keyManager, TrustManager trustManager)
protected String
getConfigPrefix()
String
getSslAuthProviderProperty()
io.netty.handler.ssl.SslProvider
getSslProvider(ZKConfig config)
String
getSslProviderProperty()
protected boolean
shouldVerifyClientHostname()
-
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
-
-
-
-
Method Detail
-
getConfigPrefix
protected String getConfigPrefix()
- Specified by:
getConfigPrefix
in classX509Util
-
shouldVerifyClientHostname
protected boolean shouldVerifyClientHostname()
- Specified by:
shouldVerifyClientHostname
in classX509Util
-
getSslAuthProviderProperty
public String getSslAuthProviderProperty()
-
getSslProviderProperty
public String 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
public io.netty.handler.ssl.SslProvider getSslProvider(ZKConfig config)
-
-