#include <PKIFX509Extensions2.h>
This class is not used directly by applications.
TSP-enforcing: No
Definition at line 31 of file PKIFX509Extensions2.h.
Public Member Functions | |
~CPKIFX509ExtensionMediator2 () | |
void | InitializeMediator (std::vector< CPKIFException * > *errorInfo=NULL) |
void | Terminate () |
void | ParseExtensions (CPKIFBufferPtr &buf, std::vector< CPKIFX509ExtensionPtr > &exts) |
void | AddColleague (IPKIFColleague *module, bool transferOwnership) |
Static Public Member Functions | |
static CPKIFX509ExtensionMediator2 * | GetInstance (void) |
static void | CPKIFX509ExtensionMediator2Destructor () |
CPKIFX509ExtensionMediator2::~CPKIFX509ExtensionMediator2 | ( | void | ) |
Interface: External
The function destroys an instance of CPKIFX509ExtensionMediator2.
Definition at line 101 of file PKIFX509Extensions2.cpp.
References _ASSERT, and Terminate().
CPKIFX509ExtensionMediator2 * CPKIFX509ExtensionMediator2::GetInstance | ( | void | ) | [static] |
Interface: External
This function returns an instance of CPKIFX509ExtensionMediator2 class
Definition at line 74 of file PKIFX509Extensions2.cpp.
References InitializeMediator().
Referenced by anythingGoes(), CPKIFCapiCRLEntryImpl::populateExtensionsVector(), CPKIFGeneralCRLDetailsPanel::PopulateListExtensions(), and CPKIFPathValidator2::ValidatePath().
void CPKIFX509ExtensionMediator2::InitializeMediator | ( | std::vector< CPKIFException * > * | errorInfo = NULL |
) | [virtual] |
Interface: External
The errorInfo is set to NULL by default. This function will initialize an instance to include parsing support for all common certificate and CRL extensions. The following extensions (represented by the PKIF class associated with the extension) are serviced by this class by default:
CPKIFAuthorityKeyIdentifier, CPKIFSubjectKeyIdentifier, CPKIFKeyUsage, CPKIFExtendedKeyUsage, CPKIFPrivateKeyUsage, CPKIFPolicyInformationSet, CPKIFPolicyMappings, CPKIFSubjectAltName, CPKIFIssuerAltName, CPKIFBasicConstraints, CPKIFNameConstraints, CPKIFPolicyConstraints, CPKIFInhibitAnyPolicy, CPKIFCRLNumber, CPKIFCRLReason, CPKIFHoldInstructionCode, CPKIFInvalidityDate, CPKIFCRLStreamIdentifier, CPKIFCRLDistributionPoints, CPKIFIssuingDistributionPoint, CPKIFCertificateIssuer, CPKIFDeltaCRLIndicator, CPKIFFreshestCRL, CPKIFAuthorityInfoAccess
CPKIFException(COMMON_ALREADY_INITIALIZED) |
errorInfo | [in] A pointer to a vector of pointers to CPKIFException objects. |
Reimplemented from IPKIFColleague.
Definition at line 179 of file PKIFX509Extensions2.cpp.
References IPKIFColleague::AddParent(), COMMON_ALREADY_INITIALIZED, IPKIFColleague::Initialize(), and LOG_STRING_DEBUG.
Referenced by GetInstance().
void CPKIFX509ExtensionMediator2::Terminate | ( | ) | [virtual] |
Interface: External
This function terminates an instance of CPKIFX509ExtensionMediator2.
Reimplemented from IPKIFColleague.
Definition at line 136 of file PKIFX509Extensions2.cpp.
References FreeAdditionalModules().
Referenced by ~CPKIFX509ExtensionMediator2().
void CPKIFX509ExtensionMediator2::ParseExtensions | ( | CPKIFBufferPtr & | buf, | |
std::vector< CPKIFX509ExtensionPtr > & | exts | |||
) | [virtual] |
Interface: External
This function returns a smart pointer to a CPKIFX509Extension object.
buf | [in] A reference to a smart pointer to CPKIFBuffer object containing the list of DER encoded extensions |
exts | [out] Vector of smart pointers to CPKIFX509Extension obejcts |
Implements IPKIFParseExtensions.
Definition at line 397 of file PKIFX509Extensions2.cpp.
References CACASNWRAPPER_CREATE, and ICACExtensionFactory::refOID().
void CPKIFX509ExtensionMediator2::AddColleague | ( | IPKIFColleague * | module, | |
bool | transferOwnership | |||
) |
Interface: External
This function adds a colleague to CPKIFX509ExtensionMediator2 object
module | [in] Pointer to an IPKIFColleague object |
transferOwnership | [in] Boolean value indicating whether the mediator should take ownership of the object passed as module for deletion purposes |
Definition at line 489 of file PKIFX509Extensions2.cpp.
References IPKIFColleague::AddParent(), IPKIFColleague::Initialize(), LOG_STRING_DEBUG, and TOOLKIT_PATH_MEDIATOR.
void CPKIFX509ExtensionMediator2::CPKIFX509ExtensionMediator2Destructor | ( | ) | [static] |
Interface: Subsystem
This function destroys the CSingletonLDAPConnection instance in will be called then PKIF dll is unloaded.
Definition at line 530 of file PKIFX509Extensions2.cpp.
Referenced by CPKIFX509ExtensionMediator2Cleaner::~CPKIFX509ExtensionMediator2Cleaner().