Interface KeyAccessJustificationsPolicyOrBuilder (2.50.0)

public interface KeyAccessJustificationsPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedAccessReasons(int index)

public abstract AccessReason getAllowedAccessReasons(int index)

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.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
AccessReason

The allowedAccessReasons at the given index.

getAllowedAccessReasonsCount()

public abstract int getAllowedAccessReasonsCount()

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.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Returns
Type Description
int

The count of allowedAccessReasons.

getAllowedAccessReasonsList()

public abstract List<AccessReason> getAllowedAccessReasonsList()

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.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Returns
Type Description
List<AccessReason>

A list containing the allowedAccessReasons.

getAllowedAccessReasonsValue(int index)

public abstract int getAllowedAccessReasonsValue(int index)

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.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of allowedAccessReasons at the given index.

getAllowedAccessReasonsValueList()

public abstract List<Integer> getAllowedAccessReasonsValueList()

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.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for allowedAccessReasons.