17 #include <bsoncxx/stdx/optional.hpp>
18 #include <bsoncxx/types.hpp>
19 #include <bsoncxx/types/bson_value/view_or_value.hpp>
20 #include <mongocxx/options/range.hpp>
21 #include <mongocxx/stdx.hpp>
23 #include <mongocxx/config/prelude.hpp>
26 MONGOCXX_INLINE_NAMESPACE_BEGIN
28 class client_encryption;
61 const stdx::optional<bsoncxx::types::bson_value::view_or_value>&
key_id()
const;
159 const stdx::optional<encryption_algorithm>&
algorithm()
const;
195 const stdx::optional<encryption_query_type>&
query_type()
const;
222 MONGOCXX_PRIVATE
void* convert()
const;
224 stdx::optional<bsoncxx::types::bson_value::view_or_value> _key_id;
225 stdx::optional<std::string> _key_alt_name;
226 stdx::optional<encryption_algorithm> _algorithm;
227 stdx::optional<int64_t> _contention_factor;
228 stdx::optional<encryption_query_type> _query_type;
229 stdx::optional<options::range> _range_opts;
233 MONGOCXX_INLINE_NAMESPACE_END
236 #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:39
Class representing options for explicit client-side encryption.
Definition: encrypt.hpp:35
encrypt & range_opts(options::range opts)
Sets the range options to use for encryption.
encrypt & query_type(encryption_query_type query_type)
Sets the query type to use for encryption.
const stdx::optional< std::string > & key_alt_name() const
Gets the current key alt name.
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...
encrypt & contention_factor(int64_t contention_factor)
Sets the contention factor to use for encryption.
const stdx::optional< int64_t > & contention_factor() const
Gets the current contention factor.
const stdx::optional< encryption_algorithm > & algorithm() const
Gets the current algorithm.
const stdx::optional< encryption_query_type > & query_type() const
Gets the current query type.
const stdx::optional< options::range > & range_opts() const
Gets the current range options.
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.
encryption_algorithm
Determines which AEAD_AES_256_CBC algorithm to use with HMAC_SHA_512 when encrypting data.
Definition: encrypt.hpp:89
encrypt & algorithm(encryption_algorithm algorithm)
Sets the algorithm to use for encryption.
encryption_query_type
queryType only applies when algorithm is "indexed" or "rangePreview".
Definition: encrypt.hpp:123
RangeOpts specifies index options for a Queryable Encryption field supporting "rangePreview" queries.
Definition: range.hpp:42
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24