Class SslContextFactoryConfigurator

java.lang.Object
org.apache.drill.exec.server.rest.ssl.SslContextFactoryConfigurator

public class SslContextFactoryConfigurator extends Object
Configures SslContextFactory when https is enabled for Web UI
  • Constructor Details

    • SslContextFactoryConfigurator

      public SslContextFactoryConfigurator(DrillConfig config, String drillbitEndpointAddress)
  • Method Details

    • configureNewSslContextFactory

      public org.eclipse.jetty.util.ssl.SslContextFactory.Server configureNewSslContextFactory() throws Exception
      Tries to apply ssl options configured by user. If provided configuration isn't valid, new self-signed certificate will be generated and used in sslContextFactory.
      Returns:
      new configured sslContextFactory
      Throws:
      Exception - when generation of self-signed certificate failed