Create a data key with the given KMS provider and options.
Create a data key with the given KMS provider and options.
Creates a new key document and inserts into the key vault collection.
the KMS provider
the options for data key creation
a Publisher containing the identifier for the created data key
Create a data key with the given KMS provider.
Create a data key with the given KMS provider.
Creates a new key document and inserts into the key vault collection.
the KMS provider
a Publisher containing the identifier for the created data key
Decrypt the given value.
Decrypt the given value.
the value to decrypt, which must be of subtype 6
a Publisher containing the decrypted value
Encrypt the given value with the given options.
Encrypt the given value with the given options. The driver may throw an exception for prohibited BSON value types
the value to encrypt
the options for data encryption
a Publisher containing the encrypted value, a BSON binary of subtype 6
(Since version ) see corresponding Javadoc for more information.
The Key vault.
Used to create data encryption keys, and to explicitly encrypt and decrypt values when auto-encryption is not an option.
2.7
support for client-side encryption should be considered as beta. Backwards-breaking changes may be made before the final release.