public abstract class CallCredentials : object
Client-side call credentials. Provide authorization with per-call granularity.
Namespace
Grpc.CoreAssembly
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 |
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> |