CosmosEncryptionAsyncClient Class

  • java.lang.Object
    • com.azure.cosmos.encryption.CosmosEncryptionAsyncClient

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.

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

KeyEncryptionKeyResolver 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:

cosmosAsyncClient

getCosmosEncryptionAsyncDatabase

public CosmosEncryptionAsyncDatabase getCosmosEncryptionAsyncDatabase(CosmosAsyncDatabase cosmosAsyncDatabase)

Gets a database with Encryption capabilities

Parameters:

cosmosAsyncDatabase - original database

Returns:

database with encryption capabilities

getCosmosEncryptionAsyncDatabase

public CosmosEncryptionAsyncDatabase getCosmosEncryptionAsyncDatabase(String databaseId)

Gets a database with Encryption capabilities

Parameters:

databaseId - original database id

Returns:

database with encryption capabilities

getKeyEncryptionKeyResolver

public KeyEncryptionKeyResolver getKeyEncryptionKeyResolver()

Returns:

the key encryption key resolver

getKeyEncryptionKeyResolverName

public String getKeyEncryptionKeyResolverName()

Returns:

the key encryption key resolver name

Applies to