Provides SSL root certificate information.
The SSL root certification information is provided in two ways:
This provider will be used by CYITCPSecureSocket, CYIWebSocket and CYIHTTPService when SSL communcation is required.
#include <network/YiSSLRootCertificateProvider.h>
Classes | |
| struct | Certificate |
Public Types | |
| enum | CERTIFICATE_FORMAT { FORMAT_PEM, FORMAT_X509_ENCODED } |
Public Member Functions | |
| virtual | ~CYISSLRootCertificateProvider () |
| void | SetRootCertificateBundleFilePath (const CYIString &rFilePath) |
| const CYIString & | GetRootCertificateBundleFilePath () const |
| const std::vector< Certificate > & | GetSystemRootCertificates () const |
Static Public Member Functions | |
| static CYISSLRootCertificateProvider * | GetInstance () |
The format of the root certificate contained in the root certificate.
| Enumerator | |
|---|---|
| FORMAT_PEM |
The root certificate is in PEM format. |
| FORMAT_X509_ENCODED |
The root certificate is in encoded X509 format. |
|
virtual |
|
static |
| const CYIString& CYISSLRootCertificateProvider::GetRootCertificateBundleFilePath | ( | ) | const |
Returns the file path to the SSL root certificate bundle.
| const std::vector<Certificate>& CYISSLRootCertificateProvider::GetSystemRootCertificates | ( | ) | const |
Returns the SSL root certificates that were loaded from the system root certificate store.
| void CYISSLRootCertificateProvider::SetRootCertificateBundleFilePath | ( | const CYIString & | rFilePath | ) |
Sets the file path to the SSL root certificate bundle to be used by the CYISSLRootCertificateProvider. This SSL root certificate bundle must be in PEM format.