67 const stdx::optional<
bsoncxx::v_noabi::types::bson_value::view_or_value>&)
214 friend ::mongocxx::v_noabi::client_encryption;
216 void* convert()
const;
A polyfill for std::optional<T>.
Definition optional.hpp:874
Class representing options for explicit client-side encryption.
Definition encrypt.hpp:38
const stdx::optional< encryption_algorithm > & algorithm() const
Gets the current algorithm.
const stdx::optional< std::string > & key_alt_name() const
Gets the current key alt name.
const stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & key_id() const
Gets the key_id.
encrypt & algorithm(encryption_algorithm algorithm)
Sets the algorithm to use for encryption.
encrypt & query_type(encryption_query_type query_type)
Sets the query type to use for encryption.
const stdx::optional< encryption_query_type > & query_type() const
Gets the current query type.
encryption_query_type
queryType only applies when algorithm is "indexed" or "range". It is an error to set queryType when a...
Definition encrypt.hpp:128
@ k_equality
Use query type "equality".
encrypt & contention_factor(int64_t contention_factor)
Sets the contention factor to use for encryption. contentionFactor only applies when algorithm is "In...
encrypt & range_opts(options::range opts)
Sets the range options to use for encryption.
const stdx::optional< int64_t > & contention_factor() const
Gets the current contention factor.
encryption_algorithm
Determines which AEAD_AES_256_CBC algorithm to use with HMAC_SHA_512 when encrypting data.
Definition encrypt.hpp:97
@ k_deterministic
Use deterministic encryption.
@ k_range
Use range encryption.
@ k_indexed
Use indexed encryption.
@ k_random
Use randomized encryption.
@ k_unindexed
Use unindexed encryption.
const stdx::optional< options::range > & range_opts() const
Gets the current range options.
RangeOpts specifies index options for a Queryable Encryption field supporting "range" queries.
Definition range.hpp:42
Declares mongocxx::v_noabi::client_encryption.
Declares mongocxx::v_noabi::options::encrypt.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
The mongocxx macro guard postlude header.
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Provides std::optional-related polyfills for library API usage.
Provides mongocxx::v_noabi::options::range.
Redeclares bsoncxx::v_noabi::stdx in mongocxx::v_noabi::stdx for internal use.
Provides bsoncxx::v_noabi::types::bson_value::view_or_value.
Provides entities used to represent BSON types.