CPKIFX509ExtensionMediator2 Class Reference

#include <PKIFX509Extensions2.h>

Inheritance diagram for CPKIFX509ExtensionMediator2:

Inheritance graph
[legend]
Collaboration diagram for CPKIFX509ExtensionMediator2:

Collaboration graph
[legend]

List of all members.


Detailed Description

The CPKIFX509ExtensionMediator2 class is an internally used mediator class that creates instances of classes representing extension objects. Instances of this class are used internally when parsing certificates, CRLs, OCSP messages or TSP messages.

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

Constructor & Destructor Documentation

CPKIFX509ExtensionMediator2::~CPKIFX509ExtensionMediator2 ( void   ) 

Interface: External

The function destroys an instance of CPKIFX509ExtensionMediator2.

Returns:
None

Definition at line 101 of file PKIFX509Extensions2.cpp.

References _ASSERT, and Terminate().


Member Function Documentation

CPKIFX509ExtensionMediator2 * CPKIFX509ExtensionMediator2::GetInstance ( void   )  [static]

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

Returns:
None
Exceptions:
CPKIFException(COMMON_ALREADY_INITIALIZED) 
Parameters:
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.

Returns:
None

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.

Returns:
A smart pointer to a CPKIFX509Extension object. Interface: External
This function parses a list of DER encoded extensions and adds them to the exts vector

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

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

Returns:
None

Definition at line 530 of file PKIFX509Extensions2.cpp.

Referenced by CPKIFX509ExtensionMediator2Cleaner::~CPKIFX509ExtensionMediator2Cleaner().


The documentation for this class was generated from the following files:

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