# Public Certificate Authority v1 API - Class PublicCertificateAuthorityServiceClientImpl (1.1.0)

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

- [1.1.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/1.0.0/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClientImpl)

    public sealed class PublicCertificateAuthorityServiceClientImpl : PublicCertificateAuthorityServiceClient

Reference documentation and code samples for the Public Certificate Authority v1 API class PublicCertificateAuthorityServiceClientImpl.

PublicCertificateAuthorityService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [PublicCertificateAuthorityServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient) \> PublicCertificateAuthorityServiceClientImpl

## Inherited Members

[PublicCertificateAuthorityServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_DefaultEndpoint) [PublicCertificateAuthorityServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_DefaultScopes) [PublicCertificateAuthorityServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_ServiceMetadata) [PublicCertificateAuthorityServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateAsync_System_Threading_CancellationToken_) [PublicCertificateAuthorityServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_Create) [PublicCertificateAuthorityServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_ShutdownDefaultChannelsAsync) [PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKeyAsync_Google_Cloud_Security_PublicCA_V1_CreateExternalAccountKeyRequest_System_Threading_CancellationToken_) [PublicCertificateAuthorityServiceClient.CreateExternalAccountKey(string, ExternalAccountKey, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKey_System_String_Google_Cloud_Security_PublicCA_V1_ExternalAccountKey_Google_Api_Gax_Grpc_CallSettings_) [PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(string, ExternalAccountKey, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKeyAsync_System_String_Google_Cloud_Security_PublicCA_V1_ExternalAccountKey_Google_Api_Gax_Grpc_CallSettings_) [PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(string, ExternalAccountKey, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKeyAsync_System_String_Google_Cloud_Security_PublicCA_V1_ExternalAccountKey_System_Threading_CancellationToken_) [PublicCertificateAuthorityServiceClient.CreateExternalAccountKey(LocationName, ExternalAccountKey, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKey_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Security_PublicCA_V1_ExternalAccountKey_Google_Api_Gax_Grpc_CallSettings_) [PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKeyAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Security_PublicCA_V1_ExternalAccountKey_Google_Api_Gax_Grpc_CallSettings_) [PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKeyAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Security_PublicCA_V1_ExternalAccountKey_System_Threading_CancellationToken_) [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.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1)

## Assembly

Google.Cloud.Security.PublicCA.V1.dll

## Remarks

Manages the resources required for ACME [external account
binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for
the public certificate authority service.

## Constructors

### PublicCertificateAuthorityServiceClientImpl(PublicCertificateAuthorityServiceClient, PublicCertificateAuthorityServiceSettings, ILogger)

    public PublicCertificateAuthorityServiceClientImpl(PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient grpcClient, PublicCertificateAuthorityServiceSettings settings, ILogger logger)

Constructs a client wrapper for the PublicCertificateAuthorityService service, with the specified gRPC
client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceSettings` The base [PublicCertificateAuthorityServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient GrpcClient { get; }

The underlying gRPC PublicCertificateAuthorityService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient` |   |

**Overrides** [PublicCertificateAuthorityServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_GrpcClient)

## Methods

### CreateExternalAccountKey(CreateExternalAccountKeyRequest, CallSettings)

    public override ExternalAccountKey CreateExternalAccountKey(CreateExternalAccountKeyRequest request, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | The RPC response. |

**Overrides** [PublicCertificateAuthorityServiceClient.CreateExternalAccountKey(CreateExternalAccountKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKey_Google_Cloud_Security_PublicCA_V1_CreateExternalAccountKeyRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CallSettings)

    public override Task<ExternalAccountKey> CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | A Task containing the RPC response. |

**Overrides** [PublicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateExternalAccountKeyAsync_Google_Cloud_Security_PublicCA_V1_CreateExternalAccountKeyRequest_Google_Api_Gax_Grpc_CallSettings_)