CosmosEncryptionAsyncDatabase Class
- java.
lang. Object - com.
azure. cosmos. encryption. CosmosEncryptionAsyncDatabase
- com.
public final class CosmosEncryptionAsyncDatabase
CosmosEncryptionAsyncDatabase with encryption capabilities.
Method Summary
Methods inherited from java.lang.Object
Method Details
createClientEncryptionKey
public Mono
Creates a client encryption key after subscription the operation will be performed. The Mono upon successful completion will contain a single resource response with the created client encryption key. In case of failure the Mono will error.
Parameters:
Returns:
getClientEncryptionKey
public CosmosAsyncClientEncryptionKey getClientEncryptionKey(String id)
Gets a CosmosAsyncClientEncryptionKey object without making a service call
Parameters:
Returns:
getCosmosAsyncDatabase
public CosmosAsyncDatabase getCosmosAsyncDatabase()
Gets a regular async database object.
Returns:
getCosmosEncryptionAsyncContainer
public CosmosEncryptionAsyncContainer getCosmosEncryptionAsyncContainer(CosmosAsyncContainer container)
Gets a Container with Encryption capabilities
Parameters:
Returns:
getCosmosEncryptionAsyncContainer
public CosmosEncryptionAsyncContainer getCosmosEncryptionAsyncContainer(String containerId)
Gets a Container with Encryption capabilities
Parameters:
Returns:
readAllClientEncryptionKeys
public CosmosPagedFlux
Reads all cosmos client encryption keys in a database.
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response of the read cosmos client encryption keys. In case of failure the CosmosPagedFlux<T> will error.
Returns:
rewrapClientEncryptionKey
public Mono
Rewrap a cosmos client encryption key
Parameters:
Returns:
Applies to
Azure SDK for Java