Class SSLContextClientBuilder
java.lang.Object
io.deephaven.dhservice.client.grpc.SSLContextClientBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.handler.ssl.SslContextbuild(ClientConnectionConfig clientConfig) Build an SslContext from the collection of TLSConfigs.static io.netty.handler.ssl.SslContextBuild an SslContext from a single TLSConfig.
-
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
-