Class EncryptionKeyWrapMetadata
Metadata that can be used to wrap/unwrap a Data Encryption Key using a Customer Managed Key. See https://aka.ms/CosmosClientEncryption for more information on client-side encryption support in Azure Cosmos DB.
public class EncryptionKeyWrapMetadata : IEquatable<EncryptionKeyWrapMetadata>
- Inheritance
-
EncryptionKeyWrapMetadata
- Implements
- Inherited Members
- Extension Methods
Constructors
EncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata)
Creates a new instance of key wrap metadata based on an existing instance.
public EncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata source)
Parameters
sourceEncryptionKeyWrapMetadataExisting instance from which to initialize.
EncryptionKeyWrapMetadata(string, string, string, string)
Creates a new instance of key wrap metadata.
public EncryptionKeyWrapMetadata(string type, string name, string value, string algorithm)
Parameters
typestringIdentifier for the key resolver.
namestringIdentifier for the customer managed key.
valuestringPath to the customer managed key.
algorithmstringAlgorithm used in wrapping and unwrapping of the data encryption key.
Properties
Algorithm
Serialized form of metadata. Note: This value is saved in the Cosmos DB service. Implementors of derived implementations should ensure that this does not have (private) key material or credential information.
public string Algorithm { get; }
Property Value
Name
Serialized form of metadata. Note: This value is saved in the Cosmos DB service. Implementors of derived implementations should ensure that this does not have (private) key material or credential information.
public string Name { get; }
Property Value
Type
Serialized form of metadata. Note: This value is saved in the Cosmos DB service. Implementors of derived implementations should ensure that this does not have (private) key material or credential information.
public string Type { get; }
Property Value
Value
Serialized form of metadata. Note: This value is saved in the Cosmos DB service. Implementors of derived implementations should ensure that this does not have (private) key material or credential information.
public string Value { get; }
Property Value
Methods
Equals(EncryptionKeyWrapMetadata)
Returns whether the properties of the passed in key wrap metadata matches with those in the current instance.
public bool Equals(EncryptionKeyWrapMetadata other)
Parameters
otherEncryptionKeyWrapMetadataKey wrap metadata to be compared with current instance.
Returns
- bool
True if the properties of the key wrap metadata passed in matches with those in the current instance, else false.
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()