# Public Certificate Authority v1beta1 API - Class ExternalAccountKey (1.0.0-beta06)

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

- [1.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey)
- [1.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/1.0.0-beta05/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey)

    public sealed class ExternalAccountKey : IMessage<ExternalAccountKey>, IEquatable<ExternalAccountKey>, IDeepCloneable<ExternalAccountKey>, IBufferMessage, IMessage

Reference documentation and code samples for the Public Certificate Authority v1beta1 API class ExternalAccountKey.

A representation of an ExternalAccountKey used for [external account
binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExternalAccountKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExternalAccountKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExternalAccountKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Security.PublicCA.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1)

## Assembly

Google.Cloud.Security.PublicCA.V1Beta1.dll

## Constructors

### ExternalAccountKey()

    public ExternalAccountKey()

### ExternalAccountKey(ExternalAccountKey)

    public ExternalAccountKey(ExternalAccountKey other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey` |

## Properties

### B64MacKey

    public ByteString B64MacKey { get; set; }

Output only. Base64-URL-encoded HS256 key.
It is generated by the PublicCertificateAuthorityService
when the ExternalAccountKey is created

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` |   |

### ExternalAccountKeyName

    public ExternalAccountKeyName ExternalAccountKeyName { get; set; }

[ExternalAccountKeyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKeyName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKey#Google_Cloud_Security_PublicCA_V1Beta1_ExternalAccountKey_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1Beta1/latest/Google.Cloud.Security.PublicCA.V1Beta1.ExternalAccountKeyName` |   |

### KeyId

    public string KeyId { get; set; }

Output only. Key ID.
It is generated by the PublicCertificateAuthorityService
when the ExternalAccountKey is created

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Output only. Resource name.
projects/{project}/locations/{location}/externalAccountKeys/{key_id}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |