Method RewrapManyDataKeyAsync
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.Encryption.dll
RewrapManyDataKeyAsync(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 Task<RewrapManyDataKeyResult> RewrapManyDataKeyAsync(FilterDefinition<BsonDocument> filter, RewrapManyDataKeyOptions options, CancellationToken cancellationToken = default)
Parameters
filter
FilterDefinition <BsonDocument >The filter.
options
RewrapMany Data Key Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<Rewrap
Many >Data Key Result The result.