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.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public Task<RewrapManyDataKeyResult> RewrapManyDataKeyAsync(
FilterDefinition<BsonDocument> filter,
RewrapManyDataKeyOptions options,
CancellationToken cancellationToken = null
)
Public Function RewrapManyDataKeyAsync (
filter As FilterDefinition(Of BsonDocument),
options As RewrapManyDataKeyOptions,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of RewrapManyDataKeyResult)
member RewrapManyDataKeyAsync :
filter : FilterDefinition<BsonDocument> *
options : RewrapManyDataKeyOptions *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<RewrapManyDataKeyResult>
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:
TaskRewrapManyDataKeyResultThe result.
See Also