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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eKeyAccessJustificationsPolicy\u003c/code\u003e class, part of the Google Cloud Key Management Service v1 API, defines allowed access reasons for encrypt, decrypt, and sign operations on a \u003ccode\u003eCryptoKey\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class has a list of \u003ccode\u003eAllowedAccessReasons\u003c/code\u003e, where having zero reasons results in all encrypt, decrypt, and sign operations for the associated \u003ccode\u003eCryptoKey\u003c/code\u003e failing.\u003c/p\u003e\n"],["\u003cp\u003eVersion 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeyAccessJustificationsPolicy\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a parameterless one, and one that accepts another \u003ccode\u003eKeyAccessJustificationsPolicy\u003c/code\u003e as a parameter to provide further flexibility during implementation.\u003c/p\u003e\n"]]],[],null,[]]