GrpcClientCredentials
Available in a dev version: 0․11․0-grpc-186
How to configure
Base class for client channel credentials.
Client credentials define the security mechanism used to establish a connection to the gRPC server. Unlike GrpcCallCredentials which operate at the application layer for per-call authentication, client credentials establish the transport layer security.
Types of Credentials
GrpcInsecureClientCredentials: No transport security (plaintext)
GrpcTlsClientCredentials: TLS/SSL transport security with optional mutual TLS (mTLS)
Client credentials can be combined with call credentials using the plus operator:
val credentials = GrpcTlsClientCredentials { ... } + BearerTokenCredentials(token)Content copied to clipboard