Cloud KMS V1 Client - Class KeyAccessJustificationsPolicy (2.1.0)

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

A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason values for encrypt, decrypt, and sign operations on a CryptoKey.

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

Namespace

Google \ Cloud \ Kms \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ allowed_access_reasons array

The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail.

getAllowedAccessReasons

The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAllowedAccessReasons

The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail.

Parameter
Name Description
var int[]
Returns
Type Description
$this