17#include <bsoncxx/stdx/optional.hpp>
18#include <bsoncxx/types.hpp>
19#include <bsoncxx/types/bson_value/view_or_value.hpp>
20#include <mongocxx/stdx.hpp>
22#include <mongocxx/config/prelude.hpp>
25MONGOCXX_INLINE_NAMESPACE_BEGIN
27class 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;
129MONGOCXX_INLINE_NAMESPACE_END
132#include <mongocxx/config/postlude.hpp>
Class representing a view-or-value variant type.
Definition view_or_value.hpp:30
Class supporting operations for MongoDB Client-Side Field Level Encryption.
Definition client_encryption.hpp:31
Class representing options for explicit client-side encryption.
Definition encrypt.hpp:34
const stdx::optional< std::string > & key_alt_name() const
Gets the current key alt name.
encrypt & key_id(bsoncxx::types::bson_value::view_or_value key_id)
Sets the key to use for this encryption operation.
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...
const stdx::optional< bsoncxx::types::bson_value::view_or_value > & key_id() const
Gets the key_id.
encryption_algorithm
Determines which AEAD_AES_256_CBC algorithm to use with HMAC_SHA_512 when encrypting data.
Definition encrypt.hpp:80
encrypt & algorithm(encryption_algorithm algorithm)
Sets the algorithm to use for encryption.
const stdx::optional< encryption_algorithm > & algorithm() const
Gets the current algorithm.
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:24