Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.
↳ nonce
array
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.
↳ token_type
int
Optional. Optional token type to select what type of token to return.
Optional. Optional string to issue the token with a custom audience claim.
Required if one or more nonces are specified.
Returns
Type
Description
string
setAudience
Optional. Optional string to issue the token with a custom audience claim.
Required if one or more nonces are specified.
Parameter
Name
Description
var
string
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.
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
getTokenType
Optional. Optional token type to select what type of token to return.
Returns
Type
Description
int
setTokenType
Optional. Optional token type to select what type of token to return.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Confidential Computing V1 Client - Class TokenOptions (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-confidentialcomputing/latest/V1.TokenOptions)\n- [1.4.0](/php/docs/reference/cloud-confidentialcomputing/1.4.0/V1.TokenOptions)\n- [1.3.0](/php/docs/reference/cloud-confidentialcomputing/1.3.0/V1.TokenOptions)\n- [1.2.2](/php/docs/reference/cloud-confidentialcomputing/1.2.2/V1.TokenOptions)\n- [1.1.1](/php/docs/reference/cloud-confidentialcomputing/1.1.1/V1.TokenOptions)\n- [1.0.0](/php/docs/reference/cloud-confidentialcomputing/1.0.0/V1.TokenOptions)\n- [0.8.3](/php/docs/reference/cloud-confidentialcomputing/0.8.3/V1.TokenOptions)\n- [0.7.0](/php/docs/reference/cloud-confidentialcomputing/0.7.0/V1.TokenOptions)\n- [0.6.0](/php/docs/reference/cloud-confidentialcomputing/0.6.0/V1.TokenOptions)\n- [0.5.1](/php/docs/reference/cloud-confidentialcomputing/0.5.1/V1.TokenOptions)\n- [0.4.0](/php/docs/reference/cloud-confidentialcomputing/0.4.0/V1.TokenOptions)\n- [0.3.0](/php/docs/reference/cloud-confidentialcomputing/0.3.0/V1.TokenOptions)\n- [0.2.2](/php/docs/reference/cloud-confidentialcomputing/0.2.2/V1.TokenOptions)\n- [0.1.1](/php/docs/reference/cloud-confidentialcomputing/0.1.1/V1.TokenOptions) \nReference documentation and code samples for the Google Cloud Confidential Computing V1 Client class TokenOptions.\n\nOptions to modify claims in the token to generate custom-purpose tokens.\n\nGenerated from protobuf message `google.cloud.confidentialcomputing.v1.TokenOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ConfidentialComputing \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAwsPrincipalTagsOptions\n\nOptional. Options for the Limited AWS token type.\n\n### hasAwsPrincipalTagsOptions\n\n### setAwsPrincipalTagsOptions\n\nOptional. Options for the Limited AWS token type.\n\n### getAudience\n\nOptional. Optional string to issue the token with a custom audience claim.\n\nRequired if one or more nonces are specified.\n\n### setAudience\n\nOptional. Optional string to issue the token with a custom audience claim.\n\nRequired if one or more nonces are specified.\n\n### getNonce\n\nOptional. Optional parameter to place one or more nonces in the eat_nonce\nclaim in the output token. The minimum size for JSON-encoded EATs is 10\nbytes and the maximum size is 74 bytes.\n\n### setNonce\n\nOptional. Optional parameter to place one or more nonces in the eat_nonce\nclaim in the output token. The minimum size for JSON-encoded EATs is 10\nbytes and the maximum size is 74 bytes.\n\n### getTokenType\n\nOptional. Optional token type to select what type of token to return.\n\n### setTokenType\n\nOptional. Optional token type to select what type of token to return.\n\n### getTokenTypeOptions"]]