PKIFMediatorSerializer.cpp File Reference


Detailed Description

Subsystem: PKIF Resources

Module: CPKIFMediatorSerializer

Id
PKIFMediatorSerializer.cpp 12010 2010-11-04 19:14:02Z agalustyan

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>

Include dependency graph for PKIFMediatorSerializer.cpp:

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)


Function Documentation

CPKIFOIDPtr g_id_swb_pkc_best_cert_path3 ( new   CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.1"))  ) 

CPKIFOIDPtr g_id_swb_pkc_cert3 ( new   CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.10"))  ) 

CPKIFOIDPtr g_id_swb_pkc_revocation_info3 ( new   CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.2"))  ) 

CPKIFOIDPtr g_idSwbErsPartialCertPath3 ( new   CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.18"))  ) 

CPKIFOIDPtr g_idSwbErsPkcCert3 ( new   CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.16"))  ) 

CPKIFOIDPtr g_idSwbErsRevocationInfo3 ( new   CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.19"))  ) 

CPKIFOIDPtr g_idSwbPartialCertPath3 ( new   CPKIFOIDCPKIFStringPtr(new std::string("1.3.6.1.5.5.7.18.15"))  ) 

const wxString& GetBufferAsAscii ( const CPKIFBufferPtr &  in,
wxString &  out 
)

Interface: External

This function converts buffer to ASCII string

Returns:
Buffer containing converted ASCII string

CPKIFBufferPtr GetBufferFromAscii ( wxString &  in  ) 

Interface: External

This function converts ASCII string to a buffer

Returns:
Buffer containing converted ASCII string

CPKIFCredentialPtr GetCredential ( IPKIFMediatorPtr m,
const char *  wxCredBuf 
)

Interface: External

This function returns a credendial handle based on credential id and a mediator set

Returns:
None
Parameters:
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

Returns:
None

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 
)

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

Returns:
None

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

Returns:
None

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

Returns:
None

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 
)

void SaveRevocationStatusComponents ( IPKIFMediatorPtr m,
wxConfigBase *  conf 
)

Interface: Module

This function saves revocation status of a mediator colleaction to a registry tree or a file

Returns:
None

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 
)

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

Returns:
None

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().


Generated on Mon Nov 15 11:18:27 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6