MongoDB C++ Driver mongocxx-3.11.0
|
#include <mongocxx/v_noabi/mongocxx/options/tls.hpp>
Class representing the optional arguments to a MongoDB driver client (TLS)
Public Member Functions | |
const stdx::optional< bool > & | allow_invalid_certificates () const |
Retrieves whether or not the driver will check the server's CA 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. | |
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & | ca_file () const |
Retrieves the current path to the CA file. | |
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. | |
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. | |
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 > & | pem_file () const |
Retrieves the current path to the .pem file. | |
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. | |
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & | pem_password () const |
Retrieves the current decryption pass phrase. | |
tls & | pem_password (bsoncxx::v_noabi::string::view_or_value pem_password) |
The pass phrase used to decrypt an encrypted PEM file. | |
const stdx::optional< bool > & mongocxx::v_noabi::options::tls::allow_invalid_certificates | ( | ) | const |
Retrieves whether or not the driver will check the server's CA file.
tls & mongocxx::v_noabi::options::tls::allow_invalid_certificates | ( | bool | allow_invalid_certificates | ) |
If true, the driver will not verify the server's CA file.
allow_invalid_certificates | Whether or not to check the server's CA file. |
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & mongocxx::v_noabi::options::tls::ca_dir | ( | ) | const |
Retrieves the current path to the CA directory.
tls & mongocxx::v_noabi::options::tls::ca_dir | ( | bsoncxx::v_noabi::string::view_or_value | ca_dir | ) |
The path to the Certificate Authority directory.
ca_dir | The path to the CA directory. |
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & mongocxx::v_noabi::options::tls::ca_file | ( | ) | const |
Retrieves the current path to the CA file.
tls & mongocxx::v_noabi::options::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.
ca_file | The path to the CA file. |
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & mongocxx::v_noabi::options::tls::crl_file | ( | ) | const |
Retrieves the current path to the .pem file that contains revoked certificates.
tls & mongocxx::v_noabi::options::tls::crl_file | ( | bsoncxx::v_noabi::string::view_or_value | crl_file | ) |
The path to the .pem file that contains revoked certificates.
crl_file | The path to the PEM file. |
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & mongocxx::v_noabi::options::tls::pem_file | ( | ) | const |
Retrieves the current path to the .pem file.
tls & mongocxx::v_noabi::options::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.
pem_file | The path to the .pem file. |
const stdx::optional< bsoncxx::v_noabi::string::view_or_value > & mongocxx::v_noabi::options::tls::pem_password | ( | ) | const |
Retrieves the current decryption pass phrase.
tls & mongocxx::v_noabi::options::tls::pem_password | ( | bsoncxx::v_noabi::string::view_or_value | pem_password | ) |
The pass phrase used to decrypt an encrypted PEM file.
pem_password | The pass phrase. |