# Google Cloud Confidential Computing V1 Client - Class ContainerImageSignature (1.7.1)

1.7.1 (latest) 1.7.0 1.6.2 1.5.0 1.4.1 1.3.0 1.2.2 1.1.1 1.0.0 0.8.3 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.2 0.1.1 Reference documentation and code samples for the Google Cloud Confidential Computing V1 Client class ContainerImageSignature.

ContainerImageSignature holds necessary metadata to verify a container image
signature.

Generated from protobuf message `google.cloud.confidentialcomputing.v1.ContainerImageSignature`

## Namespace

Google \\ Cloud \\ ConfidentialComputing \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ payload` | `string` Optional. The binary signature payload following the SimpleSigning format <https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing>. This payload includes the container image digest. |
| `↳ signature` | `string` Optional. A signature over the payload. The container image digest is incorporated into the signature as follows: 1. Generate a SimpleSigning format payload that includes the container image digest. 2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))` |
| `↳ public_key` | `string` Optional. Reserved for future use. |
| `↳ sig_alg` | `int` Optional. Reserved for future use. |

### getPayload

Optional. The binary signature payload following the SimpleSigning format
<https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing>.

This payload includes the container image digest.

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

### setPayload

Optional. The binary signature payload following the SimpleSigning format
<https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing>.

This payload includes the container image digest.

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

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

### getSignature

Optional. A signature over the payload.

The container image digest is incorporated into the signature as follows:

1. Generate a SimpleSigning format payload that includes the container image digest.
2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`

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

### setSignature

Optional. A signature over the payload.

The container image digest is incorporated into the signature as follows:

1. Generate a SimpleSigning format payload that includes the container image digest.
2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`

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

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

### getPublicKey

Optional. Reserved for future use.

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

### setPublicKey

Optional. Reserved for future use.

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

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

### getSigAlg

Optional. Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SigningAlgorithm](https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.SigningAlgorithm). |

### setSigAlg

Optional. Reserved for future use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SigningAlgorithm](https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.SigningAlgorithm). |

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