class CertificateCache

The CertificateCache caches certificates in memory.

Public Methods

[more] CertificateCache ()
Constucts this object
[more] ~CertificateCache ()
destroys this object
[more]void setDirectoryName (const string& rootResourceName)
Sets the name of the directory where the certificates will be stored externally
[more]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.
[more]vector<AKCertHolder> getAKCertHolders (const string& key, const string& type)
Returns a vector of AKCertHolder holders that pass the following tests.
[more]vector<AKCertHolder> getAKCertHolders (const string& key, const string& type, const UtcTime& notBefore)
Returns a vector of AKCertHolder holders that pass the following tests.
[more]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.

o CertificateCache()
Constucts this object

o ~CertificateCache()
destroys this object

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

oAKCertHolder& 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

ovector<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.

ovector<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.
    *

obool 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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.