110 std::
string const& coll_name,
113 std::
string const& kms_provider,
291 std::unique_ptr<impl> _impl;
297#include <mongocxx/config/postlude.hpp>
client_encryption(options::client_encryption opts)
Creates a client_encryption object.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > get_key_by_alt_name(bsoncxx::v_noabi::string::view_or_value key_alt_name)
Get the key document from the key vault collection with the provided name.
bsoncxx::v_noabi::types::bson_value::value decrypt(bsoncxx::v_noabi::types::bson_value::view value)
Decrypts an encrypted value (BSON binary of subtype 6).
result::rewrap_many_datakey rewrap_many_datakey(bsoncxx::v_noabi::document::view_or_value filter, options::rewrap_many_datakey const &opts)
Decrypts multiple data keys and (re-)encrypts them with a new masterKey, or with their current master...
bsoncxx::v_noabi::types::bson_value::value create_data_key(std::string kms_provider, options::data_key const &opts={})
Creates a new key document and inserts into the key vault collection.
result::delete_result delete_key(bsoncxx::v_noabi::types::bson_value::view_or_value id)
Removes the key document with the given UUID (BSON binary subtype 0x04) from the key vault collection...
bsoncxx::v_noabi::types::bson_value::value encrypt(bsoncxx::v_noabi::types::bson_value::view value, options::encrypt const &opts)
Encrypts a BSON value with a given key and algorithm.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > add_key_alt_name(bsoncxx::v_noabi::types::bson_value::view_or_value id, bsoncxx::v_noabi::string::view_or_value key_alt_name)
Adds a keyAltName to the keyAltNames array of the key document in the key vault collection with the g...
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > remove_key_alt_name(bsoncxx::v_noabi::types::bson_value::view_or_value id, bsoncxx::v_noabi::string::view_or_value key_alt_name)
Removes a keyAltName from the keyAltNames array of the key document in the key vault collection with ...
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > get_key(bsoncxx::v_noabi::types::bson_value::view_or_value id)
Finds a single key document with the given UUID (BSON binary subtype 0x04).
collection create_encrypted_collection(database const &db, std::string const &coll_name, bsoncxx::v_noabi::document::view const &options, bsoncxx::v_noabi::document::value &out_options, std::string const &kms_provider, bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const &masterkey=bsoncxx::v_noabi::stdx::nullopt)
Create a collection with client-side-encryption enabled, automatically filling any datakeys for encry...
bsoncxx::v_noabi::document::value encrypt_expression(bsoncxx::v_noabi::document::view_or_value expr, options::encrypt const &opts)
Encrypts a Match Expression or Aggregate Expression to query a range index.
mongocxx::v_noabi::cursor get_keys()
Finds all documents in the key vault collection.
client_encryption(options::client_encryption opts)
Creates a client_encryption object.
A MongoDB collection.
Definition collection.hpp:87
A cursor over the documents returned by a query to a MongoDB server.
Definition cursor.hpp:42
A MongoDB database.
Definition database.hpp:46
Declares mongocxx::v_noabi::client_encryption.
Declares mongocxx::v_noabi::collection.
Provides mongocxx::v_noabi::cursor.
Provides mongocxx::v_noabi::options::data_key.
Declares mongocxx::v_noabi::database.
Provides mongocxx::v_noabi::options::encrypt.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing options to use with various commands.
Declares entities representing the result of various commands.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v_noabi::options::client_encryption.
Provides mongocxx::v_noabi::options::rewrap_many_datakey.
Provides mongocxx::v_noabi::result::delete_result.
Provides mongocxx::v_noabi::result::rewrap_many_datakey.
Provides bsoncxx::v_noabi::types::bson_value::value.
Provides bsoncxx::v_noabi::types::bson_value::view.