Vanetza
 
Loading...
Searching...
No Matches
vanetza::security::v2::TrustStore Class Reference

Public Member Functions

std::list< Certificatelookup (HashedId8 id) const
 
void insert (const Certificate &trusted_certificate)
 

Private Attributes

std::multimap< HashedId8, Certificatem_certificates
 

Detailed Description

Definition at line 16 of file trust_store.hpp.

Member Function Documentation

◆ insert()

void vanetza::security::v2::TrustStore::insert ( const Certificate trusted_certificate)

Insert a certificate into store, i.e. consider it as trustworthy.

Parameters
trusted_certificatea trustworthy certificate copied into TrustStore

Definition at line 11 of file trust_store.cpp.

◆ lookup()

std::list< Certificate > vanetza::security::v2::TrustStore::lookup ( HashedId8  id) const

Lookup certificates based on the passed HashedId8.

Parameters
idhash identifier of the certificate
Returns
all stored certificates matching the passed identifier

Definition at line 21 of file trust_store.cpp.

Member Data Documentation

◆ m_certificates

std::multimap<HashedId8, Certificate> vanetza::security::v2::TrustStore::m_certificates
private

Definition at line 34 of file trust_store.hpp.


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