# Class CallCredentials (2.66.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.66.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallCredentials)
- [2.63.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.CallCredentials)
- [2.48.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.CallCredentials)

    public abstract class CallCredentials

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CallCredentials

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Grpc.Core](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/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` | `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallCredentials` credentials to compose |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncAuthInterceptor` authentication interceptor |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallCredentialsConfiguratorBase` |
| `state` | `https://learn.microsoft.com/dotnet/api/system.object` |