#include <PKIFNSSCRLUpdate.h>
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) |
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.
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
Definition at line 73 of file PKIFNSSCRLUpdate.cpp.
References LOG_STRING_DEBUG, PKIFDelete(), and TOOLKIT_SR_NSSCRLUPDATE.
void CPKIFNSSCRLUpdate::Initialize | ( | void | ) | [virtual] |
Interface: External
This function initializes an instance for use in a collection of IPKIFColleague objects held by a mediator.
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.
CPKIFCacheException(COMMON_NOT_INITIALIZED) |
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.