The CertificateCache caches certificates in memory
![]() | CertificateCache () Constucts this object |
![]() | ~CertificateCache () destroys this object |
![]() | setDirectoryName (const string& rootResourceName) Sets the name of the directory where the certificates will be stored externally |
![]() | 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 |
![]() | getAKCertHolders (const string& key, const string& type) Returns a vector of AKCertHolder holders that pass the following tests |
![]() | getAKCertHolders (const string& key, const string& type, const UtcTime& notBefore) Returns a vector of AKCertHolder holders that pass the following tests |
![]() | updateExternalCache () Updates the external cache |
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()
void setDirectoryName(const string& rootResourceName)
AKCertHolder& addCertificate(const AkentiCertificate& cert, int level, const UtcTime& startCacheTime, const UtcTime& endCacheTime)
vector <AKCertHolder> getAKCertHolders(const string& key, const string& type)
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)
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.
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