public class CosmosEncryptionAsyncClient extends Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this
CosmosAsyncClient instance and cleans up the resources. |
static CosmosEncryptionAsyncClient |
createCosmosEncryptionAsyncClient(CosmosAsyncClient cosmosAsyncClient,
com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider encryptionKeyStoreProvider)
Create Cosmos Client with Encryption support for performing operations using client-side encryption.
|
CosmosAsyncClient |
getCosmosAsyncClient()
Get the regular CosmosAsyncClient back.
|
CosmosEncryptionAsyncDatabase |
getCosmosEncryptionAsyncDatabase(CosmosAsyncDatabase cosmosAsyncDatabase)
Gets a database with Encryption capabilities
|
CosmosEncryptionAsyncDatabase |
getCosmosEncryptionAsyncDatabase(String databaseId)
Gets a database with Encryption capabilities
|
com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider |
getEncryptionKeyStoreProvider() |
public com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider getEncryptionKeyStoreProvider()
public CosmosAsyncClient getCosmosAsyncClient()
public static CosmosEncryptionAsyncClient createCosmosEncryptionAsyncClient(CosmosAsyncClient cosmosAsyncClient, com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider encryptionKeyStoreProvider)
cosmosAsyncClient
- Regular Cosmos Client.encryptionKeyStoreProvider
- encryptionKeyStoreProvider, provider that allows interaction with the master
keys.public CosmosEncryptionAsyncDatabase getCosmosEncryptionAsyncDatabase(CosmosAsyncDatabase cosmosAsyncDatabase)
cosmosAsyncDatabase
- original databasepublic CosmosEncryptionAsyncDatabase getCosmosEncryptionAsyncDatabase(String databaseId)
databaseId
- original database idpublic void close()
CosmosAsyncClient
instance and cleans up the resources.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.