Class CallCredentials
Client-side call credentials. Provide authorization with per-call granularity.
Inheritance
System.Object
CallCredentials
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public abstract class CallCredentials : object
Methods
Compose(CallCredentials[])
Composes multiple multiple CallCredentials
objects into
a single CallCredentials
object.
Declaration
public static CallCredentials Compose(params CallCredentials[] credentials)
Parameters
Type | Name | Description |
---|---|---|
CallCredentials[] | credentials | credentials to compose |
Returns
Type | Description |
---|---|
CallCredentials | The new |
FromInterceptor(AsyncAuthInterceptor)
Creates a new instance of CallCredentials
class from an
interceptor that can attach metadata to outgoing calls.
Declaration
public static CallCredentials FromInterceptor(AsyncAuthInterceptor interceptor)
Parameters
Type | Name | Description |
---|---|---|
AsyncAuthInterceptor | interceptor | authentication interceptor |
Returns
Type | Description |
---|---|
CallCredentials |
InternalPopulateConfiguration(CallCredentialsConfiguratorBase, Object)
Populates call credentials configurator with this instance's configuration. End users never need to invoke this method as it is part of internal implementation.
Declaration
public abstract void InternalPopulateConfiguration(CallCredentialsConfiguratorBase configurator, object state)
Parameters
Type | Name | Description |
---|---|---|
CallCredentialsConfiguratorBase | configurator | |
System.Object | state |