Vanetza
 
Loading...
Searching...
No Matches
vanetza::security::v3::CertificateCache Class Reference

#include <certificate_cache.hpp>

Public Member Functions

const Certificatelookup (const HashedId8 &digest) const
 
void store (const Certificate &cert)
 
size_t size () const
 

Private Attributes

std::unordered_map< HashedId8, Certificatem_storage
 

Detailed Description

CertificateCache stores validated v1.3.1 certificates for later lookup. Required for checking messages' signatures containing only a certificate digest.

Definition at line 17 of file certificate_cache.hpp.

Member Function Documentation

◆ lookup()

const Certificate * vanetza::security::v3::CertificateCache::lookup ( const HashedId8 &  digest) const

Lookup certificate based on given digest

Parameters
digestcertificate digest
Returns
certificate matching digest

Definition at line 11 of file certificate_cache.cpp.

◆ size()

size_t vanetza::security::v3::CertificateCache::size ( ) const
inline

Definition at line 33 of file certificate_cache.hpp.

◆ store()

void vanetza::security::v3::CertificateCache::store ( const Certificate cert)

Store a (pre-validated) certificate in cache

Parameters
certcertificate

Definition at line 21 of file certificate_cache.cpp.

Member Data Documentation

◆ m_storage

std::unordered_map<HashedId8, Certificate> vanetza::security::v3::CertificateCache::m_storage
private

Definition at line 37 of file certificate_cache.hpp.


The documentation for this class was generated from the following files: