你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosEncryptionClient Class

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

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.

CosmosClient getCosmosClient()
CosmosEncryptionDatabase getCosmosEncryptionDatabase(CosmosDatabase cosmosDatabase)

Gets a database with Encryption capabilities

CosmosEncryptionDatabase getCosmosEncryptionDatabase(String databaseId)

Gets a database with Encryption capabilities

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

the Cosmos client

getCosmosEncryptionDatabase

public CosmosEncryptionDatabase getCosmosEncryptionDatabase(CosmosDatabase cosmosDatabase)

Gets a database with Encryption capabilities

Parameters:

cosmosDatabase - original database

Returns:

database with encryption capabilities

getCosmosEncryptionDatabase

public CosmosEncryptionDatabase getCosmosEncryptionDatabase(String databaseId)

Gets a database with Encryption capabilities

Parameters:

databaseId - original database id

Returns:

database with encryption capabilities

getEncryptionKeyWrapProvider

public KeyEncryptionKeyResolver getEncryptionKeyWrapProvider()

Returns:

the key encryption key resolver

getKeyEncryptionKeyResolverName

public String getKeyEncryptionKeyResolverName()

Returns:

the key encryption key resolver name

Applies to