Reference documentation and code samples for the Google Cloud Confidential Computing V1 Client class TokenOptions.
Options to modify claims in the token to generate custom-purpose tokens.
Generated from protobuf message google.cloud.confidentialcomputing.v1.TokenOptions
Namespace
Google \ Cloud \ ConfidentialComputing \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ aws_principal_tags_options |
TokenOptions\AwsPrincipalTagsOptions
Optional. Options for the Limited AWS token type. |
↳ audience |
string
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. |
getAwsPrincipalTagsOptions
Optional. Options for the Limited AWS token type.
Returns | |
---|---|
Type | Description |
TokenOptions\AwsPrincipalTagsOptions|null |
hasAwsPrincipalTagsOptions
setAwsPrincipalTagsOptions
Optional. Options for the Limited AWS token type.
Parameter | |
---|---|
Name | Description |
var |
TokenOptions\AwsPrincipalTagsOptions
|
Returns | |
---|---|
Type | Description |
$this |
getAudience
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
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 |
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.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getTokenTypeOptions
Returns | |
---|---|
Type | Description |
string |