Class CallCredentials (2.66.0)

public abstract class CallCredentials

Client-side call credentials. Provide authorization with per-call granularity.

Inheritance

object > CallCredentials

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Methods

Compose(params CallCredentials[])

public static CallCredentials Compose(params CallCredentials[] credentials)

Composes multiple CallCredentials objects into a single CallCredentials object.

Parameter
Name Description
credentials CallCredentials

credentials to compose

Returns
Type Description
CallCredentials

The new CompositeCallCredentials

FromInterceptor(AsyncAuthInterceptor)

public static CallCredentials FromInterceptor(AsyncAuthInterceptor interceptor)

Creates a new instance of CallCredentials class from an interceptor that can attach metadata to outgoing calls.

Parameter
Name Description
interceptor AsyncAuthInterceptor

authentication interceptor

Returns
Type Description
CallCredentials

InternalPopulateConfiguration(CallCredentialsConfiguratorBase, object?)

public abstract void InternalPopulateConfiguration(CallCredentialsConfiguratorBase configurator, object? state)

Populates call credentials configurator with this instance's configuration. End users never need to invoke this method as it is part of internal implementation.

Parameters
Name Description
configurator CallCredentialsConfiguratorBase
state object