This class provides security record description for in memory security database. In memory mens there is no disk load/save mechanism.
More...
#include <security_cache.hh>
|
| 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 |
|
virtual 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) |
|
virtual int | clear () |
|
void | dump () const |
|
This class provides security record description for in memory security database. In memory mens there is no disk load/save mechanism.
◆ security_cache()
security_cache::security_cache |
( |
| ) |
|
List of the certificates indexed by the HashedId8.
Default ctor
◆ ~security_cache()
security_cache::~security_cache |
( |
| ) |
|
|
virtual |
◆ clear()
int security_cache::clear |
( |
| ) |
|
|
virtual |
◆ dump()
void security_cache::dump |
( |
| ) |
const |
◆ get_certificate() [1/2]
int security_cache::get_certificate |
( |
const std::string & |
p_certificate_id, |
|
|
OCTETSTRING & |
p_certificate |
|
) |
| const |
◆ get_certificate() [2/2]
int security_cache::get_certificate |
( |
const std::string & |
p_certificate_id, |
|
|
IEEE1609dot2::CertificateBase & |
p_certificate |
|
) |
| const |
◆ get_certificate_id()
int security_cache::get_certificate_id |
( |
const OCTETSTRING & |
p_hashed_id8, |
|
|
std::string & |
p_certificate_id |
|
) |
| const |
◆ get_hashed_id()
int security_cache::get_hashed_id |
( |
const std::string & |
p_certificate_id, |
|
|
OCTETSTRING & |
p_hashed_id |
|
) |
| const |
◆ get_issuer()
int security_cache::get_issuer |
( |
const std::string & |
p_certificate_id, |
|
|
OCTETSTRING & |
p_hashed_id_issuer |
|
) |
| const |
◆ get_private_enc_key()
int security_cache::get_private_enc_key |
( |
const std::string & |
p_certificate_id, |
|
|
OCTETSTRING & |
p_private_enc_key |
|
) |
| const |
◆ get_private_key()
int security_cache::get_private_key |
( |
const std::string & |
p_certificate_id, |
|
|
OCTETSTRING & |
p_private_key |
|
) |
| const |
◆ get_public_enc_keys()
int security_cache::get_public_enc_keys |
( |
const std::string & |
p_certificate_id, |
|
|
OCTETSTRING & |
p_public_enc_key_x, |
|
|
OCTETSTRING & |
p_public_enc_key_y |
|
) |
| const |
◆ get_public_keys()
int security_cache::get_public_keys |
( |
const std::string & |
p_certificate_id, |
|
|
OCTETSTRING & |
p_public_key_x, |
|
|
OCTETSTRING & |
p_public_key_y |
|
) |
| const |
◆ store_certificate()
int security_cache::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 |
◆ _certificates
◆ _hashed_id8s
std::map<std::vector<unsigned char>, std::string> security_cache::_hashed_id8s |
|
protected |
List of the certificates indexed by the certificate identifier.
The documentation for this class was generated from the following files: