Package org.apache.drill.exec.ssl
Class SSLConfigClient
java.lang.Object
org.apache.drill.exec.ssl.SSLConfig
org.apache.drill.exec.ssl.SSLConfigClient
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.ssl.SSLConfig
SSLConfig.Mode -
Field Summary
Fields inherited from class org.apache.drill.exec.ssl.SSLConfig
DEFAULT_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 Summary
ConstructorsConstructorDescriptionSSLConfigClient(Properties properties, org.apache.hadoop.conf.Configuration hadoopConfig) -
Method Summary
Modifier and TypeMethodDescriptioncreateSSLEngine(BufferAllocator allocator, String peerHost, int peerPort) booleanbooleanintgetMode()io.netty.handler.ssl.SslProviderbooleanbooleanio.netty.handler.ssl.SslContextbooleanbooleanbooleanbooleanvoidMethods inherited from class org.apache.drill.exec.ssl.SSLConfig
getNettySslContext, initContext, initializeKeyManagerFactory, initializeTrustManagerFactory, toString
-
Constructor Details
-
SSLConfigClient
public SSLConfigClient(Properties properties, org.apache.hadoop.conf.Configuration hadoopConfig) throws DrillException - Throws:
DrillException
-
-
Method Details
-
validateKeyStore
- Specified by:
validateKeyStorein classSSLConfig- Throws:
DrillException
-
initNettySslContext
- Specified by:
initNettySslContextin classSSLConfig- Throws:
DrillException
-
initJDKSSLContext
- Specified by:
initJDKSSLContextin classSSLConfig- Throws:
DrillException
-
createSSLEngine
- Overrides:
createSSLEnginein classSSLConfig
-
isUserSslEnabled
public boolean isUserSslEnabled()- Specified by:
isUserSslEnabledin classSSLConfig
-
isHttpsEnabled
public boolean isHttpsEnabled()- Specified by:
isHttpsEnabledin classSSLConfig
-
getKeyStoreType
- Specified by:
getKeyStoreTypein classSSLConfig
-
getKeyStorePath
- Specified by:
getKeyStorePathin classSSLConfig
-
getKeyStorePassword
- Specified by:
getKeyStorePasswordin classSSLConfig
-
getKeyPassword
- Specified by:
getKeyPasswordin classSSLConfig
-
getTrustStoreType
- Specified by:
getTrustStoreTypein classSSLConfig
-
hasTrustStorePath
public boolean hasTrustStorePath()- Specified by:
hasTrustStorePathin classSSLConfig
-
getTrustStorePath
- Specified by:
getTrustStorePathin classSSLConfig
-
hasTrustStorePassword
public boolean hasTrustStorePassword()- Specified by:
hasTrustStorePasswordin classSSLConfig
-
getTrustStorePassword
- Specified by:
getTrustStorePasswordin classSSLConfig
-
getProtocol
- Specified by:
getProtocolin classSSLConfig
-
getProvider
public io.netty.handler.ssl.SslProvider getProvider()- Specified by:
getProviderin classSSLConfig
-
getHandshakeTimeout
public int getHandshakeTimeout()- Specified by:
getHandshakeTimeoutin classSSLConfig
-
getMode
-
disableHostVerification
public boolean disableHostVerification()- Specified by:
disableHostVerificationin classSSLConfig
-
disableCertificateVerification
public boolean disableCertificateVerification()- Specified by:
disableCertificateVerificationin classSSLConfig
-
useSystemTrustStore
public boolean useSystemTrustStore()- Specified by:
useSystemTrustStorein classSSLConfig
-
isSslValid
public boolean isSslValid()- Specified by:
isSslValidin classSSLConfig
-