Method CreateDataKeyAsync
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.dll
CreateDataKeyAsync(string, DataKeyOptions, CancellationToken)
An alias function equivalent to createKey.
public Task<Guid> CreateDataKeyAsync(string kmsProvider, DataKeyOptions dataKeyOptions, CancellationToken cancellationToken = default)
Parameters
kmsProvider
stringThe kms provider.
dataKeyOptions
DataKeyOptionsThe data key options.
cancellationToken
CancellationTokenThe cancellation token.