Class CosmosEncryptionClient

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

public final class CosmosEncryptionClient extends Object implements Closeable
Provides a client-side logical representation of the Azure Cosmos DB service. Calls to CosmosClient API's are blocked for completion.
  • Method Details

    • getEncryptionKeyWrapProvider

      public KeyEncryptionKeyResolver getEncryptionKeyWrapProvider()
      Returns:
      the key encryption key resolver
    • getKeyEncryptionKeyResolverName

      public String getKeyEncryptionKeyResolverName()
      Returns:
      the key encryption key resolver name
    • getCosmosClient

      public CosmosClient getCosmosClient()
      Returns:
      the Cosmos client
    • getCosmosEncryptionDatabase

      public CosmosEncryptionDatabase getCosmosEncryptionDatabase(String databaseId)
      Gets a database with Encryption capabilities
      Parameters:
      databaseId - original database id
      Returns:
      database with encryption capabilities
    • getCosmosEncryptionDatabase

      public CosmosEncryptionDatabase getCosmosEncryptionDatabase(CosmosDatabase cosmosDatabase)
      Gets a database with Encryption capabilities
      Parameters:
      cosmosDatabase - original database
      Returns:
      database with encryption capabilities
    • close

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