Click or drag to resize

ClientEncryptionRewrapManyDataKeyAsync Method

Decrypts multiple data keys and (re-)encrypts them with a new masterKey, or with their current masterKey if a new one is not given.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public Task<RewrapManyDataKeyResult> RewrapManyDataKeyAsync(
	FilterDefinition<BsonDocument> filter,
	RewrapManyDataKeyOptions options,
	CancellationToken cancellationToken = null
)

Parameters

filter
Type: MongoDB.DriverFilterDefinitionBsonDocument
The filter.
options
Type: MongoDB.Driver.EncryptionRewrapManyDataKeyOptions
The options.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskRewrapManyDataKeyResult
The result.
See Also