Package org.apache.drill.exec.ssl
Class SSLConfigServer
java.lang.Object
org.apache.drill.exec.ssl.SSLConfig
org.apache.drill.exec.ssl.SSLConfigServer
-
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
ConstructorDescriptionSSLConfigServer
(DrillConfig config, org.apache.hadoop.conf.Configuration hadoopConfig) -
Method Summary
Modifier and TypeMethodDescriptioncreateSSLEngine
(BufferAllocator allocator, String peerHost, int peerPort) boolean
boolean
int
getMode()
io.netty.handler.ssl.SslProvider
boolean
boolean
io.netty.handler.ssl.SslContext
boolean
boolean
boolean
boolean
void
Methods inherited from class org.apache.drill.exec.ssl.SSLConfig
getNettySslContext, initContext, initializeKeyManagerFactory, initializeTrustManagerFactory, toString
-
Constructor Details
-
SSLConfigServer
public SSLConfigServer(DrillConfig config, org.apache.hadoop.conf.Configuration hadoopConfig) throws DrillException - Throws:
DrillException
-
-
Method Details
-
validateKeyStore
- Specified by:
validateKeyStore
in classSSLConfig
- Throws:
DrillException
-
initNettySslContext
- Specified by:
initNettySslContext
in classSSLConfig
- Throws:
DrillException
-
initJDKSSLContext
- Specified by:
initJDKSSLContext
in classSSLConfig
- Throws:
DrillException
-
createSSLEngine
- Overrides:
createSSLEngine
in classSSLConfig
-
isUserSslEnabled
public boolean isUserSslEnabled()- Specified by:
isUserSslEnabled
in classSSLConfig
-
isHttpsEnabled
public boolean isHttpsEnabled()- Specified by:
isHttpsEnabled
in classSSLConfig
-
getKeyStoreType
- Specified by:
getKeyStoreType
in classSSLConfig
-
getKeyStorePath
- Specified by:
getKeyStorePath
in classSSLConfig
-
getKeyStorePassword
- Specified by:
getKeyStorePassword
in classSSLConfig
-
getKeyPassword
- Specified by:
getKeyPassword
in classSSLConfig
-
getTrustStoreType
- Specified by:
getTrustStoreType
in classSSLConfig
-
hasTrustStorePath
public boolean hasTrustStorePath()- Specified by:
hasTrustStorePath
in classSSLConfig
-
getTrustStorePath
- Specified by:
getTrustStorePath
in classSSLConfig
-
hasTrustStorePassword
public boolean hasTrustStorePassword()- Specified by:
hasTrustStorePassword
in classSSLConfig
-
getTrustStorePassword
- Specified by:
getTrustStorePassword
in classSSLConfig
-
getProtocol
- Specified by:
getProtocol
in classSSLConfig
-
getProvider
public io.netty.handler.ssl.SslProvider getProvider()- Specified by:
getProvider
in classSSLConfig
-
getHandshakeTimeout
public int getHandshakeTimeout()- Specified by:
getHandshakeTimeout
in classSSLConfig
-
getMode
-
disableHostVerification
public boolean disableHostVerification()- Specified by:
disableHostVerification
in classSSLConfig
-
disableCertificateVerification
public boolean disableCertificateVerification()- Specified by:
disableCertificateVerification
in classSSLConfig
-
useSystemTrustStore
public boolean useSystemTrustStore()- Specified by:
useSystemTrustStore
in classSSLConfig
-
isSslValid
public boolean isSslValid()- Specified by:
isSslValid
in classSSLConfig
-