Package com.azure.cosmos.encryption
Class CosmosEncryptionClient
java.lang.Object
com.azure.cosmos.encryption.CosmosEncryptionClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
Provides a client-side logical representation of the Azure Cosmos DB service.
Calls to CosmosClient API's are blocked for completion.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close thisCosmosClient
instance and cleans up the resources.getCosmosEncryptionDatabase
(CosmosDatabase cosmosDatabase) Gets a database with Encryption capabilitiesgetCosmosEncryptionDatabase
(String databaseId) Gets a database with Encryption capabilitiescom.azure.core.cryptography.KeyEncryptionKeyResolver
-
Method Details
-
getEncryptionKeyWrapProvider
public com.azure.core.cryptography.KeyEncryptionKeyResolver getEncryptionKeyWrapProvider()- Returns:
- the key encryption key resolver
-
getKeyEncryptionKeyResolverName
- Returns:
- the key encryption key resolver name
-
getCosmosClient
- Returns:
- the Cosmos client
-
getCosmosEncryptionDatabase
Gets a database with Encryption capabilities- Parameters:
databaseId
- original database id- Returns:
- database with encryption capabilities
-
getCosmosEncryptionDatabase
Gets a database with Encryption capabilities- Parameters:
cosmosDatabase
- original database- Returns:
- database with encryption capabilities
-
close
public void close()Close thisCosmosClient
instance and cleans up the resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-