CPKIFNSSCRLUpdate Class Reference

#include <PKIFNSSCRLUpdate.h>

Inheritance diagram for CPKIFNSSCRLUpdate:

Inheritance graph
[legend]
Collaboration diagram for CPKIFNSSCRLUpdate:

Collaboration graph
[legend]

List of all members.


Detailed Description

The CPKIFNSSCRLUpdate class can be used to add CRLs to a NSS certificate store. It implements one PKI-related interface: IPKIFCRLRepositoryUpdate.

This class updates both root and intermediate CA crls for NSS store.

Typically, this class is not used directly by applications and is primarily intended for as a colleague associated with a cache mediator used by the path builder.

TSP-enforcing: No

Definition at line 28 of file PKIFNSSCRLUpdate.h.


Public Member Functions

 CPKIFNSSCRLUpdate (const std::string &dbdir="")
virtual ~CPKIFNSSCRLUpdate (void)
void Initialize (void)
void AddCRL (const CPKIFCRLPtr &crl, const CPKIFGeneralNamePtr &dp)

Constructor & Destructor Documentation

CPKIFNSSCRLUpdate::CPKIFNSSCRLUpdate ( const std::string &  dbdir = ""  ) 

Interface: External

This function creates and initializes CPKIFNSSCRLUpdate objects. The parameters determine which NSS database will be used.

If no dbdir is specified, previously open NSS database will be used. If the database has already been opened with a diferent NSS directory an exception will be thrown.

Returns:
None
Parameters:
dbdir  [in] Path to the NSS database directory

Definition at line 47 of file PKIFNSSCRLUpdate.cpp.

References CPKIFNSSDatabase::GetInstance(), LOG_STRING_DEBUG, and TOOLKIT_SR_NSSCRLUPDATE.

CPKIFNSSCRLUpdate::~CPKIFNSSCRLUpdate ( void   )  [virtual]

Interface: External

This function destroys CPKIFNSSCRLUpdate objects

Returns:
None

Definition at line 73 of file PKIFNSSCRLUpdate.cpp.

References LOG_STRING_DEBUG, PKIFDelete(), and TOOLKIT_SR_NSSCRLUPDATE.


Member Function Documentation

void CPKIFNSSCRLUpdate::Initialize ( void   )  [virtual]

Interface: External

This function initializes an instance for use in a collection of IPKIFColleague objects held by a mediator.

Returns:
None

Reimplemented from IPKIFColleague.

Definition at line 130 of file PKIFNSSCRLUpdate.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_SR_NSSCRLUPDATE.

void CPKIFNSSCRLUpdate::AddCRL ( const CPKIFCRLPtr &  crl,
const CPKIFGeneralNamePtr &  dp 
) [virtual]

Interface: External

This class takes a distribution point and a pointer to a CRL. If the CRL is not successfully added no error is returned. Older CRLs present in the store are replaced by newer CRLs.

Returns:
None
Exceptions:
CPKIFCacheException(COMMON_NOT_INITIALIZED) 
Parameters:
crl  [in] Pointer to the CRL being added to the CRL store
dp  [in] Pointer to a GeneralName identifying the distribution point of the CRL

Implements IPKIFCRLRepositoryUpdate.

Definition at line 89 of file PKIFNSSCRLUpdate.cpp.

References CACHE_UPDATE_FAILED, COMMON_NOT_INITIALIZED, LOG_STRING_DEBUG, LOG_STRING_ERROR, LOG_STRING_INFO, RAISE_CACHE_EXCEPTION, and TOOLKIT_SR_NSSCRLUPDATE.


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

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