20 #include <mongocxx/client_encryption-fwd.hpp>
21 #include <mongocxx/options/data_key-fwd.hpp>
23 #include <bsoncxx/document/view_or_value.hpp>
24 #include <bsoncxx/stdx/optional.hpp>
25 #include <mongocxx/stdx.hpp>
27 #include <mongocxx/config/prelude.hpp>
100 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
master_key()
const;
157 friend ::mongocxx::v_noabi::client_encryption;
159 MONGOCXX_PRIVATE
void* convert()
const;
161 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _master_key;
162 std::vector<std::string> _key_alt_names;
163 stdx::optional<key_material_type> _key_material;
171 #if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
172 #include <mongocxx/config/postlude.hpp>
Class representing options for data key generation for encryption.
Definition: data_key.hpp:36
data_key & master_key(bsoncxx::v_noabi::document::view_or_value master_key)
Sets a KMS-specific key used to encrypt the new data key.
std::vector< uint8_t > key_material_type
Sets the binary data for the key material.
Definition: data_key.hpp:143
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & master_key() const
Gets the master key.
const stdx::optional< key_material_type > & key_material()
Gets the keyMaterial as binary data.
const std::vector< std::string > & key_alt_names() const
Gets the alternate names for the data 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.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19