Vanetza
 
Loading...
Searching...
No Matches
certificate_provider.hpp
1#ifndef A137DCCA_FFB9_4D91_8441_D559E6F17C14
2#define A137DCCA_FFB9_4D91_8441_D559E6F17C14
3
4#include <vanetza/security/ecdsa256.hpp>
5#include <vanetza/security/v2/certificate.hpp>
6#include <list>
7
8namespace vanetza
9{
10namespace security
11{
12namespace v2
13{
14
16{
17public:
18 /**
19 * Get own certificate to use for signing
20 * \return own certificate
21 */
22 virtual const Certificate& own_certificate() = 0;
23
24 /**
25 * Get own certificate chain in root CA → AA → AT order, excluding the AT and root certificate
26 * \return own certificate chain
27 */
28 virtual std::list<Certificate> own_chain() = 0;
29
30 /**
31 * Get private key associated with own certificate
32 * \return private key
33 */
35
36 virtual ~CertificateProvider() = default;
37};
38
39} // namespace v2
40} // namespace security
41} // namespace vanetza
42
43#endif /* A137DCCA_FFB9_4D91_8441_D559E6F17C14 */
virtual const ecdsa256::PrivateKey & own_private_key()=0
virtual const Certificate & own_certificate()=0
virtual std::list< Certificate > own_chain()=0
described in TS 103 097 v1.2.1 (2015-06), section 6.1
Definition: certificate.hpp:28