Package com.azure.cosmos.encryption
Class CosmosEncryptionAsyncClient
java.lang.Object
com.azure.cosmos.encryption.CosmosEncryptionAsyncClient
- All Implemented Interfaces:
Closeable,AutoCloseable
Provides a client-side logical representation of the Azure Cosmos DB service.
This asynchronous encryption client is used to configure and execute requests against the service.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close thisCosmosAsyncClientinstance and cleans up the resources.Get the regular CosmosAsyncClient back.getCosmosEncryptionAsyncDatabase(CosmosAsyncDatabase cosmosAsyncDatabase) Gets a database with Encryption capabilitiesgetCosmosEncryptionAsyncDatabase(String databaseId) Gets a database with Encryption capabilitiescom.azure.core.cryptography.KeyEncryptionKeyResolver
-
Method Details
-
getKeyEncryptionKeyResolver
public com.azure.core.cryptography.KeyEncryptionKeyResolver getKeyEncryptionKeyResolver()- Returns:
- the key encryption key resolver
-
getKeyEncryptionKeyResolverName
- Returns:
- the key encryption key resolver name
-
getCosmosAsyncClient
Get the regular CosmosAsyncClient back.- Returns:
- cosmosAsyncClient
-
getCosmosEncryptionAsyncDatabase
public CosmosEncryptionAsyncDatabase getCosmosEncryptionAsyncDatabase(CosmosAsyncDatabase cosmosAsyncDatabase) Gets a database with Encryption capabilities- Parameters:
cosmosAsyncDatabase- original database- Returns:
- database with encryption capabilities
-
getCosmosEncryptionAsyncDatabase
Gets a database with Encryption capabilities- Parameters:
databaseId- original database id- Returns:
- database with encryption capabilities
-
close
public void close()Close thisCosmosAsyncClientinstance and cleans up the resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-