CosmosAsyncClientEncryptionKey Class
- java.
lang. Object - com.
azure. cosmos. CosmosAsyncClientEncryptionKey
- com.
public final class CosmosAsyncClientEncryptionKey
The type Cosmos async clientEncryptionKey. This contains methods to operate on a cosmos clientEncryptionKey asynchronously
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getId()
Get the id of the CosmosAsyncClientEncryptionKey |
Mono<Cosmos |
read()
Reads a cosmos client encryption key |
Mono<Cosmos |
replace(CosmosClientEncryptionKeyProperties keyProperties)
Replace a cosmos client encryption key. |
Methods inherited from java.lang.Object
Method Details
getId
public String getId()
Get the id of the CosmosAsyncClientEncryptionKey
Returns:
the id of the CosmosAsyncClientEncryptionKey
read
public Mono
Reads a cosmos client encryption key
Returns:
a Mono containing the single resource response with the read client encryption key or an error.
replace
public Mono
Replace a cosmos client encryption key. This method is not meant to be invoked directly. It is used within CosmosEncryptionAsyncDatabase.rewrapClientEncryptionKey
Parameters:
keyProperties
- the client encryption key properties to create.
Returns:
a Mono containing the single resource response with the read client encryption key or an error.