Class CallCredentials (2.48.0)

public abstract class CallCredentials : object

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

Inheritance

Object > CallCredentials

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Methods

Compose(CallCredentials[])

public static CallCredentials Compose(params CallCredentials[] credentials)

Composes multiple CallCredentials objects into a single CallCredentials object.

Parameter
NameDescription
credentialsCallCredentials[]

credentials to compose

Returns
TypeDescription
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
NameDescription
interceptorAsyncAuthInterceptor

authentication interceptor

Returns
TypeDescription
CallCredentials

InternalPopulateConfiguration(CallCredentialsConfiguratorBase, Nullable<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
NameDescription
configuratorCallCredentialsConfiguratorBase
stateNullable<Object>