Google Cloud Confidential Computing V1 Client - Class Challenge (0.4.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
NameDescription
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
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The time at which this Challenge was created

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time at which this Challenge was created

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUsed

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

Returns
TypeDescription
bool

setUsed

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTpmNonce

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

Returns
TypeDescription
string

setTpmNonce

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this