#include <mongocxx/v1/encrypt_options.hpp>
Options related to explicit encryption for In-Use Encryption.
Supported fields include:
Public Types | |
| enum class | encryption_algorithm : std::uint8_t |
| An encryption algorithm. More... | |
| enum class | encryption_query_type : std::uint8_t |
| A query type. More... | |
Public Member Functions | |
| encrypt_options () | |
| Default initialization. | |
| encrypt_options (encrypt_options &&other) noexcept | |
| Move constructor. | |
| encrypt_options (encrypt_options const &other) | |
| Copy construction. | |
| ~encrypt_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< encryption_algorithm > | algorithm () const |
| Return the current "algorithm" field. | |
| encrypt_options & | algorithm (encryption_algorithm v) |
| Set the "algorithm" field. | |
| bsoncxx::v1::stdx::optional< std::int64_t > | contention_factor () const |
| Return the current "contentionFactor" field. | |
| encrypt_options & | contention_factor (std::int64_t v) |
| Set the "contentionFactor" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | key_alt_name () const |
| Return the "keyAltName" field. | |
| encrypt_options & | key_alt_name (std::string v) |
| Set the "keyAltName" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > | key_id () const |
| Return the current "keyId" field. | |
| encrypt_options & | key_id (bsoncxx::v1::types::value v) |
| Set the "keyId" field. | |
| encrypt_options & | operator= (encrypt_options &&other) noexcept |
| Move assignment. | |
| encrypt_options & | operator= (encrypt_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< encryption_query_type > | query_type () const |
| Return the current "queryType" field. | |
| encrypt_options & | query_type (encryption_query_type v) |
| Set the "queryType" field. | |
| bsoncxx::v1::stdx::optional< v1::range_options > | range_opts () const |
| Return the current "rangeOpts" field. | |
| encrypt_options & | range_opts (v1::range_options v) |
| Set the "rangeOpts" field. | |
| bsoncxx::v1::stdx::optional< v1::string_options > | string_opts () const |
| Return the current "stringOpts" field. | |
| encrypt_options & | string_opts (v1::string_options v) |
| Set the "stringOpts" field. | |
| bsoncxx::v1::stdx::optional< v1::text_options > | text_opts () const |
| Return the current "textOpts" field. | |
| encrypt_options & | text_opts (v1::text_options v) |
| Set the "textOpts" field. | |
|
strong |
An encryption algorithm.
| Enumerator | |
|---|---|
| k_deterministic | "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic" |
| k_random | "AEAD_AES_256_CBC_HMAC_SHA_512-Random" |
| k_indexed | "Indexed" |
| k_unindexed | "Unindexed" |
| k_range | "Range" |
| k_textPreview | "TextPreview"
|
| k_string | "String" |
|
strong |
A query type.
| Enumerator | |
|---|---|
| k_equality | "equalty" |
| k_range | "range" |
| k_prefixPreview | "prefixPreview"
|
| k_suffixPreview | "suffixPreview"
|
| k_substringPreview | "substringPreview"
|
| k_prefix | "prefix" |
| k_suffix | "suffix" |
| k_substring | "substring" |
| mongocxx::v1::encrypt_options::~encrypt_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::encrypt_options::encrypt_options | ( | encrypt_options const & | other | ) |
Copy construction.
| mongocxx::v1::encrypt_options::encrypt_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< encryption_algorithm > mongocxx::v1::encrypt_options::algorithm | ( | ) | const |
Return the current "algorithm" field.
| encrypt_options & mongocxx::v1::encrypt_options::algorithm | ( | encryption_algorithm | v | ) |
Set the "algorithm" field.
| bsoncxx::v1::stdx::optional< std::int64_t > mongocxx::v1::encrypt_options::contention_factor | ( | ) | const |
Return the current "contentionFactor" field.
| encrypt_options & mongocxx::v1::encrypt_options::contention_factor | ( | std::int64_t | v | ) |
Set the "contentionFactor" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::encrypt_options::key_alt_name | ( | ) | const |
Return the "keyAltName" field.
| encrypt_options & mongocxx::v1::encrypt_options::key_alt_name | ( | std::string | v | ) |
Set the "keyAltName" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > mongocxx::v1::encrypt_options::key_id | ( | ) | const |
Return the current "keyId" field.
| encrypt_options & mongocxx::v1::encrypt_options::key_id | ( | bsoncxx::v1::types::value | v | ) |
Set the "keyId" field.
| v | A bsoncxx::v1::types::binary_subtype::k_uuid. |
|
noexcept |
Move assignment.
| encrypt_options & mongocxx::v1::encrypt_options::operator= | ( | encrypt_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< encryption_query_type > mongocxx::v1::encrypt_options::query_type | ( | ) | const |
Return the current "queryType" field.
| encrypt_options & mongocxx::v1::encrypt_options::query_type | ( | encryption_query_type | v | ) |
Set the "queryType" field.
| bsoncxx::v1::stdx::optional< v1::range_options > mongocxx::v1::encrypt_options::range_opts | ( | ) | const |
Return the current "rangeOpts" field.
| encrypt_options & mongocxx::v1::encrypt_options::range_opts | ( | v1::range_options | v | ) |
Set the "rangeOpts" field.
| bsoncxx::v1::stdx::optional< v1::string_options > mongocxx::v1::encrypt_options::string_opts | ( | ) | const |
Return the current "stringOpts" field.
| encrypt_options & mongocxx::v1::encrypt_options::string_opts | ( | v1::string_options | v | ) |
Set the "stringOpts" field.
| bsoncxx::v1::stdx::optional< v1::text_options > mongocxx::v1::encrypt_options::text_opts | ( | ) | const |
Return the current "textOpts" field.
| encrypt_options & mongocxx::v1::encrypt_options::text_opts | ( | v1::text_options | v | ) |
Set the "textOpts" field.