182 return _key_alt_names;
224 return _key_material;
231 std::vector<std::string> _key_alt_names;
246 return {std::move(v)};
A BSON document.
Definition value.hpp:46
A polyfill for std::optional<T>.
Definition optional.hpp:799
data_key()=default
Default initialization.
A Data Encryption Key (DEK) for In-Use Encryption.
Definition data_key_options.hpp:50
data_key_options & master_key(bsoncxx::v1::document::value master_key)
Set the "masterKey" field.
data_key_options & key_material(key_material_type key_material)
Set the "keyMaterial" field.
data_key_options & key_alt_names(std::vector< std::string > key_alt_names)
Set the "keyAltNames" field.
Used by mongocxx::v_noabi::client_encryption::create_data_key.
Definition data_key.hpp:45
operator v1::data_key_options() const
Convert to the mongocxx::v1 equivalent.
Definition data_key.hpp:60
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & master_key() const
Gets the master key.
Definition data_key.hpp:152
std::vector< std::string > const & key_alt_names() const
Gets the alternate names for the data key.
Definition data_key.hpp:181
data_key()=default
Default initialization.
bsoncxx::v_noabi::stdx::optional< key_material_type > const & key_material()
Gets the keyMaterial as binary data.
Definition data_key.hpp:223
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. If a key is created with a...
Definition data_key.hpp:170
std::vector< std::uint8_t > key_material_type
Represents binary data used to represent key material.
Definition data_key.hpp:188
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.
Definition data_key.hpp:141
data_key & key_material(key_material_type key_material)
Sets the binary data for the key material.
Definition data_key.hpp:209
Declares mongocxx::v_noabi::options::data_key.
Provides mongocxx::v1::data_key_options.
Provides bsoncxx::v_noabi::document::view_or_value.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
v_noabi::view_or_value< v_noabi::document::view, v_noabi::document::value > view_or_value
Equivalent to v_noabi::view_or_value<v_noabi::document::view, v_noabi::document::value>.
Definition view_or_value.hpp:30
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides bsoncxx::v1::document::value.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::client_encryption.