#include <mongocxx/v1/tls.hpp>
Options related to TLS configuration.
Supported fields include:
Public Member Functions | |
| tls () | |
| Default initialization. | |
| tls (tls &&other) noexcept | |
| Move constructor. | |
| tls (tls const &other) | |
| Copy construction. | |
| ~tls () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bool > | allow_invalid_certificates () const |
| Return the current "weak_cert_validation" field. | |
| tls & | allow_invalid_certificates (bool v) |
| Set the "weak_cert_validation" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | ca_dir () const |
| Return the current "ca_dir" field. | |
| tls & | ca_dir (std::string v) |
| Set the "ca_dir" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | ca_file () const |
| Retur the current "ca_file" field. | |
| tls & | ca_file (std::string v) |
| Set the "ca_file" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | crl_file () const |
| Return the current "crl_file" field. | |
| tls & | crl_file (std::string v) |
| Set the "crl_file" field. | |
| tls & | operator= (tls &&other) noexcept |
| Move assignment. | |
| tls & | operator= (tls const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | pem_file () const |
| Return the current "pem_file" field. | |
| tls & | pem_file (std::string v) |
| Set the "pem_file" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | pem_password () const |
| Return the current "pem_pwd" field. | |
| tls & | pem_password (std::string v) |
| Set the "pem_pwd" field. | |
| mongocxx::v1::tls::~tls | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::tls::tls | ( | tls const & | other | ) |
Copy construction.
| mongocxx::v1::tls::tls | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::tls::allow_invalid_certificates | ( | ) | const |
Return the current "weak_cert_validation" field.
| tls & mongocxx::v1::tls::allow_invalid_certificates | ( | bool | v | ) |
Set the "weak_cert_validation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::tls::ca_dir | ( | ) | const |
Return the current "ca_dir" field.
| tls & mongocxx::v1::tls::ca_dir | ( | std::string | v | ) |
Set the "ca_dir" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::tls::ca_file | ( | ) | const |
Retur the current "ca_file" field.
| tls & mongocxx::v1::tls::ca_file | ( | std::string | v | ) |
Set the "ca_file" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::tls::crl_file | ( | ) | const |
Return the current "crl_file" field.
| tls & mongocxx::v1::tls::crl_file | ( | std::string | v | ) |
Set the "crl_file" field.
Move assignment.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::tls::pem_file | ( | ) | const |
Return the current "pem_file" field.
| tls & mongocxx::v1::tls::pem_file | ( | std::string | v | ) |
Set the "pem_file" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::tls::pem_password | ( | ) | const |
Return the current "pem_pwd" field.
| tls & mongocxx::v1::tls::pem_password | ( | std::string | v | ) |
Set the "pem_pwd" field.