@@ -39,7 +39,7 @@ more than one encryption key or create them dynamically.
39
39
use MongoDB\Client;
40
40
use MongoDB\Driver\ClientEncryption;
41
41
42
- $localKey = new Binary('<binary key data (96 bytes)>', Binary::TYPE_GENERIC );
42
+ $localKey = new Binary('<binary key data (96 bytes)>');
43
43
44
44
$clientEncryptionOpts = [
45
45
'keyVaultNamespace' => 'encryption.__keyVault',
78
78
use MongoDB\Client;
79
79
use MongoDB\Driver\ClientEncryption;
80
80
81
- $localKey = new Binary('<binary key data (96 bytes)>', Binary::TYPE_GENERIC );
81
+ $localKey = new Binary('<binary key data (96 bytes)>');
82
82
$encryptionOpts = [
83
83
'keyVaultNamespace' => 'encryption.__keyVault',
84
84
'kmsProviders' => [
@@ -142,7 +142,7 @@ encrypted fields.
142
142
use MongoDB\Client;
143
143
use MongoDB\Driver\ClientEncryption;
144
144
145
- $localKey = new Binary('<binary key data (96 bytes)>', Binary::TYPE_GENERIC );
145
+ $localKey = new Binary('<binary key data (96 bytes)>');
146
146
147
147
$client = new Client();
148
148
@@ -197,7 +197,7 @@ encrypts and decrypts values in the document.
197
197
use MongoDB\Client;
198
198
use MongoDB\Driver\ClientEncryption;
199
199
200
- $localKey = new Binary('<binary key data (96 bytes)>', Binary::TYPE_GENERIC );
200
+ $localKey = new Binary('<binary key data (96 bytes)>');
201
201
202
202
$clientEncryptionOpts = [
203
203
'keyVaultNamespace' => 'encryption.__keyVault',
@@ -250,7 +250,7 @@ To use an alternate name when referencing an encryption key, use the
250
250
use MongoDB\Client;
251
251
use MongoDB\Driver\ClientEncryption;
252
252
253
- $localKey = new Binary('<binary key data (96 bytes)>', Binary::TYPE_GENERIC );
253
+ $localKey = new Binary('<binary key data (96 bytes)>');
254
254
255
255
$clientEncryptionOpts = [
256
256
'keyVaultNamespace' => 'encryption.__keyVault',
@@ -300,7 +300,7 @@ query on the ``encryptedIndexed`` field.
300
300
use MongoDB\BSON\Binary;
301
301
use MongoDB\Client;
302
302
303
- $localKey = new Binary('<binary key data (96 bytes)>', Binary::TYPE_GENERIC );
303
+ $localKey = new Binary('<binary key data (96 bytes)>');
304
304
305
305
$encryptionOpts = [
306
306
'keyVaultNamespace' => 'encryption.__keyVault',
0 commit comments