20#include <bsoncxx/document/view_or_value.hpp>
21#include <bsoncxx/stdx/optional.hpp>
22#include <mongocxx/stdx.hpp>
24#include <mongocxx/config/prelude.hpp>
27MONGOCXX_INLINE_NAMESPACE_BEGIN
29class client_encryption;
99 const stdx::optional<bsoncxx::document::view_or_value>&
master_key()
const;
157 MONGOCXX_PRIVATE
void* convert()
const;
159 stdx::optional<bsoncxx::document::view_or_value> _master_key;
160 std::vector<std::string> _key_alt_names;
161 stdx::optional<key_material_type> _key_material;
166MONGOCXX_INLINE_NAMESPACE_END
Class supporting operations for MongoDB Client-Side Field Level Encryption.
Definition client_encryption.hpp:39
Class representing options for data key generation for encryption.
Definition data_key.hpp:36
data_key & master_key(bsoncxx::document::view_or_value master_key)
Sets a KMS-specific key used to encrypt the new data key.
const stdx::optional< bsoncxx::document::view_or_value > & master_key() const
Gets the master key.
data_key & key_alt_names(std::vector< std::string > key_alt_names)
Sets an optional list of string alternate names used to reference the key.
const std::vector< std::string > & key_alt_names() const
Gets the alternate names for the data key.
const stdx::optional< key_material_type > & key_material()
Gets the keyMaterial as binary data.
std::vector< uint8_t > key_material_type
Sets the binary data for the key material.
Definition data_key.hpp:142
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:24