This class provides security record description for security database.
More...
#include <security_db.hh>
|
| security_db (const std::string &p_db_path) |
| Ctor with full path to the certificates storage. More...
|
|
| ~security_db () |
| Default private dtor. More...
|
|
int | store_certificate (const CHARSTRING &p_cert_id, const OCTETSTRING &p_cert, const OCTETSTRING &p_private_key, const OCTETSTRING &p_public_key_x, const OCTETSTRING &p_public_key_y, const OCTETSTRING &p_hashid8, const OCTETSTRING &p_issuer, const OCTETSTRING &p_private_enc_key, const OCTETSTRING &p_public_enc_key_x, const OCTETSTRING &p_public_enc_key_y) |
|
int | clear () |
|
| security_cache () |
| List of the certificates indexed by the HashedId8. More...
|
|
virtual | ~security_cache () |
| Default private dtor. More...
|
|
int | get_certificate_id (const OCTETSTRING &p_hashed_id8, std::string &p_certificate_id) const |
|
int | get_certificate (const std::string &p_certificate_id, OCTETSTRING &p_certificate) const |
|
int | get_certificate (const std::string &p_certificate_id, IEEE1609dot2::CertificateBase &p_certificate) const |
|
int | get_issuer (const std::string &p_certificate_id, OCTETSTRING &p_hashed_id_issuer) const |
|
int | get_hashed_id (const std::string &p_certificate_id, OCTETSTRING &p_hashed_id) const |
|
int | get_private_key (const std::string &p_certificate_id, OCTETSTRING &p_private_key) const |
|
int | get_public_keys (const std::string &p_certificate_id, OCTETSTRING &p_public_key_x, OCTETSTRING &p_public_key_y) const |
|
int | get_private_enc_key (const std::string &p_certificate_id, OCTETSTRING &p_private_enc_key) const |
|
int | get_public_enc_keys (const std::string &p_certificate_id, OCTETSTRING &p_public_enc_key_x, OCTETSTRING &p_public_enc_key_y) const |
|
void | dump () const |
|
This class provides security record description for security database.
◆ security_db()
security_db::security_db |
( |
const std::string & |
p_db_path | ) |
|
Ctor with full path to the certificates storage.
◆ ~security_db()
security_db::~security_db |
( |
| ) |
|
◆ clear()
int security_db::clear |
( |
| ) |
|
|
virtual |
◆ load_from_files()
int security_db::load_from_files |
( |
const std::string & |
p_db_path | ) |
|
|
private |
◆ store_certificate()
int security_db::store_certificate |
( |
const CHARSTRING & |
p_cert_id, |
|
|
const OCTETSTRING & |
p_cert, |
|
|
const OCTETSTRING & |
p_private_key, |
|
|
const OCTETSTRING & |
p_public_key_x, |
|
|
const OCTETSTRING & |
p_public_key_y, |
|
|
const OCTETSTRING & |
p_hashid8, |
|
|
const OCTETSTRING & |
p_issuer, |
|
|
const OCTETSTRING & |
p_private_enc_key, |
|
|
const OCTETSTRING & |
p_public_enc_key_x, |
|
|
const OCTETSTRING & |
p_public_enc_key_y |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: