Class SSLConfig

java.lang.Object
org.apache.drill.exec.ssl.SSLConfig
Direct Known Subclasses:
SSLConfigClient, SSLConfigServer

public abstract class SSLConfig extends Object
  • Field Details

    • DEFAULT_SSL_PROVIDER

      public static final String DEFAULT_SSL_PROVIDER
      See Also:
    • DEFAULT_SSL_PROTOCOL

      public static final String 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

      protected SSLContext jdkSSlContext
    • HADOOP_SSL_CONF_TPL_KEY

      public static final String HADOOP_SSL_CONF_TPL_KEY
      See Also:
    • HADOOP_SSL_KEYSTORE_LOCATION_TPL_KEY

      public static final String HADOOP_SSL_KEYSTORE_LOCATION_TPL_KEY
      See Also:
    • HADOOP_SSL_KEYSTORE_PASSWORD_TPL_KEY

      public static final String HADOOP_SSL_KEYSTORE_PASSWORD_TPL_KEY
      See Also:
    • HADOOP_SSL_KEYSTORE_TYPE_TPL_KEY

      public static final String HADOOP_SSL_KEYSTORE_TYPE_TPL_KEY
      See Also:
    • HADOOP_SSL_KEYSTORE_KEYPASSWORD_TPL_KEY

      public static final String HADOOP_SSL_KEYSTORE_KEYPASSWORD_TPL_KEY
      See Also:
    • HADOOP_SSL_TRUSTSTORE_LOCATION_TPL_KEY

      public static final String HADOOP_SSL_TRUSTSTORE_LOCATION_TPL_KEY
      See Also:
    • HADOOP_SSL_TRUSTSTORE_PASSWORD_TPL_KEY

      public static final String HADOOP_SSL_TRUSTSTORE_PASSWORD_TPL_KEY
      See Also:
    • HADOOP_SSL_TRUSTSTORE_TYPE_TPL_KEY

      public static final String HADOOP_SSL_TRUSTSTORE_TYPE_TPL_KEY
      See Also:
  • Constructor Details

    • SSLConfig

      public SSLConfig()
  • Method Details

    • validateKeyStore

      public abstract void validateKeyStore() throws DrillException
      Throws:
      DrillException
    • initNettySslContext

      public abstract io.netty.handler.ssl.SslContext initNettySslContext() throws DrillException
      Throws:
      DrillException
    • initJDKSSLContext

      public abstract SSLContext initJDKSSLContext() throws DrillException
      Throws:
      DrillException
    • isUserSslEnabled

      public abstract boolean isUserSslEnabled()
    • isHttpsEnabled

      public abstract boolean isHttpsEnabled()
    • getKeyStoreType

      public abstract String getKeyStoreType()
    • getKeyStorePath

      public abstract String getKeyStorePath()
    • getKeyStorePassword

      public abstract String getKeyStorePassword()
    • getKeyPassword

      public abstract String getKeyPassword()
    • getTrustStoreType

      public abstract String getTrustStoreType()
    • hasTrustStorePath

      public abstract boolean hasTrustStorePath()
    • getTrustStorePath

      public abstract String getTrustStorePath()
    • hasTrustStorePassword

      public abstract boolean hasTrustStorePassword()
    • getTrustStorePassword

      public abstract String getTrustStorePassword()
    • getProtocol

      public abstract String getProtocol()
    • getProvider

      public abstract io.netty.handler.ssl.SslProvider getProvider()
    • getHandshakeTimeout

      public abstract int getHandshakeTimeout()
    • getMode

      public abstract SSLConfig.Mode 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

      public TrustManagerFactory initializeTrustManagerFactory() throws DrillException
      Throws:
      DrillException
    • initializeKeyManagerFactory

      public KeyManagerFactory initializeKeyManagerFactory() throws DrillException
      Throws:
      DrillException
    • initContext

      public void initContext() throws DrillException
      Throws:
      DrillException
    • createSSLEngine

      public SSLEngine createSSLEngine(BufferAllocator allocator, String peerHost, int peerPort)
    • toString

      public String toString()
      Overrides:
      toString in class Object