public class CosmosEncryptionClient extends Object
Modifier and Type | Method and Description |
---|---|
static CosmosEncryptionClient |
createCosmosEncryptionClient(CosmosClient cosmosClient,
com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider encryptionKeyStoreProvider)
Create Cosmos Client with Encryption support for performing operations using client-side encryption.
|
CosmosClient |
getCosmosClient() |
CosmosEncryptionDatabase |
getCosmosEncryptionDatabase(CosmosDatabase cosmosDatabase)
Gets a database with Encryption capabilities
|
CosmosEncryptionDatabase |
getCosmosEncryptionDatabase(String databaseId)
Gets a database with Encryption capabilities
|
com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider |
getEncryptionKeyStoreProvider() |
public com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider getEncryptionKeyStoreProvider()
public CosmosClient getCosmosClient()
public static CosmosEncryptionClient createCosmosEncryptionClient(CosmosClient cosmosClient, com.microsoft.data.encryption.cryptography.EncryptionKeyStoreProvider encryptionKeyStoreProvider)
cosmosClient
- Regular Cosmos Client.encryptionKeyStoreProvider
- encryptionKeyStoreProvider, provider that allows interaction with the master
keys.public CosmosEncryptionDatabase getCosmosEncryptionDatabase(String databaseId)
databaseId
- original database idpublic CosmosEncryptionDatabase getCosmosEncryptionDatabase(CosmosDatabase cosmosDatabase)
cosmosDatabase
- original databaseVisit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.