public class SSLConfigClient extends SSLConfig
SSLConfig.ModeDEFAULT_SSL_HANDSHAKE_TIMEOUT_MS, DEFAULT_SSL_PROTOCOL, DEFAULT_SSL_PROVIDER, HADOOP_SSL_CONF_TPL_KEY, HADOOP_SSL_KEYSTORE_KEYPASSWORD_TPL_KEY, HADOOP_SSL_KEYSTORE_LOCATION_TPL_KEY, HADOOP_SSL_KEYSTORE_PASSWORD_TPL_KEY, HADOOP_SSL_KEYSTORE_TYPE_TPL_KEY, HADOOP_SSL_TRUSTSTORE_LOCATION_TPL_KEY, HADOOP_SSL_TRUSTSTORE_PASSWORD_TPL_KEY, HADOOP_SSL_TRUSTSTORE_TYPE_TPL_KEY, jdkSSlContext, nettySslContext| Constructor and Description |
|---|
SSLConfigClient(Properties properties,
org.apache.hadoop.conf.Configuration hadoopConfig) |
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
createSSLEngine(BufferAllocator allocator,
String peerHost,
int peerPort) |
boolean |
disableCertificateVerification() |
boolean |
disableHostVerification() |
int |
getHandshakeTimeout() |
String |
getKeyPassword() |
String |
getKeyStorePassword() |
String |
getKeyStorePath() |
String |
getKeyStoreType() |
SSLConfig.Mode |
getMode() |
String |
getProtocol() |
io.netty.handler.ssl.SslProvider |
getProvider() |
String |
getTrustStorePassword() |
String |
getTrustStorePath() |
String |
getTrustStoreType() |
boolean |
hasTrustStorePassword() |
boolean |
hasTrustStorePath() |
SSLContext |
initJDKSSLContext() |
io.netty.handler.ssl.SslContext |
initNettySslContext() |
boolean |
isHttpsEnabled() |
boolean |
isSslValid() |
boolean |
isUserSslEnabled() |
boolean |
useSystemTrustStore() |
void |
validateKeyStore() |
getNettySslContext, initContext, initializeKeyManagerFactory, initializeTrustManagerFactory, toStringpublic SSLConfigClient(Properties properties, org.apache.hadoop.conf.Configuration hadoopConfig) throws DrillException
DrillExceptionpublic void validateKeyStore()
throws DrillException
validateKeyStore in class SSLConfigDrillExceptionpublic io.netty.handler.ssl.SslContext initNettySslContext()
throws DrillException
initNettySslContext in class SSLConfigDrillExceptionpublic SSLContext initJDKSSLContext() throws DrillException
initJDKSSLContext in class SSLConfigDrillExceptionpublic SSLEngine createSSLEngine(BufferAllocator allocator, String peerHost, int peerPort)
createSSLEngine in class SSLConfigpublic boolean isUserSslEnabled()
isUserSslEnabled in class SSLConfigpublic boolean isHttpsEnabled()
isHttpsEnabled in class SSLConfigpublic String getKeyStoreType()
getKeyStoreType in class SSLConfigpublic String getKeyStorePath()
getKeyStorePath in class SSLConfigpublic String getKeyStorePassword()
getKeyStorePassword in class SSLConfigpublic String getKeyPassword()
getKeyPassword in class SSLConfigpublic String getTrustStoreType()
getTrustStoreType in class SSLConfigpublic boolean hasTrustStorePath()
hasTrustStorePath in class SSLConfigpublic String getTrustStorePath()
getTrustStorePath in class SSLConfigpublic boolean hasTrustStorePassword()
hasTrustStorePassword in class SSLConfigpublic String getTrustStorePassword()
getTrustStorePassword in class SSLConfigpublic String getProtocol()
getProtocol in class SSLConfigpublic io.netty.handler.ssl.SslProvider getProvider()
getProvider in class SSLConfigpublic int getHandshakeTimeout()
getHandshakeTimeout in class SSLConfigpublic SSLConfig.Mode getMode()
public boolean disableHostVerification()
disableHostVerification in class SSLConfigpublic boolean disableCertificateVerification()
disableCertificateVerification in class SSLConfigpublic boolean useSystemTrustStore()
useSystemTrustStore in class SSLConfigpublic boolean isSslValid()
isSslValid in class SSLConfigCopyright © 2022 The Apache Software Foundation. All rights reserved.