19 #include <mongocxx/options/tls-fwd.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <bsoncxx/string/view_or_value.hpp>
23 #include <mongocxx/stdx.hpp>
25 #include <mongocxx/config/prelude.hpp>
54 const stdx::optional<bsoncxx::v_noabi::string::view_or_value>&
pem_file()
const;
73 const stdx::optional<bsoncxx::v_noabi::string::view_or_value>&
pem_password()
const;
93 const stdx::optional<bsoncxx::v_noabi::string::view_or_value>&
ca_file()
const;
112 const stdx::optional<bsoncxx::v_noabi::string::view_or_value>&
ca_dir()
const;
131 const stdx::optional<bsoncxx::v_noabi::string::view_or_value>&
crl_file()
const;
153 stdx::optional<bsoncxx::v_noabi::string::view_or_value> _pem_file;
154 stdx::optional<bsoncxx::v_noabi::string::view_or_value> _pem_password;
155 stdx::optional<bsoncxx::v_noabi::string::view_or_value> _ca_file;
156 stdx::optional<bsoncxx::v_noabi::string::view_or_value> _ca_dir;
157 stdx::optional<bsoncxx::v_noabi::string::view_or_value> _crl_file;
158 stdx::optional<bool> _allow_invalid_certificates;
165 #include <mongocxx/config/postlude.hpp>
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:38
Class representing the optional arguments to a MongoDB driver client (TLS)
Definition: tls.hpp:34
tls & ca_file(bsoncxx::v_noabi::string::view_or_value ca_file)
The path to the .pem file that contains the root certificate chain from the Certificate Authority.
tls & pem_file(bsoncxx::v_noabi::string::view_or_value pem_file)
The path to the .pem file containing a public key certificate and its associated private key.
tls & pem_password(bsoncxx::v_noabi::string::view_or_value pem_password)
The pass phrase used to decrypt an encrypted PEM file.
tls & allow_invalid_certificates(bool allow_invalid_certificates)
If true, the driver will not verify the server's CA file.
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & ca_dir() const
Retrieves the current path to the CA directory.
tls & ca_dir(bsoncxx::v_noabi::string::view_or_value ca_dir)
The path to the Certificate Authority directory.
tls & crl_file(bsoncxx::v_noabi::string::view_or_value crl_file)
The path to the .pem file that contains revoked certificates.
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & crl_file() const
Retrieves the current path to the .pem file that contains revoked certificates.
const stdx::optional< bool > & allow_invalid_certificates() const
Retrieves whether or not the driver will check the server's CA file.
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & pem_password() const
Retrieves the current decryption pass phrase.
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & pem_file() const
Retrieves the current path to the .pem file.
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & ca_file() const
Retrieves the current path to the CA file.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19