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
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, 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
Name Description
configurator CallCredentialsConfiguratorBase
state Nullable<Object>