GrpcEmptyCallCredentials

Available in a dev version: 0․11․0-grpc-186

How to configure

A call credential that performs no authentication.

This is useful as a no-op placeholder or for disabling authentication in specific scenarios. Since it performs no authentication, it does not require transport security.

Example

val credentials = if (useAuth) {
BearerTokenCredentials(token)
} else {
GrpcEmptyCallCredentials
}

Properties

Link copied to clipboard
open override val requiresTransportSecurity: Boolean = false

Indicates whether this credential requires transport security (TLS).

Functions

Link copied to clipboard

Combines two call credentials into a single credential that applies both.

Link copied to clipboard

Retrieves authentication metadata for the gRPC call.

Link copied to clipboard

Combines two call credentials into a single credential that applies both.