Class SSLContextClientBuilder

java.lang.Object
io.deephaven.dhservice.client.grpc.SSLContextClientBuilder

public final class SSLContextClientBuilder extends Object
Translates a TLSConfig into a SslContext starting with the builder GrpcSslContexts.forClient().
  • Constructor Details

    • SSLContextClientBuilder

      public SSLContextClientBuilder()
  • Method Details

    • build

      @VisibleForTesting public static io.netty.handler.ssl.SslContext build(TLSConfig tlsConfig) throws SSLException
      Build an SslContext from a single TLSConfig. This is needed (for now) as a check in TLSConfig.
      Parameters:
      tlsConfig - the tlsConfig defining the SslContext
      Returns:
      a new SslContext
      Throws:
      SSLException
    • build

      public static io.netty.handler.ssl.SslContext build(ClientConnectionConfig clientConfig) throws SSLException
      Build an SslContext from the collection of TLSConfigs. All TSLConfigs must specify trust roots, or none should (to use the system default). Mutual Authentication is not yet supported with multiple TLSConfigs.
      Parameters:
      clientConfig - configuration for the ssl endpoints
      Returns:
      a new SslContext
      Throws:
      SSLException