# Google Certificate Authority Service V1 Client - Class KeyId (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class KeyId.

A KeyId identifies a specific public key, usually by hashing the public
key.

Generated from protobuf message `google.cloud.security.privateca.v1.CertificateDescription.KeyId`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1 \\ CertificateDescription

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key_id` | `string` Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. |

### getKeyId

Optional. The value of this KeyId encoded in lowercase hexadecimal. This
is most likely the 160 bit SHA-1 hash of the public key.

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

### setKeyId

Optional. The value of this KeyId encoded in lowercase hexadecimal. This
is most likely the 160 bit SHA-1 hash of the public key.

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

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