public class SSLConfigServer extends SSLConfig
SSLConfig.Mode
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 and Description |
---|
SSLConfigServer(DrillConfig config,
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, toString
public SSLConfigServer(DrillConfig config, org.apache.hadoop.conf.Configuration hadoopConfig) throws DrillException
DrillException
public void validateKeyStore() throws DrillException
validateKeyStore
in class SSLConfig
DrillException
public io.netty.handler.ssl.SslContext initNettySslContext() throws DrillException
initNettySslContext
in class SSLConfig
DrillException
public SSLContext initJDKSSLContext() throws DrillException
initJDKSSLContext
in class SSLConfig
DrillException
public SSLEngine createSSLEngine(BufferAllocator allocator, String peerHost, int peerPort)
createSSLEngine
in class SSLConfig
public boolean isUserSslEnabled()
isUserSslEnabled
in class SSLConfig
public boolean isHttpsEnabled()
isHttpsEnabled
in class SSLConfig
public String getKeyStoreType()
getKeyStoreType
in class SSLConfig
public String getKeyStorePath()
getKeyStorePath
in class SSLConfig
public String getKeyStorePassword()
getKeyStorePassword
in class SSLConfig
public String getKeyPassword()
getKeyPassword
in class SSLConfig
public String getTrustStoreType()
getTrustStoreType
in class SSLConfig
public boolean hasTrustStorePath()
hasTrustStorePath
in class SSLConfig
public String getTrustStorePath()
getTrustStorePath
in class SSLConfig
public boolean hasTrustStorePassword()
hasTrustStorePassword
in class SSLConfig
public String getTrustStorePassword()
getTrustStorePassword
in class SSLConfig
public String getProtocol()
getProtocol
in class SSLConfig
public io.netty.handler.ssl.SslProvider getProvider()
getProvider
in class SSLConfig
public int getHandshakeTimeout()
getHandshakeTimeout
in class SSLConfig
public SSLConfig.Mode getMode()
public boolean disableHostVerification()
disableHostVerification
in class SSLConfig
public boolean disableCertificateVerification()
disableCertificateVerification
in class SSLConfig
public boolean useSystemTrustStore()
useSystemTrustStore
in class SSLConfig
public boolean isSslValid()
isSslValid
in class SSLConfig
Copyright © 1970 The Apache Software Foundation. All rights reserved.