Table of Contents

Method CreateDataKey

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.Encryption.dll

CreateDataKey(string, DataKeyOptions, CancellationToken)

An alias function equivalent to createKey.

public Guid CreateDataKey(string kmsProvider, DataKeyOptions dataKeyOptions, CancellationToken cancellationToken = default)

Parameters

kmsProvider string

The kms provider.

dataKeyOptions DataKeyOptions

The data key options.

cancellationToken CancellationToken

The cancellation token.

Returns

Guid

A data key.