namespace Akenti class CertificateCache

The CertificateCache caches certificates in memory

Public Methods

CertificateCache ()
Constucts this object
~CertificateCache ()
destroys this object
void setDirectoryName (const string& dirName)
Sets the name of the directory where the certificates will be stored externally
CacheCertHolder& addCertificate (const AkentiCertificate& cert, bool hasBeenVerified, const UtcTime& startCacheTime, const UtcTime& endCacheTime)
Constructs a CacheCertHolder using the input parameters and adds it to the cache
vector <CacheCertHolder> getCacheCertHolders (const string& key, const string& type, const UtcTime& notBefore)
Returns a vector of CacheCertHolder holders that pass the following tests
bool updateExternalCache ()
Updates the external cache

Documentation

The CertificateCache caches certificates in memory. The external cache is consulted only if no certificates are stored internally. In addition this cache keeps track of what is loaded from the external cache and will only update the external cache if the information that was loaded has changed.
CertificateCache()
Constucts this object

~CertificateCache()
destroys this object

void setDirectoryName(const string& dirName)
Sets the name of the directory where the certificates will be stored externally

CacheCertHolder& addCertificate(const AkentiCertificate& cert, bool hasBeenVerified, const UtcTime& startCacheTime, const UtcTime& endCacheTime)
Constructs a CacheCertHolder using the input parameters and adds it to the cache.
Returns:
a CacheCertHolder that wraps the certificate
See Also:
CacheCertHolder

vector <CacheCertHolder> getCacheCertHolders(const string& key, const string& type, const UtcTime& notBefore)
Returns a vector of CacheCertHolder holders that pass the following tests. 1) holder.cert->hashCode() == key. 2) holder.cert->getType() == type. 3) holder.startCacheTime >= notBefore. If the holders were just loaded from the external cache then the the certificate's validity is tested. Note that the external cache is queried only if the internal cache has no certificates that pass the first two tests.

bool updateExternalCache()
Updates the external cache


This class has no child classes.
Author:
Abdlelilah Essiari Srilekha Mudumbai
Version:
1.1 00/05/01
See Also:
CacheCertHolder
ExternalCache
CertificateStatusListener

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de