#include <certificate_cache.hpp>
CertificateCache remembers validated certificates for some time. This is necessary for certificate lookup when only its digest is known.
Definition at line 22 of file certificate_cache.hpp.
◆ heap_type
using vanetza::security::v2::CertificateCache::heap_type = boost::heap::binomial_heap<Expiry, boost::heap::compare<std::greater<Expiry> >> |
|
private |
◆ map_type
using vanetza::security::v2::CertificateCache::map_type = std::multimap<HashedId8, CachedCertificate> |
|
private |
◆ CertificateCache()
vanetza::security::v2::CertificateCache::CertificateCache |
( |
const Runtime & |
rt | ) |
|
◆ drop_expired()
void vanetza::security::v2::CertificateCache::drop_expired |
( |
| ) |
|
|
private |
◆ insert()
void vanetza::security::v2::CertificateCache::insert |
( |
const Certificate & |
certificate | ) |
|
Puts a (validated) certificate into the cache.
- Parameters
-
certificate | certificate to add to the cache |
Definition at line 15 of file certificate_cache.cpp.
◆ is_expired()
bool vanetza::security::v2::CertificateCache::is_expired |
( |
const Expiry & |
expiry | ) |
const |
|
private |
◆ lookup()
std::list< Certificate > vanetza::security::v2::CertificateCache::lookup |
( |
const HashedId8 & |
id, |
|
|
SubjectType |
type |
|
) |
| |
Lookup certificates based on the passed HashedId8.
- Parameters
-
id | hash identifier of the certificate |
type | type of certificate to lookup |
- Returns
- all stored certificates matching the passed identifier and type
Definition at line 55 of file certificate_cache.cpp.
◆ refresh()
void vanetza::security::v2::CertificateCache::refresh |
( |
heap_type::handle_type & |
handle, |
|
|
Clock::duration |
lifetime |
|
) |
| |
|
private |
◆ size()
std::size_t vanetza::security::v2::CertificateCache::size |
( |
| ) |
const |
|
inline |
◆ m_certificates
map_type vanetza::security::v2::CertificateCache::m_certificates |
|
private |
◆ m_expiries
heap_type vanetza::security::v2::CertificateCache::m_expiries |
|
private |
◆ m_runtime
const Runtime& vanetza::security::v2::CertificateCache::m_runtime |
|
private |
The documentation for this class was generated from the following files: