CosmosClientEncryptionKeyProperties Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosClientEncryptionKeyProperties
- com.
public final class CosmosClientEncryptionKeyProperties
Details of an encryption key for use with the Azure Cosmos DB service.
Constructor Summary
Constructor | Description |
---|---|
CosmosClientEncryptionKeyProperties(String id, String encryptionAlgorithm, byte[] wrappedDataEncryptionKey, EncryptionKeyWrapMetadata encryptionKeyWrapMetadata) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getETag()
Get the entity tag associated with the resource. |
String |
getEncryptionAlgorithm()
Gets the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data. |
Encryption |
getEncryptionKeyWrapMetadata()
Gets the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key. |
String |
getId()
Gets the name of the resource. |
Instant |
getTimestamp()
Get the last modified timestamp associated with the resource. |
byte[] |
getWrappedDataEncryptionKey()
Gets the wrapped form of the client encryption key. |
Cosmos |
setEncryptionAlgorithm(String encryptionAlgorithm)
Sets the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data. |
Cosmos |
setEncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Sets the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key. |
Cosmos |
setId(String id)
Sets the name of the resource. |
Cosmos |
setWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey)
Sets the wrapped form of the client encryption key. |
Methods inherited from java.lang.Object
Constructor Details
CosmosClientEncryptionKeyProperties
public CosmosClientEncryptionKeyProperties(String id, String encryptionAlgorithm, byte[] wrappedDataEncryptionKey, EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Constructor.
Parameters:
Method Details
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.
Returns:
getEncryptionAlgorithm
public String getEncryptionAlgorithm()
Gets the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
Returns:
getEncryptionKeyWrapMetadata
public EncryptionKeyWrapMetadata getEncryptionKeyWrapMetadata()
Gets the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
Returns:
getId
public String getId()
Gets the name of the resource.
Returns:
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.
Returns:
getWrappedDataEncryptionKey
public byte[] getWrappedDataEncryptionKey()
Gets the wrapped form of the client encryption key.
Returns:
setEncryptionAlgorithm
public CosmosClientEncryptionKeyProperties setEncryptionAlgorithm(String encryptionAlgorithm)
Sets the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
Parameters:
Returns:
setEncryptionKeyWrapMetadata
public CosmosClientEncryptionKeyProperties setEncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Sets the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
Parameters:
Returns:
setId
public CosmosClientEncryptionKeyProperties setId(String id)
Sets the name of the resource.
Parameters:
Returns:
setWrappedDataEncryptionKey
public CosmosClientEncryptionKeyProperties setWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey)
Sets the wrapped form of the client encryption key.
Parameters:
Returns:
Applies to
Azure SDK for Java