Cloud KMS V1 Client - Class MacVerifyResponse (1.18.1)

Reference documentation and code samples for the Cloud KMS V1 Client class MacVerifyResponse.

Response message for KeyManagementService.MacVerify.

Generated from protobuf message google.cloud.kms.v1.MacVerifyResponse

Namespace

Google \ Cloud \ Kms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the CryptoKeyVersion used for verification. Check this field to verify that the intended resource was used for verification.

↳ success bool

This field indicates whether or not the verification operation for MacVerifyRequest.mac over MacVerifyRequest.data was successful.

↳ verified_data_crc32c bool

Integrity verification field. A flag indicating whether MacVerifyRequest.data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries.

↳ verified_mac_crc32c bool

Integrity verification field. A flag indicating whether MacVerifyRequest.mac_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.mac_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.mac_crc32c but this field is still false, discard the response and perform a limited number of retries.

↳ verified_success_integrity bool

Integrity verification field. This value is used for the integrity verification of [MacVerifyResponse.success]. If the value of this field contradicts the value of [MacVerifyResponse.success], discard the response and perform a limited number of retries.

↳ protection_level int

The ProtectionLevel of the CryptoKeyVersion used for verification.

getName

The resource name of the CryptoKeyVersion used for verification. Check this field to verify that the intended resource was used for verification.

Returns
TypeDescription
string

setName

The resource name of the CryptoKeyVersion used for verification. Check this field to verify that the intended resource was used for verification.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSuccess

This field indicates whether or not the verification operation for MacVerifyRequest.mac over MacVerifyRequest.data was successful.

Returns
TypeDescription
bool

setSuccess

This field indicates whether or not the verification operation for MacVerifyRequest.mac over MacVerifyRequest.data was successful.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getVerifiedDataCrc32C

Integrity verification field. A flag indicating whether MacVerifyRequest.data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries.

Returns
TypeDescription
bool

setVerifiedDataCrc32C

Integrity verification field. A flag indicating whether MacVerifyRequest.data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getVerifiedMacCrc32C

Integrity verification field. A flag indicating whether MacVerifyRequest.mac_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.mac_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.mac_crc32c but this field is still false, discard the response and perform a limited number of retries.

Returns
TypeDescription
bool

setVerifiedMacCrc32C

Integrity verification field. A flag indicating whether MacVerifyRequest.mac_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.mac_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.mac_crc32c but this field is still false, discard the response and perform a limited number of retries.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getVerifiedSuccessIntegrity

Integrity verification field. This value is used for the integrity verification of [MacVerifyResponse.success]. If the value of this field contradicts the value of [MacVerifyResponse.success], discard the response and perform a limited number of retries.

Returns
TypeDescription
bool

setVerifiedSuccessIntegrity

Integrity verification field. This value is used for the integrity verification of [MacVerifyResponse.success]. If the value of this field contradicts the value of [MacVerifyResponse.success], discard the response and perform a limited number of retries.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getProtectionLevel

The ProtectionLevel of the CryptoKeyVersion used for verification.

Returns
TypeDescription
int

setProtectionLevel

The ProtectionLevel of the CryptoKeyVersion used for verification.

Parameter
NameDescription
var int
Returns
TypeDescription
$this