public sealed class CryptoKey : IMessage<CryptoKey>, IEquatable<CryptoKey>, IDeepCloneable<CryptoKey>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CryptoKey.
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by Cloud Key Management Service
(Cloud KMS).
When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
IAM policy on the KEK to ensure an attacker cannot
unwrap the DEK.
[[["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-03-24 UTC."],[[["The `CryptoKey` class in the Google Cloud Data Loss Prevention v2 API represents a data encryption key, distinct from a key encryption key managed by Cloud Key Management Service."],["This class implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits methods like `GetHashCode`, `GetType`, and `ToString` from `object`."],["The `CryptoKey` class supports multiple methods for managing keys, including keys wrapped using Cloud KMS (`KmsWrapped`), transient keys (`Transient`), and unwrapped keys (`Unwrapped`)."],["The documentation covers various versions of the API, ranging from the latest 4.16.0 down to version 2.15.0, all related to the same `CryptoKey` functionality."],["There are two constructors available, allowing for the creation of an empty `CryptoKey` object or a `CryptoKey` that is a copy of another."]]],[]]