Click or drag to resize

ClientEncryptionRewrapManyDataKey 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.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax
public RewrapManyDataKeyResult RewrapManyDataKey(
	FilterDefinition<BsonDocument> filter,
	RewrapManyDataKeyOptions options,
	CancellationToken cancellationToken = default
)

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: RewrapManyDataKeyResult
The result.
See Also