#include <CertStatusCache.h>
TSP-enforcing: No
Definition at line 27 of file CertStatusCache.h.
Public Member Functions | |
CPKIFCertStatusCache () | |
~CPKIFCertStatusCache () | |
void | PutObject (const CPKIFCertificatePtr &targetCert, const CPKIFCertificatePtr &issuersCert, RevocationStatus &status, CPKIFCertStatusPtr &certStatus) |
void | PutObjectsInPath (CPKIFCertificatePath &path) |
void | SetMaxCacheAge (unsigned long maxAgeInMilliseconds) |
long | GetMaxCacheAge () const |
void | SetMaxCacheSize (int count) |
int | GetMaxCacheSize () const |
void | SetCacheCaCertsOnly (bool bCacheCaCertsOnly) |
bool | GetCacheCaCertsOnly () const |
void | SetPurgeFrequency (int minTimeBetweenPurgesInSeconds) |
int | GetPurgeFrequency () const |
void | Initialize () |
bool | CheckStatus (const CPKIFCertificatePtr &targetCert, const CPKIFCertificatePtr &issuersCert, RevocationStatus &status, CPKIFCertStatusPtr &certStatus) |
bool | CheckStatusPath (CPKIFCertificatePath &path, RevocationStatus &status) |
CPKIFCertStatusCache::CPKIFCertStatusCache | ( | ) |
Interface: Subsystem
Default constructor
Definition at line 368 of file CertStatusCache.cpp.
CPKIFCertStatusCache::~CPKIFCertStatusCache | ( | ) |
Interface: Subsystem
Default destructor
Definition at line 379 of file CertStatusCache.cpp.
void CPKIFCertStatusCache::PutObject | ( | const CPKIFCertificatePtr & | targetCert, | |
const CPKIFCertificatePtr & | issuersCert, | |||
RevocationStatus & | status, | |||
CPKIFCertStatusPtr & | certStatus | |||
) |
Interface: Subsystem
This function adds an entry to the cache
targetCert | [in] Target certificate |
issuersCert | [in] Issuer certificate |
status | [in] Revocation status information |
certStatus | [in] Certificate status information |
Definition at line 436 of file CertStatusCache.cpp.
References CPKIFTime::CurrentTime().
Referenced by PutObjectsInPath().
void CPKIFCertStatusCache::PutObjectsInPath | ( | CPKIFCertificatePath & | path | ) |
Interface: Subsystem
This function adds certificates from cert path into the cache
path | [in] Certificate path to be added to the cache |
Definition at line 730 of file CertStatusCache.cpp.
References CPKIFCertificatePath::GetPath(), CPKIFCertificatePath::GetTrustRoot(), and PutObject().
void CPKIFCertStatusCache::SetMaxCacheAge | ( | unsigned long | maxAgeInMilliseconds | ) |
Interface: Subsystem
Sets max cache age
maxAgeInMilliseconds | [in] Max cache age in milliseconds |
Definition at line 477 of file CertStatusCache.cpp.
long CPKIFCertStatusCache::GetMaxCacheAge | ( | ) | const |
Interface: Subsystem
Gets max cache age
Definition at line 490 of file CertStatusCache.cpp.
void CPKIFCertStatusCache::SetMaxCacheSize | ( | int | count | ) |
Interface: Subsystem
Sets max cache size
count | [in] Max cache size |
Definition at line 501 of file CertStatusCache.cpp.
int CPKIFCertStatusCache::GetMaxCacheSize | ( | ) | const |
Interface: Subsystem
Gets max cache size
Definition at line 514 of file CertStatusCache.cpp.
void CPKIFCertStatusCache::SetCacheCaCertsOnly | ( | bool | bCacheCaCertsOnly | ) |
Interface: Subsystem
This function sets boolean flag that will restrict cache to CA certificates only
bCacheCaCertsOnly | [in] True to restrict to CA certificates only |
Definition at line 525 of file CertStatusCache.cpp.
bool CPKIFCertStatusCache::GetCacheCaCertsOnly | ( | ) | const |
Interface: Subsystem
This function lets you know if the cache is restricted to CA certificates only
Definition at line 538 of file CertStatusCache.cpp.
void CPKIFCertStatusCache::SetPurgeFrequency | ( | int | minTimeBetweenPurgesInSeconds | ) |
Interface: Subsystem
This function sets cache purge frequency
minTimeBetweenPurgesInSeconds | [in] Cache purge frequency in seconds |
Definition at line 549 of file CertStatusCache.cpp.
int CPKIFCertStatusCache::GetPurgeFrequency | ( | ) | const |
Interface: Subsystem
This function gets cache purge frequency
Definition at line 562 of file CertStatusCache.cpp.
void CPKIFCertStatusCache::Initialize | ( | void | ) | [virtual] |
Interface: Subsystem
Cache initialization
Reimplemented from IPKIFColleague.
Definition at line 575 of file CertStatusCache.cpp.
bool CPKIFCertStatusCache::CheckStatus | ( | const CPKIFCertificatePtr & | targetCert, | |
const CPKIFCertificatePtr & | issuersCert, | |||
RevocationStatus & | status, | |||
CPKIFCertStatusPtr & | certStatus | |||
) | [virtual] |
Interface: Subsystem
This function returns status information for a cache entry
targetCert | [in] Target certificate |
issuersCert | [in] Issuer certificate |
status | [out] Revocation status |
certStatus | [out] Certificate status |
Implements IPKIFRevocationStatus.
Definition at line 587 of file CertStatusCache.cpp.
bool CPKIFCertStatusCache::CheckStatusPath | ( | CPKIFCertificatePath & | path, | |
RevocationStatus & | status | |||
) | [virtual] |
Interface: Subsystem
This function returns status of a certificate path after checking the cache for certificate status info.
path | [in] Target path |
status | [out] Revocationg status info for the path |
Implements IPKIFRevocationStatus.
Definition at line 620 of file CertStatusCache.cpp.
References CPKIFCertificatePath::GetPath(), CPKIFCertificatePath::GetPathSettings(), CPKIFCertificatePath::GetTrustRoot(), NOT_CHECKED, PATH_CERT_REVOCATION_STATUS_NOT_DETERMINED, PATH_CERT_REVOKED, and REVOKED.