Google Cloud Confidential Computing V1 Client - Class Challenge (1.2.0)

Reference documentation and code samples for the Google Cloud Confidential Computing V1 Client class Challenge.

A Challenge from the server used to guarantee freshness of attestations

Generated from protobuf message google.cloud.confidentialcomputing.v1.Challenge

Namespace

Google \ Cloud \ ConfidentialComputing \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name for this Challenge in the format projects/*/locations/*/challenges/*

↳ create_time Google\Protobuf\Timestamp

Output only. The time at which this Challenge was created

↳ expire_time Google\Protobuf\Timestamp

Output only. The time at which this Challenge will no longer be usable. It is also the expiration time for any tokens generated from this Challenge.

↳ used bool

Output only. Indicates if this challenge has been used to generate a token.

↳ tpm_nonce string

Output only. Identical to nonce, but as a string.

getName

Output only. The resource name for this Challenge in the format projects/*/locations/*/challenges/*

Returns
Type Description
string

setName

Output only. The resource name for this Challenge in the format projects/*/locations/*/challenges/*

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The time at which this Challenge was created

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time at which this Challenge was created

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getExpireTime

Output only. The time at which this Challenge will no longer be usable. It is also the expiration time for any tokens generated from this Challenge.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

Output only. The time at which this Challenge will no longer be usable. It is also the expiration time for any tokens generated from this Challenge.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUsed

Output only. Indicates if this challenge has been used to generate a token.

Returns
Type Description
bool

setUsed

Output only. Indicates if this challenge has been used to generate a token.

Parameter
Name Description
var bool
Returns
Type Description
$this

getTpmNonce

Output only. Identical to nonce, but as a string.

Returns
Type Description
string

setTpmNonce

Output only. Identical to nonce, but as a string.

Parameter
Name Description
var string
Returns
Type Description
$this