Table of Contents

Class RewrapManyDataKeyOptions

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

Rewrap many data keys options.

public sealed class RewrapManyDataKeyOptions
Inheritance
RewrapManyDataKeyOptions
Inherited Members

Constructors

RewrapManyDataKeyOptions(string, Optional<BsonDocument>)

Initializes a new instance of the RewrapManyDataKeyOptions class.

public RewrapManyDataKeyOptions(string provider, Optional<BsonDocument> masterKey = default)

Parameters

provider string

The provider name.

masterKey Optional<BsonDocument>

The master key.

Properties

MasterKey

Gets the master key.

public BsonDocument MasterKey { get; }

Property Value

BsonDocument

The master key.

Provider

Gets the provider name.

public string Provider { get; }

Property Value

string

The provider name.

Methods

With(Optional<BsonDocument>, Optional<string>)

Returns a new DataKeyOptions instance with some settings changed.

public RewrapManyDataKeyOptions With(Optional<BsonDocument> masterKey = default, Optional<string> provider = default)

Parameters

masterKey Optional<BsonDocument>

The master key.

provider Optional<string>

The provider name.

Returns

RewrapManyDataKeyOptions

A new DataKeyOptions instance.