# Google Cloud Confidential Computing V1 Client - Class ConfidentialSpaceOptions (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 ConfidentialSpaceOptions.

Token options for Confidential Space attestation.

Generated from protobuf message `google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions`

## Namespace

Google \\ Cloud \\ ConfidentialComputing \\ V1 \\ VerifyConfidentialSpaceRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ aws_principal_tags_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.AwsPrincipalTagsOptions` Optional. Options for the AWS token type. |
| `↳ audience` | `string` Optional. Optional string to issue the token with a custom audience claim. Required if custom nonces are specified. |
| `↳ token_profile` | `int` Optional. Optional specification for token claims profile. |
| `↳ nonce` | `string[]` Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes. |
| `↳ signature_type` | `int` Optional. Optional specification for how to sign the attestation token. Defaults to SIGNATURE_TYPE_OIDC if unspecified. |

### getAwsPrincipalTagsOptions

Optional. Options for the AWS token type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.AwsPrincipalTagsOptions|null` |   |

### hasAwsPrincipalTagsOptions

### setAwsPrincipalTagsOptions

Optional. Options for the AWS token type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-confidentialcomputing/latest/V1.AwsPrincipalTagsOptions` |

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

### getAudience

Optional. Optional string to issue the token with a custom audience
claim. Required if custom nonces are specified.

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

### setAudience

Optional. Optional string to issue the token with a custom audience
claim. Required if custom nonces are specified.

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

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

### getTokenProfile

Optional. Optional specification for token claims profile.

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

### setTokenProfile

Optional. Optional specification for token claims profile.

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

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

### getNonce

Optional. Optional parameter to place one or more nonces in the eat_nonce
claim in the output token. The minimum size for JSON-encoded EATs is 10
bytes and the maximum size is 74 bytes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setNonce

Optional. Optional parameter to place one or more nonces in the eat_nonce
claim in the output token. The minimum size for JSON-encoded EATs is 10
bytes and the maximum size is 74 bytes.

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

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

### getSignatureType

Optional. Optional specification for how to sign the attestation token.

Defaults to SIGNATURE_TYPE_OIDC if unspecified.

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

### setSignatureType

Optional. Optional specification for how to sign the attestation token.

Defaults to SIGNATURE_TYPE_OIDC if unspecified.

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

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

### getTokenProfileOptions

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