EncryptionKeyWrapMetadata Class   
	- java.
lang. Object  - com.
azure. cosmos. models. EncryptionKeyWrapMetadata  
- com.
 
public final 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.
Constructor Summary
| Constructor | Description | 
|---|---|
| EncryptionKeyWrapMetadata() | 
								 For JSON deserialize  | 
					
| EncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata source) | 
								 Creates a new instance of key wrap metadata based on an existing instance.  | 
					
| EncryptionKeyWrapMetadata(String type, String name, String value) | 
								 Creates a new instance of key wrap metadata based on an existing instance.  | 
					
| EncryptionKeyWrapMetadata(String type, String name, String value, String algorithm) | 
								 Creates a new instance of key wrap metadata based on an existing instance.  | 
					
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| boolean | 
							equals(Object obj)
								 Returns whether the properties of the passed in key wrap metadata matches with those in the current instance.  | 
					
| String | 
							getAlgorithm()
								 Serialized form of metadata.  | 
					
| String | 
							getName()
								 Serialized form of metadata.  | 
					
| String | 
							getType()
								 Serialized form of metadata.  | 
					
| String | 
							getValue()
								 Serialized form of metadata.  | 
					
| int | hashCode() | 
Methods inherited from java.lang.Object
Constructor Details
EncryptionKeyWrapMetadata
public EncryptionKeyWrapMetadata()
For JSON deserialize
EncryptionKeyWrapMetadata
public EncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata source)
Creates a new instance of key wrap metadata based on an existing instance.
Parameters:
EncryptionKeyWrapMetadata
@Deprecated
public EncryptionKeyWrapMetadata(String type, String name, String value)
Creates a new instance of key wrap metadata based on an existing instance.
Parameters:
EncryptionKeyWrapMetadata
public EncryptionKeyWrapMetadata(String type, String name, String value, String algorithm)
Creates a new instance of key wrap metadata based on an existing instance.
Parameters:
Method Details
equals
public boolean equals(Object obj)
Returns whether the properties of the passed in key wrap metadata matches with those in the current instance.
Overrides:
EncryptionKeyWrapMetadata.equals(Object obj)Parameters:
Returns:
getAlgorithm
public String getAlgorithm()
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.
Returns:
getName
public String getName()
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.
Returns:
getType
public String getType()
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.
Returns:
getValue
public String getValue()
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.
Returns:
hashCode
public int hashCode()
Overrides:
EncryptionKeyWrapMetadata.hashCode()