Table of Contents

Method DecryptFieldsAsync

Namespace
MongoDB.Driver.Core.WireProtocol
Assembly
MongoDB.Driver.dll

DecryptFieldsAsync(byte[], CancellationToken)

Decrypts the fields asynchronously.

Task<byte[]> DecryptFieldsAsync(byte[] encryptedDocumentBytes, CancellationToken cancellationToken)

Parameters

encryptedDocumentBytes byte[]

The encrypted document bytes.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<byte[]>

An unencrypted document.