You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -369,7 +376,7 @@ new ClientEncryption(mongoClient, {
369
376
|[options]| <code>object</code> | Options for creating the data key |
370
377
|[options.masterKey]|[<code>AWSEncryptionKeyOptions</code>](#AWSEncryptionKeyOptions)\|[<code>AzureEncryptionKeyOptions</code>](#AzureEncryptionKeyOptions)\|[<code>GCPEncryptionKeyOptions</code>](#GCPEncryptionKeyOptions)| Idenfities a new KMS-specific key used to encrypt the new data key |
371
378
|[options.keyAltNames]| <code>Array.<string></code> | An optional list of string alternate names used to reference a key. If a key is created with alternate names, then encryption may refer to the key by the unique alternate name instead of by _id. |
372
-
|[callback]|[<code>ClientEncryptionCreateDataKeyCallback</code>](#ClientEncryptionCreateDataKeyCallback)| Optional callback to invoke when key is created |
379
+
|[callback]|[<code>ClientEncryptionCreateDataKeyCallback</code>](#ClientEncryptionCreateDataKeyCallback)|DEPRECATED - Callbacks will be removed in the next major version. Optional callback to invoke when key is created |
373
380
374
381
Creates a data key used for explicit encryption and inserts it into the key vault namespace
375
382
@@ -606,7 +613,7 @@ and then create a new collection with the full set of encryptedFields.
606
613
| --- | --- | --- |
607
614
| value | <code>\*</code> | The value that you wish to serialize. Must be of a type that can be serialized into BSON |
|[callback]|[<code>ClientEncryptionEncryptCallback</code>](#ClientEncryptionEncryptCallback)| Optional callback to invoke when value is encrypted |
616
+
|[callback]|[<code>ClientEncryptionEncryptCallback</code>](#ClientEncryptionEncryptCallback)|DEPRECATED: Callbacks will be removed in the next major version. Optional callback to invoke when value is encrypted |
610
617
611
618
Explicitly encrypt a provided value. Note that either `options.keyId` or `options.keyAltName` must
612
619
be specified. Specifying both `options.keyId` and `options.keyAltName` is considered an error.
@@ -662,7 +669,7 @@ Only supported when queryType is "rangePreview" and algorithm is "RangePreview".
662
669
| Param | Type | Description |
663
670
| --- | --- | --- |
664
671
| value | <code>Buffer</code> \| <code>Binary</code> | An encrypted value |
665
-
| callback |[<code>decryptCallback</code>](#ClientEncryption..decryptCallback)| Optional callback to invoke when value is decrypted |
672
+
| callback |[<code>decryptCallback</code>](#ClientEncryption..decryptCallback)|DEPRECATED - Callbacks will be removed in the next major version. Optional callback to invoke when value is decrypted |
666
673
667
674
Explicitly decrypt a provided encrypted value
668
675
@@ -692,7 +699,9 @@ the original ones.
692
699
693
700
<aname="ClientEncryption..decryptCallback"></a>
694
701
695
-
### *ClientEncryption*~decryptCallback
702
+
### ~~*ClientEncryption*~decryptCallback~~
703
+
***Deprecated***
704
+
696
705
697
706
| Param | Type | Description |
698
707
| --- | --- | --- |
@@ -701,22 +710,30 @@ the original ones.
701
710
702
711
<aname="MongoCryptError"></a>
703
712
704
-
## MongoCryptError
713
+
## ~~MongoCryptError~~
714
+
***Deprecated***
715
+
705
716
An error indicating that something went wrong specifically with MongoDB Client Encryption
706
717
707
718
<aname="MongoCryptCreateDataKeyError"></a>
708
719
709
-
## MongoCryptCreateDataKeyError
720
+
## ~~MongoCryptCreateDataKeyError~~
721
+
***Deprecated***
722
+
710
723
An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create data keys
0 commit comments