Package com.azure.cosmos.encryption
Class CosmosEncryptionAsyncDatabase
java.lang.Object
com.azure.cosmos.encryption.CosmosEncryptionAsyncDatabase
CosmosEncryptionAsyncDatabase with encryption capabilities.
-
Method Summary
Modifier and TypeMethodDescriptionMono<com.azure.cosmos.models.CosmosClientEncryptionKeyResponse>createClientEncryptionKey(String clientEncryptionKeyId, String encryptionAlgorithm, com.azure.cosmos.models.EncryptionKeyWrapMetadata encryptionKeyWrapMetadata) Creates a client encryption key after subscription the operation will be performed.com.azure.cosmos.CosmosAsyncClientEncryptionKeyGets a CosmosAsyncClientEncryptionKey object without making a service callcom.azure.cosmos.CosmosAsyncDatabaseGets a regular async database object.getCosmosEncryptionAsyncContainer(com.azure.cosmos.CosmosAsyncContainer container) Gets a Container with Encryption capabilitiesgetCosmosEncryptionAsyncContainer(String containerId) Gets a Container with Encryption capabilitiescom.azure.cosmos.util.CosmosPagedFlux<com.azure.cosmos.models.CosmosClientEncryptionKeyProperties>Reads all cosmos client encryption keys in a database.Mono<com.azure.cosmos.models.CosmosClientEncryptionKeyResponse>rewrapClientEncryptionKey(String clientEncryptionKeyId, com.azure.cosmos.models.EncryptionKeyWrapMetadata newEncryptionKeyWrapMetadata) Rewrap a cosmos client encryption key
-
Method Details
-
getClientEncryptionKey
Gets a CosmosAsyncClientEncryptionKey object without making a service call- Parameters:
id- id of the clientEncryptionKey- Returns:
- Cosmos ClientEncryptionKey
-
readAllClientEncryptionKeys
public com.azure.cosmos.util.CosmosPagedFlux<com.azure.cosmos.models.CosmosClientEncryptionKeyProperties> readAllClientEncryptionKeys()Reads all cosmos client encryption keys in a database.After subscription the operation will be performed. The
CosmosPagedFluxwill contain one or several feed response of the read cosmos client encryption keys. In case of failure theCosmosPagedFluxwill error.- Returns:
- a
CosmosPagedFluxcontaining one or several feed response pages of the read cosmos client encryption keys or an error.
-
createClientEncryptionKey
public Mono<com.azure.cosmos.models.CosmosClientEncryptionKeyResponse> createClientEncryptionKey(String clientEncryptionKeyId, String encryptionAlgorithm, com.azure.cosmos.models.EncryptionKeyWrapMetadata encryptionKeyWrapMetadata) Creates a client encryption key after subscription the operation will be performed. TheMonoupon successful completion will contain a single resource response with the created client encryption key. In case of failure theMonowill error.- Parameters:
clientEncryptionKeyId- Client Encryption Key id.encryptionAlgorithm- Encryption Algorithm.encryptionKeyWrapMetadata- EncryptionKeyWrapMetadata.- Returns:
- an
Monocontaining the single resource response with the created cosmos client encryption key or an error.
-
rewrapClientEncryptionKey
public Mono<com.azure.cosmos.models.CosmosClientEncryptionKeyResponse> rewrapClientEncryptionKey(String clientEncryptionKeyId, com.azure.cosmos.models.EncryptionKeyWrapMetadata newEncryptionKeyWrapMetadata) Rewrap a cosmos client encryption key- Parameters:
clientEncryptionKeyId- the client encryption key properties to create.newEncryptionKeyWrapMetadata- EncryptionKeyWrapMetadata.- Returns:
- a
Monocontaining the single resource response with the read client encryption key or an error.
-
getCosmosEncryptionAsyncContainer
public CosmosEncryptionAsyncContainer getCosmosEncryptionAsyncContainer(com.azure.cosmos.CosmosAsyncContainer container) Gets a Container with Encryption capabilities- Parameters:
container- original container- Returns:
- container with encryption capabilities
-
getCosmosEncryptionAsyncContainer
Gets a Container with Encryption capabilities- Parameters:
containerId- original container id- Returns:
- container with encryption capabilities
-
getCosmosAsyncDatabase
public com.azure.cosmos.CosmosAsyncDatabase getCosmosAsyncDatabase()Gets a regular async database object.- Returns:
- regular async database object
-