Public Types | |
| using | Wrapper = asn1::asn1c_oer_wrapper<asn1::EtsiTs103097Certificate> |
| using | base |
| typedef asn1::EtsiTs103097Certificate | asn1c_type |
Public Member Functions | |
| Certificate (const asn1::EtsiTs103097Certificate &) | |
| Certificate (const Certificate &) | |
| Certificate (Certificate &&) | |
| Certificate & | operator= (const Certificate &) |
| Certificate & | operator= (Certificate &&) |
| ByteBuffer | encode () const |
| void | add_app_permission (ItsAid aid, const ByteBuffer &ssp) |
| add application permissions as bitmap | |
| void | add_cert_issue_permission (asn1::PsidGroupPermissions *group_permission) |
| add cert issuing permission | |
| void | set_signature (const SomeEcdsaSignature &signature) |
| bool | decode (const ByteBuffer &buffer) |
| bool | decode (ByteBuffer::const_iterator begin, ByteBuffer::const_iterator end) |
| bool | decode (const void *buffer, std::size_t len) |
| std::size_t | size () const |
| asn1c_type & | operator* () |
| const asn1c_type & | operator* () const |
| asn1c_type * | operator-> () |
| const asn1c_type * | operator-> () const |
| const asn1c_type * | content () const |
| asn1c_type * | content () |
| bool | operator== (const asn1c_wrapper_common &rhs) const |
| bool | operator!= (const asn1c_wrapper_common &rhs) const |
| bool | validate () const |
| bool | validate (std::string &error) const |
| int | compare (const asn1c_wrapper_common &other) const |
| int | print () const |
| int | print (FILE *stream) const |
| void | swap (asn1c_wrapper_common &other) noexcept |
| boost::optional< HashedId8 > | calculate_digest () const |
| StartAndEndValidity | get_start_and_end_validity () const |
| KeyType | get_verification_key_type () const |
| boost::optional< HashedId8 > | issuer_digest () const |
| bool | issuer_is_self () const |
| bool | is_ca_certificate () const |
| bool | is_at_certificate () const |
| bool | has_region_restriction () const |
| bool | valid_at_location (const PositionFix &location, const LocationChecker *lc) const |
| bool | valid_at_timepoint (const Clock::time_point &time_point) const |
| bool | valid_for_application (ItsAid aid) const |
| bool | is_allowed_to_issue (ItsAid aid) const |
| boost::optional< std::uint8_t > | assurance_level () const |
| bool | region_is_within (const CertificateView &issuer) const |
| bool | is_canonical () const |
| boost::optional< Certificate > | canonicalize () const |
Protected Attributes | |
| asn1c_type * | m_struct |
| asn_TYPE_descriptor_t & | m_type |
| const asn1::EtsiTs103097Certificate * | m_cert = nullptr |
Definition at line 162 of file certificate.hpp.
|
inherited |
Definition at line 79 of file asn1c_wrapper.hpp.
|
inherited |
Definition at line 251 of file asn1c_wrapper.hpp.
| using vanetza::security::v3::Certificate::Wrapper = asn1::asn1c_oer_wrapper<asn1::EtsiTs103097Certificate> |
Definition at line 164 of file certificate.hpp.
| vanetza::security::v3::Certificate::Certificate | ( | ) |
Definition at line 54 of file certificate.cpp.
|
explicit |
Definition at line 61 of file certificate.cpp.
| vanetza::security::v3::Certificate::Certificate | ( | const Certificate & | other | ) |
Definition at line 68 of file certificate.cpp.
| vanetza::security::v3::Certificate::Certificate | ( | Certificate && | other | ) |
Definition at line 82 of file certificate.cpp.
| void vanetza::security::v3::Certificate::add_app_permission | ( | ItsAid | aid, |
| const ByteBuffer & | ssp ) |
add application permissions as bitmap
| aid | application identifier |
| ssp | permission bitmap |
Definition at line 637 of file certificate.cpp.
| void vanetza::security::v3::Certificate::add_cert_issue_permission | ( | asn1::PsidGroupPermissions * | group_permission | ) |
add cert issuing permission
| group_permission | to be added permission |
Definition at line 659 of file certificate.cpp.
|
inherited |
Get subject assurance level encoded in this certificate.
Definition at line 186 of file certificate.cpp.
|
inherited |
Calculate digest of certificate
Definition at line 96 of file certificate.cpp.
|
inherited |
Convert certificate into its canonical format if possible.
Definition at line 350 of file certificate.cpp.
|
inlineinherited |
Compare ASN.1 types
| other | Other ASN.1 type to compare with |
Definition at line 151 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 114 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 113 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 274 of file asn1c_wrapper.hpp.
|
inlineinherited |
Try to decode ASN.1 struct from byte buffer
| buffer | input data |
Definition at line 269 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 279 of file asn1c_wrapper.hpp.
| ByteBuffer vanetza::security::v3::Certificate::encode | ( | ) | const |
Definition at line 345 of file certificate.cpp.
|
inherited |
Get start and end validity
Definition at line 271 of file certificate.cpp.
|
inherited |
Get verification key type
Definition at line 101 of file certificate.cpp.
|
inherited |
Check if certificate has an region restriction
Definition at line 251 of file certificate.cpp.
|
inherited |
Check if certificate issue permissions allow issuing a given application.
| aid | application to be checked |
Definition at line 159 of file certificate.cpp.
|
inherited |
Check if certificate is an Authorization Ticket certificate
Definition at line 261 of file certificate.cpp.
|
inherited |
Check if certificate is a Certification Authority certificate
Definition at line 256 of file certificate.cpp.
|
inherited |
Check if certificate has a canonical format
Definition at line 266 of file certificate.cpp.
|
inherited |
|
inherited |
Check if certificate is self-signed
Definition at line 246 of file certificate.cpp.
|
inlineinherited |
Definition at line 121 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 107 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 109 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 108 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 110 of file asn1c_wrapper.hpp.
| Certificate & vanetza::security::v3::Certificate::operator= | ( | Certificate && | other | ) |
Definition at line 88 of file certificate.cpp.
| Certificate & vanetza::security::v3::Certificate::operator= | ( | const Certificate & | other | ) |
Definition at line 74 of file certificate.cpp.
|
inlineinherited |
Definition at line 117 of file asn1c_wrapper.hpp.
|
inlineinherited |
Print ASN.1 type to standard output
Definition at line 160 of file asn1c_wrapper.hpp.
|
inlineinherited |
Print ASN.1 type to some file stream
| stream | Output stream |
Definition at line 170 of file asn1c_wrapper.hpp.
|
inherited |
Check if this certificate's region restriction is within issuer's region restriction.
If issuer has no region restriction, any subject region is accepted. Currently supports circular regions and exact rectangular-region equality; unsupported region combinations are rejected conservatively.
| issuer | issuing certificate |
Definition at line 195 of file certificate.cpp.
| void vanetza::security::v3::Certificate::set_signature | ( | const SomeEcdsaSignature & | signature | ) |
Definition at line 669 of file certificate.cpp.
|
inlineinherited |
Get size of encoded ASN.1 struct
Definition at line 288 of file asn1c_wrapper.hpp.
|
inlinenoexceptinherited |
Swap ASN.1 wrapper content
| other | wrapper |
Definition at line 179 of file asn1c_wrapper.hpp.
|
inherited |
Check if certificate is valid at given location
| location | location to be checked |
Definition at line 106 of file certificate.cpp.
|
inherited |
Check if certificate is valid at given time point
| time_point | time point to be checked |
Definition at line 111 of file certificate.cpp.
|
inherited |
Check if certificate is valid for given application
| aid | application to be checked |
Definition at line 154 of file certificate.cpp.
|
inlineinherited |
Check ASN.1 constraints
| error | (optional) copy of error message |
Definition at line 131 of file asn1c_wrapper.hpp.
|
inlineinherited |
Check ASN.1 constraints
| error | Error message if any constraint failed |
Definition at line 141 of file asn1c_wrapper.hpp.
|
protectedinherited |
Definition at line 159 of file certificate.hpp.
|
protectedinherited |
Definition at line 186 of file asn1c_wrapper.hpp.
|
protectedinherited |
Definition at line 187 of file asn1c_wrapper.hpp.