public sealed class KeyAccessJustificationsPolicy : IMessage<KeyAccessJustificationsPolicy>, IEquatable<KeyAccessJustificationsPolicy>, IDeepCloneable<KeyAccessJustificationsPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class KeyAccessJustificationsPolicy.
A
[KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy]
specifies zero or more allowed
[AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt,
and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey].
public RepeatedField<AccessReason> AllowedAccessReasons { get; }
The list of allowed reasons for access to a
[CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
[CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
fail.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["The `KeyAccessJustificationsPolicy` class, part of the Google Cloud Key Management Service v1 API, defines allowed access reasons for encrypt, decrypt, and sign operations on a `CryptoKey`."],["This class has a list of `AllowedAccessReasons`, where having zero reasons results in all encrypt, decrypt, and sign operations for the associated `CryptoKey` failing."],["Version 3.16.0 is the latest version, with available versions spanning from 2.2.0 to 3.16.0 for the Google.Cloud.Kms.V1 API, allowing users to select the appropriate version for their needs."],["The `KeyAccessJustificationsPolicy` class inherits from the `object` class and implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The class has two constructors, a parameterless one, and one that accepts another `KeyAccessJustificationsPolicy` as a parameter to provide further flexibility during implementation."]]],[]]