Package org.apache.drill.exec.ssl
Class SSLConfig
java.lang.Object
org.apache.drill.exec.ssl.SSLConfig
- Direct Known Subclasses:
SSLConfigClient
,SSLConfigServer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected SSLContext
protected io.netty.handler.ssl.SslContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSSLEngine
(BufferAllocator allocator, String peerHost, int peerPort) abstract boolean
abstract boolean
abstract int
abstract String
abstract String
abstract String
abstract String
abstract SSLConfig.Mode
getMode()
io.netty.handler.ssl.SslContext
abstract String
abstract io.netty.handler.ssl.SslProvider
abstract String
abstract String
abstract String
abstract boolean
abstract boolean
void
abstract SSLContext
abstract io.netty.handler.ssl.SslContext
abstract boolean
abstract boolean
abstract boolean
toString()
abstract boolean
abstract void
-
Field Details
-
DEFAULT_SSL_PROVIDER
- See Also:
-
DEFAULT_SSL_PROTOCOL
- See Also:
-
DEFAULT_SSL_HANDSHAKE_TIMEOUT_MS
public static final int DEFAULT_SSL_HANDSHAKE_TIMEOUT_MS- See Also:
-
nettySslContext
protected io.netty.handler.ssl.SslContext nettySslContext -
jdkSSlContext
-
HADOOP_SSL_CONF_TPL_KEY
- See Also:
-
HADOOP_SSL_KEYSTORE_LOCATION_TPL_KEY
- See Also:
-
HADOOP_SSL_KEYSTORE_PASSWORD_TPL_KEY
- See Also:
-
HADOOP_SSL_KEYSTORE_TYPE_TPL_KEY
- See Also:
-
HADOOP_SSL_KEYSTORE_KEYPASSWORD_TPL_KEY
- See Also:
-
HADOOP_SSL_TRUSTSTORE_LOCATION_TPL_KEY
- See Also:
-
HADOOP_SSL_TRUSTSTORE_PASSWORD_TPL_KEY
- See Also:
-
HADOOP_SSL_TRUSTSTORE_TYPE_TPL_KEY
- See Also:
-
-
Constructor Details
-
SSLConfig
public SSLConfig()
-
-
Method Details
-
validateKeyStore
- Throws:
DrillException
-
initNettySslContext
- Throws:
DrillException
-
initJDKSSLContext
- Throws:
DrillException
-
isUserSslEnabled
public abstract boolean isUserSslEnabled() -
isHttpsEnabled
public abstract boolean isHttpsEnabled() -
getKeyStoreType
-
getKeyStorePath
-
getKeyStorePassword
-
getKeyPassword
-
getTrustStoreType
-
hasTrustStorePath
public abstract boolean hasTrustStorePath() -
getTrustStorePath
-
hasTrustStorePassword
public abstract boolean hasTrustStorePassword() -
getTrustStorePassword
-
getProtocol
-
getProvider
public abstract io.netty.handler.ssl.SslProvider getProvider() -
getHandshakeTimeout
public abstract int getHandshakeTimeout() -
getMode
-
disableHostVerification
public abstract boolean disableHostVerification() -
disableCertificateVerification
public abstract boolean disableCertificateVerification() -
useSystemTrustStore
public abstract boolean useSystemTrustStore() -
isSslValid
public abstract boolean isSslValid() -
getNettySslContext
public io.netty.handler.ssl.SslContext getNettySslContext() -
initializeTrustManagerFactory
- Throws:
DrillException
-
initializeKeyManagerFactory
- Throws:
DrillException
-
initContext
- Throws:
DrillException
-
createSSLEngine
-
toString
-