CosmosEncryptionAsyncClient Class
- java.
lang. Object - com.
azure. cosmos. encryption. CosmosEncryptionAsyncClient
- com.
Implements
public final class CosmosEncryptionAsyncClient
implements Closeable
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 Type | Method and Description |
---|---|
void |
close()
Close this CosmosAsyncClient instance and cleans up the resources. |
Cosmos |
getCosmosAsyncClient()
Get the regular Cosmos |
Cosmos |
getCosmosEncryptionAsyncDatabase(CosmosAsyncDatabase cosmosAsyncDatabase)
Gets a database with Encryption capabilities |
Cosmos |
getCosmosEncryptionAsyncDatabase(String databaseId)
Gets a database with Encryption capabilities |
Key |
getKeyEncryptionKeyResolver() |
String | getKeyEncryptionKeyResolverName() |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Close this CosmosAsyncClient instance and cleans up the resources.
getCosmosAsyncClient
public CosmosAsyncClient getCosmosAsyncClient()
Get the regular CosmosAsyncClient back.
Returns:
getCosmosEncryptionAsyncDatabase
public CosmosEncryptionAsyncDatabase getCosmosEncryptionAsyncDatabase(CosmosAsyncDatabase cosmosAsyncDatabase)
Gets a database with Encryption capabilities
Parameters:
Returns:
getCosmosEncryptionAsyncDatabase
public CosmosEncryptionAsyncDatabase getCosmosEncryptionAsyncDatabase(String databaseId)
Gets a database with Encryption capabilities
Parameters:
Returns:
getKeyEncryptionKeyResolver
public KeyEncryptionKeyResolver getKeyEncryptionKeyResolver()
Returns:
getKeyEncryptionKeyResolverName
public String getKeyEncryptionKeyResolverName()
Returns:
Applies to
Azure SDK for Java