Class CosmosEncryptionAsyncClient

java.lang.Object
com.azure.cosmos.encryption.CosmosEncryptionAsyncClient
All Implemented Interfaces:
Closeable, AutoCloseable

public final class CosmosEncryptionAsyncClient extends Object 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 Details

    • getKeyEncryptionKeyResolver

      public com.azure.core.cryptography.KeyEncryptionKeyResolver getKeyEncryptionKeyResolver()
      Returns:
      the key encryption key resolver
    • getKeyEncryptionKeyResolverName

      public String getKeyEncryptionKeyResolverName()
      Returns:
      the key encryption key resolver name
    • 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
    • close

      public void close()
      Close this CosmosAsyncClient instance and cleans up the resources.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable