19 #include <mongocxx/client-fwd.hpp>
20 #include <mongocxx/client_encryption-fwd.hpp>
21 #include <mongocxx/options/client_encryption-fwd.hpp>
23 #include <bsoncxx/document/view_or_value.hpp>
24 #include <bsoncxx/stdx/optional.hpp>
25 #include <mongocxx/stdx.hpp>
27 #include <mongocxx/config/prelude.hpp>
77 using ns_pair = std::pair<std::string, std::string>;
140 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
kms_providers()
const;
172 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
tls_opts()
const;
175 friend ::mongocxx::v_noabi::client_encryption;
177 MONGOCXX_PRIVATE
void* convert()
const;
179 stdx::optional<mongocxx::v_noabi::client*> _key_vault_client;
180 stdx::optional<ns_pair> _key_vault_namespace;
181 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _kms_providers;
182 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _tls_opts;
189 #include <mongocxx/config/postlude.hpp>
Class representing a client connection to MongoDB.
Definition: client.hpp:61
Class representing options for the object managing explicit client-side encryption.
Definition: client_encryption.hpp:36
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & kms_providers() const
Gets the KMS providers.
const stdx::optional< mongocxx::v_noabi::client * > & key_vault_client() const
Gets the key vault client.
client_encryption & tls_opts(bsoncxx::v_noabi::document::view_or_value tls_opts)
Sets the TLS options to use for client side encryption with a given KMS provider.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & tls_opts() const
Gets the TLS options.
const stdx::optional< ns_pair > & key_vault_namespace() const
Gets the key vault namespace.
std::pair< std::string, std::string > ns_pair
Sets the namespace to use to access the key vault collection, which contains all data keys used for e...
Definition: client_encryption.hpp:77
client_encryption & kms_providers(bsoncxx::v_noabi::document::view_or_value kms_providers)
Sets the KMS providers to use for client side encryption.
client_encryption & key_vault_client(mongocxx::v_noabi::client *client)
When the key vault collection is on a separate MongoDB cluster, sets the optional client to use to ro...
Class representing the optional arguments to a MongoDB driver client object.
Definition: client.hpp:38
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19