Method RewrapManyDataKey
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.dll
RewrapManyDataKey(FilterDefinition<BsonDocument>, RewrapManyDataKeyOptions, CancellationToken)
Decrypts multiple data keys and (re-)encrypts them with a new masterKey, or with their current masterKey if a new one is not given.
public RewrapManyDataKeyResult RewrapManyDataKey(FilterDefinition<BsonDocument> filter, RewrapManyDataKeyOptions options, CancellationToken cancellationToken = default)
Parameters
filter
FilterDefinition<BsonDocument>The filter.
options
RewrapManyDataKeyOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- RewrapManyDataKeyResult
The result.