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