MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/document/view_or_value.hpp>
20 #include <bsoncxx/stdx/optional.hpp>
21 #include <mongocxx/stdx.hpp>
23 #include <mongocxx/config/prelude.hpp>
26 MONGOCXX_INLINE_NAMESPACE_BEGIN
29 class client_encryption;
77 using ns_pair = std::pair<std::string, std::string>;
121 const stdx::optional<bsoncxx::document::view_or_value>&
kms_providers()
const;
126 MONGOCXX_PRIVATE
void* convert()
const;
128 stdx::optional<mongocxx::client*> _key_vault_client;
129 stdx::optional<ns_pair> _key_vault_namespace;
130 stdx::optional<bsoncxx::document::view_or_value> _kms_providers;
134 MONGOCXX_INLINE_NAMESPACE_END
137 #include <mongocxx/config/postlude.hpp>
Class representing the optional arguments to a MongoDB driver client object.
Definition: client.hpp:35
client_encryption & key_vault_client(mongocxx::client *client)
When the key vault collection is on a separate MongoDB cluster, sets the optional client to use to ro...
Class representing options for the object managing explicit client-side encryption.
Definition: client_encryption.hpp:36
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Class representing a client connection to MongoDB.
Definition: client.hpp:58
const stdx::optional< bsoncxx::document::view_or_value > & kms_providers() const
Gets the KMS providers.
const stdx::optional< client * > & key_vault_client() const
Gets the key vault client.
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
Definition: client_encryption.hpp:28
client_encryption & kms_providers(bsoncxx::document::view_or_value kms_providers)
Sets the KMS providers to use for client side encryption.