A simple certificate provider. More...
#include <static_certificate_provider.hpp>
Public Member Functions | |
StaticCertificateProvider (const Certificate &authorization_ticket, const ecdsa256::PrivateKey &ticket_key) | |
StaticCertificateProvider (const Certificate &authorization_ticket, const ecdsa256::PrivateKey &ticket_key, const std::list< Certificate > &chain) | |
virtual const Certificate & | own_certificate () override |
virtual std::list< Certificate > | own_chain () override |
virtual const ecdsa256::PrivateKey & | own_private_key () override |
Private Attributes | |
Certificate | authorization_ticket |
ecdsa256::PrivateKey | authorization_ticket_key |
std::list< Certificate > | chain |
A simple certificate provider.
This certificate provider uses a static certificate and key pair that is pre-generated.
Definition at line 18 of file static_certificate_provider.hpp.
vanetza::security::v2::StaticCertificateProvider::StaticCertificateProvider | ( | const Certificate & | authorization_ticket, |
const ecdsa256::PrivateKey & | ticket_key | ||
) |
Create static certificate provider with empty chain
authorization_ticket | |
ticket_key | private key of given authorization ticket |
Definition at line 10 of file static_certificate_provider.cpp.
vanetza::security::v2::StaticCertificateProvider::StaticCertificateProvider | ( | const Certificate & | authorization_ticket, |
const ecdsa256::PrivateKey & | ticket_key, | ||
const std::list< Certificate > & | chain | ||
) |
Create static certificate provider with given chain
authorization_ticket | |
ticket_key | private key of given authorization ticket |
chain | own certificate chain |
Definition at line 16 of file static_certificate_provider.cpp.
|
overridevirtual |
Get own certificate to use for signing
Implements vanetza::security::v2::CertificateProvider.
Definition at line 32 of file static_certificate_provider.cpp.
|
overridevirtual |
Get own certificate chain, excluding the leaf certificate and root CA
Implements vanetza::security::v2::CertificateProvider.
Definition at line 27 of file static_certificate_provider.cpp.
|
overridevirtual |
Get private key associated with own certificate
Implements vanetza::security::v2::CertificateProvider.
Definition at line 22 of file static_certificate_provider.cpp.
|
private |
Definition at line 56 of file static_certificate_provider.hpp.
|
private |
Definition at line 57 of file static_certificate_provider.hpp.
|
private |
Definition at line 58 of file static_certificate_provider.hpp.