MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/stdx/optional.hpp>
20 #include <bsoncxx/string/view_or_value.hpp>
21 #include <mongocxx/stdx.hpp>
23 #include <mongocxx/config/prelude.hpp>
26 MONGOCXX_INLINE_NAMESPACE_BEGIN
32 class MONGOCXX_API
tls {
52 const stdx::optional<bsoncxx::string::view_or_value>&
pem_file()
const;
71 const stdx::optional<bsoncxx::string::view_or_value>&
pem_password()
const;
91 const stdx::optional<bsoncxx::string::view_or_value>&
ca_file()
const;
110 const stdx::optional<bsoncxx::string::view_or_value>&
ca_dir()
const;
129 const stdx::optional<bsoncxx::string::view_or_value>&
crl_file()
const;
151 stdx::optional<bsoncxx::string::view_or_value> _pem_file;
152 stdx::optional<bsoncxx::string::view_or_value> _pem_password;
153 stdx::optional<bsoncxx::string::view_or_value> _ca_file;
154 stdx::optional<bsoncxx::string::view_or_value> _ca_dir;
155 stdx::optional<bsoncxx::string::view_or_value> _crl_file;
156 stdx::optional<bool> _allow_invalid_certificates;
160 MONGOCXX_INLINE_NAMESPACE_END
163 #include <mongocxx/config/postlude.hpp>
const stdx::optional< bool > & allow_invalid_certificates() const
Retrieves whether or not the driver will check the server's CA file.
tls & pem_password(bsoncxx::string::view_or_value pem_password)
The pass phrase used to decrypt an encrypted PEM file.
tls & ca_dir(bsoncxx::string::view_or_value ca_dir)
The path to the Certificate Authority directory.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
const stdx::optional< bsoncxx::string::view_or_value > & pem_file() const
Retrieves the current path to the .pem file.
tls & allow_invalid_certificates(bool allow_invalid_certificates)
If true, the driver will not verify the server's CA file.
tls & ca_file(bsoncxx::string::view_or_value ca_file)
The path to the .pem file that contains the root certificate chain from the Certificate Authority.
const stdx::optional< bsoncxx::string::view_or_value > & crl_file() const
Retrieves the current path to the .pem file that contains revoked certificates.
const stdx::optional< bsoncxx::string::view_or_value > & pem_password() const
Retrieves the current decryption pass phrase.
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36
tls & crl_file(bsoncxx::string::view_or_value crl_file)
The path to the .pem file that contains revoked certificates.
const stdx::optional< bsoncxx::string::view_or_value > & ca_dir() const
Retrieves the current path to the CA directory.
const stdx::optional< bsoncxx::string::view_or_value > & ca_file() const
Retrieves the current path to the CA file.
Class representing the optional arguments to a MongoDB driver client (TLS)
Definition: tls.hpp:32
tls & pem_file(bsoncxx::string::view_or_value pem_file)
The path to the .pem file containing a public key certificate and its associated private key.