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
- sourceEncryptionKeyWrapMetadata
- Existing 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
- typestring
- Identifier for the key resolver. 
- namestring
- Identifier for the customer managed key. 
- valuestring
- Path to the customer managed key. 
- algorithmstring
- Algorithm 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
- otherEncryptionKeyWrapMetadata
- Key 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()