# Google Cloud Public Certificate Authority V1 Client - Class ExternalAccountKey (1.2.0)

1.2.0 (latest) 1.1.2 1.0.5 0.4.1 0.3.4 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Public Certificate Authority V1 Client class ExternalAccountKey.

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

Generated from protobuf message `google.cloud.security.publicca.v1.ExternalAccountKey`

## Namespace

Google \\ Cloud \\ Security \\ PublicCA \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id} |
| `↳ key_id` | `string` Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created |
| `↳ b64_mac_key` | `string` Output only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created |

### getName

Output only. Resource name.

projects/{project}/locations/{location}/externalAccountKeys/{key_id}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. Resource name.

projects/{project}/locations/{location}/externalAccountKeys/{key_id}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKeyId

Output only. Key ID.

It is generated by the PublicCertificateAuthorityService
when the ExternalAccountKey is created

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKeyId

Output only. Key ID.

It is generated by the PublicCertificateAuthorityService
when the ExternalAccountKey is created

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getB64MacKey

Output only. Base64-URL-encoded HS256 key.

It is generated by the PublicCertificateAuthorityService
when the ExternalAccountKey is created

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setB64MacKey

Output only. Base64-URL-encoded HS256 key.

It is generated by the PublicCertificateAuthorityService
when the ExternalAccountKey is created

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |