TlsContextBuilder

data class TlsContextBuilder(val builder: SslContextBuilder, val mutualAuth: Boolean)

Wraps an SslContextBuilder together with a flag indicating whether mutual authentication is configured.

The builder already carries gRPC's ALPN configuration, so a context built from it is accepted by NettyServerBuilder.sslContext and NettyChannelBuilder.sslContext.

Constructors

Link copied to clipboard
constructor(builder: SslContextBuilder, mutualAuth: Boolean)

Properties

Link copied to clipboard
val builder: SslContextBuilder

the Netty SslContextBuilder being configured

Link copied to clipboard

true if mutual (client + server) authentication is enabled