# Google Certificate Authority Service V1 Client - Class EncryptionSpec (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 EncryptionSpec.

The configuration used for encrypting data at rest.

Generated from protobuf message `google.cloud.security.privateca.v1.EncryptionSpec`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getCloudKmsKey

The resource name for a Cloud KMS key in the format
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.

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

### setCloudKmsKey

The resource name for a Cloud KMS key in the format
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.

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

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