mongoc_client_encryption_rewrap_many_datakey

mongoc_client_encryption_rewrap_many_datakey()

Synopsis

bool
mongoc_client_encryption_rewrap_many_datakey (
   mongoc_client_encryption_t *client_encryption,
   const bson_t *filter,
   const char *provider,
   const bson_t *master_key,
   mongoc_client_encryption_rewrap_many_datakey_result_t *result,
   bson_error_t *error);

Rewraps zero or more data keys in the key vault collection that match the provided filter.

A NULL argument for filter is equivalent to being given an empty document (match all).

If provider is NULL, rewraps matching data keys with their current KMS provider.

If provider is not NULL, rewraps matching data keys with the new KMS provider as described by master_key. The master_key document must conform to the Client Side Encryption specification.

Parameters

Returns

Returns true if successful. Returns false and sets error otherwise.

SEE ALSO:

mongoc_client_encryption_rewrap_many_datakey_result_t

Author

MongoDB, Inc

Info

Sep 08, 2022 1.23.0 libmongoc