MongoDB C++ Driver
mongocxx-3.6.2
|
17 #include <mongocxx/config/prelude.hpp>
19 #include <bsoncxx/stdx/optional.hpp>
20 #include <bsoncxx/types.hpp>
21 #include <bsoncxx/types/bson_value/view_or_value.hpp>
22 #include <mongocxx/stdx.hpp>
25 MONGOCXX_INLINE_NAMESPACE_BEGIN
27 class client_encryption;
109 const stdx::optional<encryption_algorithm>&
algorithm()
const;
117 const stdx::optional<bsoncxx::types::bson_value::view_or_value>&
key_id()
const;
121 MONGOCXX_PRIVATE
void* convert()
const;
123 stdx::optional<bsoncxx::types::bson_value::view_or_value> _key_id;
124 stdx::optional<std::string> _key_alt_name;
125 stdx::optional<encryption_algorithm> _algorithm;
129 MONGOCXX_INLINE_NAMESPACE_END
132 #include <mongocxx/config/postlude.hpp>
const stdx::optional< encryption_algorithm > & algorithm() const
Gets the current algorithm.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Class representing a view-or-value variant type.
Definition: view_or_value.hpp:30
encrypt & key_id(bsoncxx::types::bson_value::view_or_value key_id)
Sets the key to use for this encryption operation.
const stdx::optional< bsoncxx::types::bson_value::view_or_value > & key_id() const
Gets the key_id.
Class representing options for explicit client-side encryption.
Definition: encrypt.hpp:34
encrypt & key_alt_name(std::string name)
Sets a name by which to lookup a key from the key vault collection to use for this encryption operati...
encryption_algorithm
Determines which AEAD_AES_256_CBC algorithm to use with HMAC_SHA_512 when encrypting data.
Definition: encrypt.hpp:80
Definition: client_encryption.hpp:28
const stdx::optional< std::string > & key_alt_name() const
Gets the current key alt name.
encrypt & algorithm(encryption_algorithm algorithm)
Sets the algorithm to use for encryption.