public sealed class CryptoKey : IMessage<CryptoKey>, IEquatable<CryptoKey>, IDeepCloneable<CryptoKey>, IBufferMessage, IMessage
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by KMS).
When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
unwrap the data crypto key.
[[["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."],[[["This webpage details the `CryptoKey` class within the `Google.Cloud.Dlp.V2` namespace, a data encryption key (DEK) used in Google Cloud's Data Loss Prevention (DLP) API."],["The `CryptoKey` class is a sealed class that implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, with inheritance from `System.Object`."],["It offers constructors for creating new `CryptoKey` objects, either as an empty object or from another `CryptoKey` instance."],["The class exposes three properties, `KmsWrapped`, `Transient`, and `Unwrapped`, representing different key storage methods, along with a `SourceCase` property to determine which method is being used."],["This page also provides links to documentation for numerous versions of the DLP library, ranging from version 2.15.0 up to the latest version 4.16.0."]]],[]]