CosmosEncryptionClient Class
- java.
lang. Object - com.
azure. cosmos. encryption. CosmosEncryptionClient
- com.
Implements
public final class CosmosEncryptionClient
implements Closeable
Provides a client-side logical representation of the Azure Cosmos DB service. Calls to CosmosClient API's are blocked for completion.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this CosmosClient instance and cleans up the resources. |
Cosmos |
getCosmosClient() |
Cosmos |
getCosmosEncryptionDatabase(CosmosDatabase cosmosDatabase)
Gets a database with Encryption capabilities |
Cosmos |
getCosmosEncryptionDatabase(String databaseId)
Gets a database with Encryption capabilities |
Key |
getEncryptionKeyWrapProvider() |
String | getKeyEncryptionKeyResolverName() |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Close this CosmosClient instance and cleans up the resources.
getCosmosClient
public CosmosClient getCosmosClient()
Returns:
getCosmosEncryptionDatabase
public CosmosEncryptionDatabase getCosmosEncryptionDatabase(CosmosDatabase cosmosDatabase)
Gets a database with Encryption capabilities
Parameters:
Returns:
getCosmosEncryptionDatabase
public CosmosEncryptionDatabase getCosmosEncryptionDatabase(String databaseId)
Gets a database with Encryption capabilities
Parameters:
Returns:
getEncryptionKeyWrapProvider
public KeyEncryptionKeyResolver getEncryptionKeyWrapProvider()
Returns:
getKeyEncryptionKeyResolverName
public String getKeyEncryptionKeyResolverName()
Returns:
Applies to
Azure SDK for Java