CosmosEncryptionDatabase Class
- java.
lang. Object - com.
azure. cosmos. encryption. CosmosEncryptionDatabase
- com.
public final class CosmosEncryptionDatabase
CosmosEncryptionDatabase with encryption capabilities.
Method Summary
Methods inherited from java.lang.Object
Method Details
createClientEncryptionKey
public CosmosClientEncryptionKeyResponse createClientEncryptionKey(String clientEncryptionKeyId, String encryptionAlgorithm, EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Creates a client encryption key after subscription the operation will be performed.
Parameters:
Returns:
getClientEncryptionKey
public CosmosClientEncryptionKey getClientEncryptionKey(String id)
Gets a CosmosClientEncryptionKey object without making a service call
Parameters:
Returns:
getCosmosDatabase
public CosmosDatabase getCosmosDatabase()
Gets a CosmosDatabase.
Returns:
getCosmosEncryptionContainer
public CosmosEncryptionContainer getCosmosEncryptionContainer(CosmosContainer container)
Gets a Container with Encryption capabilities
Parameters:
Returns:
getCosmosEncryptionContainer
public CosmosEncryptionContainer getCosmosEncryptionContainer(String containerId)
Gets a Container with Encryption capabilities
Parameters:
Returns:
readAllClientEncryptionKeys
public CosmosPagedIterable
Reads all cosmos client encryption keys in a database.
After subscription the operation will be performed. The CosmosPagedIterable<T> will contain one or several feed response of the read cosmos client encryption keys. In case of failure the CosmosPagedIterable<T> will error.
Returns:
rewrapClientEncryptionKey
public CosmosClientEncryptionKeyResponse rewrapClientEncryptionKey(String clientEncryptionKeyId, EncryptionKeyWrapMetadata newEncryptionKeyWrapMetadata)
Rewrap a cosmos client encryption key
Parameters:
Returns:
Applies to
Azure SDK for Java