public class CosmosEncryptionAsyncDatabase extends Object
Modifier and Type | Method and Description |
---|---|
Mono<CosmosClientEncryptionKeyResponse> |
createClientEncryptionKey(String clientEncryptionKeyId,
String encryptionAlgorithm,
EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Creates a client encryption key after subscription the operation will be performed.
|
CosmosAsyncClientEncryptionKey |
getClientEncryptionKey(String id)
Gets a CosmosAsyncClientEncryptionKey object without making a service call
|
CosmosAsyncDatabase |
getCosmosAsyncDatabase()
Gets a regular async database object.
|
CosmosEncryptionAsyncContainer |
getCosmosEncryptionAsyncContainer(CosmosAsyncContainer container)
Gets a Container with Encryption capabilities
|
CosmosEncryptionAsyncContainer |
getCosmosEncryptionAsyncContainer(String containerId)
Gets a Container with Encryption capabilities
|
CosmosPagedFlux<CosmosClientEncryptionKeyProperties> |
readAllClientEncryptionKeys()
Reads all cosmos client encryption keys in a database.
|
Mono<CosmosClientEncryptionKeyResponse> |
rewrapClientEncryptionKey(String clientEncryptionKeyId,
EncryptionKeyWrapMetadata newEncryptionKeyWrapMetadata)
Rewrap a cosmos client encryption key
|
public CosmosAsyncClientEncryptionKey getClientEncryptionKey(String id)
id
- id of the clientEncryptionKeypublic CosmosPagedFlux<CosmosClientEncryptionKeyProperties> readAllClientEncryptionKeys()
After subscription the operation will be performed. The CosmosPagedFlux
will
contain one or several feed response of the read cosmos client encryption keys. In case of
failure the CosmosPagedFlux
will error.
CosmosPagedFlux
containing one or several feed response pages of the
read cosmos client encryption keys or an error.public Mono<CosmosClientEncryptionKeyResponse> createClientEncryptionKey(String clientEncryptionKeyId, String encryptionAlgorithm, EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Mono
upon successful completion will contain a single resource
response with the created client encryption key. In case of failure the Mono
will
error.clientEncryptionKeyId
- Client Encryption Key id.encryptionAlgorithm
- Encryption Algorithm.encryptionKeyWrapMetadata
- EncryptionKeyWrapMetadata.Mono
containing the single resource response with the
created cosmos client encryption key or an error.public Mono<CosmosClientEncryptionKeyResponse> rewrapClientEncryptionKey(String clientEncryptionKeyId, EncryptionKeyWrapMetadata newEncryptionKeyWrapMetadata)
clientEncryptionKeyId
- the client encryption key properties to create.newEncryptionKeyWrapMetadata
- EncryptionKeyWrapMetadata.Mono
containing the single resource response with the read client encryption key or an error.public CosmosEncryptionAsyncContainer getCosmosEncryptionAsyncContainer(CosmosAsyncContainer container)
container
- original containerpublic CosmosEncryptionAsyncContainer getCosmosEncryptionAsyncContainer(String containerId)
containerId
- original container idpublic CosmosAsyncDatabase getCosmosAsyncDatabase()
Copyright © 2021 Microsoft Corporation. All rights reserved.