namespace Akenti class CertificateCache

The CertificateCache caches certificates in memory

Public Methods

CertificateCache ()
Constucts this object
~CertificateCache ()
destroys this object
void setDirectoryName (const string& rootResourceName)
Sets the name of the directory where the certificates will be stored externally
AKCertHolder& addCertificate (const AkentiCertificate& cert, int level, const UtcTime& startCacheTime, const UtcTime& endCacheTime)
Constructs a AKCertHolder using the input parameters and adds it to the cache
vector <AKCertHolder> getAKCertHolders (const string& key, const string& type)
Returns a vector of AKCertHolder holders that pass the following tests
vector <AKCertHolder> getAKCertHolders (const string& key, const string& type, const UtcTime& notBefore)
Returns a vector of AKCertHolder 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& rootResourceName)
Sets the name of the directory where the certificates will be stored externally

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

vector <AKCertHolder> getAKCertHolders(const string& key, const string& type)
Returns a vector of AKCertHolder holders that pass the following tests.
1) holder.cert->hashCode() == key.
2) holder.cert->getType() == type.

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 satisfy the two tests mentioned above.

vector <AKCertHolder> getAKCertHolders(const string& key, const string& type, const UtcTime& notBefore)
Returns a vector of AKCertHolder 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:
AKCertHolder
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