Module: CPKIFMediatorSerializer
Definition in file PKIFMediatorSerializer.cpp.
#include "PKIFMediatorSerializer.h"
#include "PathSettingsSerializer.h"
#include "PKIFCryptUtils.h"
#include "pkif.h"
#include "PKIFAiaOrSiaRetrieval.h"
#include "PKIFReversiblePathBuilder.h"
#include "PKIFNSSCertUpdate.h"
#include "PKIFNSSCRLUpdate.h"
#include "PKIFNSSRepository.h"
#include "PKIFNSSTrustStore.h"
#include "PKIFNSS.h"
#include "PKIFNSSRaw.h"
#include "PKIFCryptoPP.h"
#include "PKIFCryptoPPRaw.h"
#include "PKIFBase64.h"
#include "PKIFSynonymousSourceStore.h"
#include "CSingletonLDAPConnection.h"
#include "HttpServerBlacklist.h"
#include "LibSCVPGuard.h"
#include "PKIFEnums.h"
#include "ContentInfo.h"
#include "wx/config.h"
#include "wx/fileconf.h"
#include "wx/log.h"
#include "PRStringUtils.h"
#include <boost/scoped_array.hpp>
Go to the source code of this file.
Functions | |
void | SaveSettings_wx (IPKIFMediatorPtr &m, wxConfigBase *conf, const char *localFile, bool useFile, bool bAllUsers, const char *pathRelToCompanyApp) |
void | SaveSettings_wx (CPKIFPathSettingsPtr &settingsToSave, wxConfigBase *conf, const char *localFile, bool useFile, bool bAllUsers, const char *pathRelToCompanyApp) |
CPKIFOIDPtr | g_id_swb_pkc_best_cert_path3 (new CPKIFOID(CPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.1")))) |
CPKIFOIDPtr | g_id_swb_pkc_revocation_info3 (new CPKIFOID(CPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.2")))) |
CPKIFOIDPtr | g_id_swb_pkc_cert3 (new CPKIFOID(CPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.10")))) |
CPKIFOIDPtr | g_idSwbPartialCertPath3 (new CPKIFOID(CPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.15")))) |
CPKIFOIDPtr | g_idSwbErsPkcCert3 (new CPKIFOID(CPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.16")))) |
CPKIFOIDPtr | g_idSwbErsPartialCertPath3 (new CPKIFOID(CPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.18")))) |
CPKIFOIDPtr | g_idSwbErsRevocationInfo3 (new CPKIFOID(CPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.19")))) |
void | SavePathProcessingComponents (IPKIFMediatorPtr &m, wxConfigBase *conf, const char *localFile, bool useFile, bool bAllUsers) |
void | SaveStorageAndRetrievalComponents (IPKIFMediatorPtr &m, wxConfigBase *conf) |
void | SaveCryptoComponents (IPKIFMediatorPtr &m, wxConfigBase *conf) |
void | SaveRevocationStatusComponents (IPKIFMediatorPtr &m, wxConfigBase *conf) |
void | LoadPathProcessingComponents (IPKIFMediatorPtr &m, wxConfigBase *conf, const char *localFile, bool useFile, bool bAllUsers) |
void | LoadStorageAndRetrievalComponents (IPKIFMediatorPtr &m, wxConfigBase *conf) |
void | LoadCryptoComponents (IPKIFMediatorPtr &m, wxConfigBase *conf) |
void | LoadRevocationStatusComponents (IPKIFMediatorPtr &m, wxConfigBase *conf) |
const wxString & | GetBufferAsAscii (const CPKIFBufferPtr &in, wxString &out) |
CPKIFBufferPtr | GetBufferFromAscii (wxString &in) |
CPKIFCredentialPtr | GetCredential (IPKIFMediatorPtr &m, const char *wxCredBuf) |
CPKIFOIDPtr g_id_swb_pkc_best_cert_path3 | ( | new | CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.1")) | ) |
Referenced by LoadPathProcessingComponents(), and SavePathProcessingComponents().
CPKIFOIDPtr g_id_swb_pkc_cert3 | ( | new | CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.10")) | ) |
Referenced by LoadPathProcessingComponents(), and SavePathProcessingComponents().
CPKIFOIDPtr g_id_swb_pkc_revocation_info3 | ( | new | CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.2")) | ) |
Referenced by LoadPathProcessingComponents(), and SavePathProcessingComponents().
CPKIFOIDPtr g_idSwbErsPartialCertPath3 | ( | new | CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.18")) | ) |
Referenced by LoadPathProcessingComponents(), and SavePathProcessingComponents().
CPKIFOIDPtr g_idSwbErsPkcCert3 | ( | new | CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.16")) | ) |
Referenced by LoadPathProcessingComponents(), and SavePathProcessingComponents().
CPKIFOIDPtr g_idSwbErsRevocationInfo3 | ( | new | CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.19")) | ) |
Referenced by LoadPathProcessingComponents(), and SavePathProcessingComponents().
CPKIFOIDPtr g_idSwbPartialCertPath3 | ( | new | CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.15")) | ) |
Referenced by LoadPathProcessingComponents(), and SavePathProcessingComponents().
const wxString& GetBufferAsAscii | ( | const CPKIFBufferPtr & | in, | |
wxString & | out | |||
) |
Interface: External
This function converts buffer to ASCII string
CPKIFBufferPtr GetBufferFromAscii | ( | wxString & | in | ) |
Interface: External
This function converts ASCII string to a buffer
CPKIFCredentialPtr GetCredential | ( | IPKIFMediatorPtr & | m, | |
const char * | wxCredBuf | |||
) |
Interface: External
This function returns a credendial handle based on credential id and a mediator set
m | [in]Smart pointer to a IPKIFMediator object containing mediator colleaction |
wxCredBuf | [in]String identifying the credential |
Definition at line 2440 of file PKIFMediatorSerializer.cpp.
References c, CPKIFCryptoMediator2::GetColleagues(), and MakeDefaultMediator().
Referenced by LoadPathProcessingComponents(), and LoadRevocationStatusComponents().
void LoadCryptoComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf | |||
) |
Interface: Module
This function loads crypto componets of a mediator colleaction from a registry tree or a file
Definition at line 1037 of file PKIFMediatorSerializer.cpp.
References CPKIFCryptoMediator2::AddColleague(), and CPKIFBCryptGuard::IsCNGAvailable().
Referenced by CPKIFMediatorSerializer::LoadSettings().
void LoadPathProcessingComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf, | |||
const char * | localFile, | |||
bool | useFile, | |||
bool | bAllUsers | |||
) |
Interface: Module
This function loads path processing componets of a mediator colleaction from a registry tree or a file
Definition at line 294 of file PKIFMediatorSerializer.cpp.
References CPKIFPathProcessingMediator2::AddColleague(), IPKIFScvpClient::AddNamespace(), B64Decode(), g_id_swb_pkc_best_cert_path3(), g_id_swb_pkc_cert3(), g_id_swb_pkc_revocation_info3(), g_idSwbErsPartialCertPath3(), g_idSwbErsPkcCert3(), g_idSwbErsRevocationInfo3(), g_idSwbPartialCertPath3(), GetCredential(), CLibSCVPGuard::IsSCVPAvailable(), CPKIFPathSettingsSerializer::LoadSettings(), CPKIFMediatorSerializer::LoadSettings(), PKIFENUMS::PBD_FORWARD, PKIFENUMS::PBD_REVERSE, IPKIFScvpClient::SetEvidenceRecordVerifier(), IPKIFScvpClient::SetFetchValPolWhenLoading(), IPKIFScvpClient::SetGenerateNonce(), IPKIFScvpClient::SetMediator(), IPKIFScvpClient::SetPathSettings(), IPKIFScvpClient::SetPathSettingsForValPol(), IPKIFScvpClient::SetRequireNonceMatch(), IPKIFScvpClient::SetRequireSignedDPD(), IPKIFScvpClient::SetResponderUrl(), IPKIFScvpClient::SetSigningCredential(), IPKIFScvpClient::SetValPol(), IPKIFScvpClient::SetWantBacks(), and wxASCIIHelper::to_chars().
Referenced by CPKIFMediatorSerializer::LoadSettings().
void LoadRevocationStatusComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf | |||
) |
Interface: Module
This function loads revocation status componets of a mediator colleaction from a registry tree or a file
Definition at line 1160 of file PKIFMediatorSerializer.cpp.
References CPKIFRevocationStatusMediator2::AddColleague(), B64Decode(), GetBufferFromAscii(), GetCredential(), CPKIFRevocationStatusMediator2::SetCacheCertStatus(), and wxASCIIHelper::to_chars().
Referenced by CPKIFMediatorSerializer::LoadSettings().
void LoadStorageAndRetrievalComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf | |||
) |
Interface: Module
This function loads storage and retrieval componets of a mediator colleaction from a registry tree or a file
Definition at line 644 of file PKIFMediatorSerializer.cpp.
References PKIFHTTP::AddBlacklistedHttpServer(), PKIFLDAP::AddBlacklistedServer(), CPKIFCacheMediator2::AddColleague(), B64Decode(), PKIFENUMS::CA, PKIFHTTP::ClearHttpServerBlacklist(), PKIFLDAP::ClearServerBlacklist(), g_defCACCAPITrustStore, and wxASCIIHelper::to_chars().
Referenced by CPKIFMediatorSerializer::LoadSettings().
void SaveCryptoComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf | |||
) |
Interface: Module
This function saves crypto components of a mediator colleaction to a registry tree or a file
Definition at line 2080 of file PKIFMediatorSerializer.cpp.
References c, CPKIFCryptoMediator2::GetColleagues(), GetCurrentNSSDBDir(), CPKIFBCryptGuard::IsCNGAvailable(), IsNSSDBInitialized(), and WXCASTCHARS.
Referenced by SaveSettings_wx().
void SavePathProcessingComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf, | |||
const char * | localFile, | |||
bool | useFile, | |||
bool | bAllUsers | |||
) |
Interface: Module
This function saves path processing components of a mediator colleaction to a registry tree or a file
Definition at line 1505 of file PKIFMediatorSerializer.cpp.
References B64Encode(), c, CPKIFGeneralName::DIRECTORYNAME, g_id_swb_pkc_best_cert_path3(), g_id_swb_pkc_cert3(), g_id_swb_pkc_revocation_info3(), g_idSwbErsPartialCertPath3(), g_idSwbErsPkcCert3(), g_idSwbErsRevocationInfo3(), g_idSwbPartialCertPath3(), CPKIFPathProcessingMediator2::GetColleagues(), IPKIFScvpClient::GetEvidenceRecordVerifier(), IPKIFScvpClient::GetFetchValPolWhenLoading(), IPKIFScvpClient::GetGenerateNonce(), IPKIFScvpClient::GetMediator(), IPKIFScvpClient::GetNamespaces(), IPKIFScvpClient::GetPathSettings(), IPKIFScvpClient::GetPathSettingsForValPol(), IPKIFScvpClient::GetRequireNonceMatch(), IPKIFScvpClient::GetRequireSignedDPD(), IPKIFScvpClient::GetResponderUrl(), IPKIFScvpClient::GetSigningCredential(), IPKIFScvpClient::GetValPol(), IPKIFScvpClient::GetWantBacks(), CLibSCVPGuard::IsSCVPAvailable(), PKIFENUMS::PBD_REVERSE, SaveSettings_wx(), and WXCASTCHARS.
Referenced by SaveSettings_wx().
void SaveRevocationStatusComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf | |||
) |
Interface: Module
This function saves revocation status of a mediator colleaction to a registry tree or a file
Definition at line 2172 of file PKIFMediatorSerializer.cpp.
References B64Encode(), c, GetBufferAsAscii(), CPKIFRevocationStatusMediator2::GetCacheCertStatus(), CPKIFRevocationStatusMediator2::GetColleagues(), and WXCASTCHARS.
Referenced by SaveSettings_wx().
void SaveSettings_wx | ( | CPKIFPathSettingsPtr & | settingsToSave, | |
wxConfigBase * | conf, | |||
const char * | localFile, | |||
bool | useFile, | |||
bool | bAllUsers, | |||
const char * | pathRelToCompanyApp | |||
) |
void SaveSettings_wx | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf, | |||
const char * | localFile, | |||
bool | useFile, | |||
bool | bAllUsers, | |||
const char * | pathRelToCompanyApp | |||
) |
Definition at line 2350 of file PKIFMediatorSerializer.cpp.
References SaveCryptoComponents(), SavePathProcessingComponents(), SaveRevocationStatusComponents(), and SaveStorageAndRetrievalComponents().
void SaveStorageAndRetrievalComponents | ( | IPKIFMediatorPtr & | m, | |
wxConfigBase * | conf | |||
) |
Interface: Module
This function saves storage and retrieval components of a mediator colleaction to a registry tree or a file
Definition at line 1786 of file PKIFMediatorSerializer.cpp.
References B64Encode(), c, g_defCACCAPIStore, g_defCACCAPITrustStore, CPKIFTrustRoot::GetCert(), CPKIFCacheMediator2::GetColleagues(), GetCurrentNSSDBDir(), PKIFHTTP::GetHttpServerBlacklist(), PKIFLDAP::GetServerBlacklist(), IsNSSDBInitialized(), and WXCASTCHARS.
Referenced by SaveSettings_wx().