class CertificateCache |
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.
* 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.
* 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 HTML hierarchy of classes or Java