22 #ifndef NDN_CXX_SECURITTY_PIB_IMPL_PIB_SQLITE3_HPP 23 #define NDN_CXX_SECURITTY_PIB_IMPL_PIB_SQLITE3_HPP 62 static const std::string&
99 addKey(
const Name& identity,
const Name& keyName, span<const uint8_t> key)
final;
140 hasDefaultIdentity()
const;
143 hasDefaultKeyOfIdentity(
const Name& identity)
const;
146 hasDefaultCertificateOfKey(
const Name& keyName)
const;
156 #endif // NDN_CXX_SECURITTY_PIB_IMPL_PIB_SQLITE3_HPP void removeCertificate(const Name &certName) final
Remove a certificate with name certName.
Copyright (c) 2011-2015 Regents of the University of California.
Name getDefaultKeyOfIdentity(const Name &identity) const final
std::set< Name > getCertificatesOfKey(const Name &keyName) const final
Get a list of certificate names of a key with id keyName.
void clearIdentities() final
Erasing all certificates, keys, and identities.
Certificate getDefaultCertificateOfKey(const Name &keyName) const final
Certificate getCertificate(const Name &certName) const final
Get a certificate with name certName.
std::set< Name > getIdentities() const final
Get the name of all the identities.
void setTpmLocator(const std::string &tpmLocator) final
Set the corresponding TPM information to tpmLocator.
Pib backend implementation based on SQLite3 database.
std::string getTpmLocator() const final
Get TPM Locator.
void addKey(const Name &identity, const Name &keyName, span< const uint8_t > key) final
Add a key.
Buffer getKeyBits(const Name &keyName) const final
Get the key bits of a key with name keyName.
static const std::string & getScheme()
void removeIdentity(const Name &identity) final
Remove an identity and related keys and certificates.
void setDefaultIdentity(const Name &identityName) final
Set an identity with name identityName as the default identity.
void setDefaultCertificateOfKey(const Name &keyName, const Name &certName) final
Set a cert with name certName as the default of a key with keyName.
Name getDefaultIdentity() const final
Get the default identity.
Represents an absolute name.
PibSqlite3(const std::string &location="")
Create sqlite3-based PIB backed.
void addIdentity(const Name &identity) final
Add an identity.
bool hasKey(const Name &keyName) const final
Check the existence of a key with keyName.
~PibSqlite3() final
Destruct and cleanup internal state.
void addCertificate(const Certificate &certificate) final
Add a certificate.
void removeKey(const Name &keyName) final
Remove a key with keyName and related certificates.
void setDefaultKeyOfIdentity(const Name &identity, const Name &keyName) final
Set an key with keyName as the default key of an identity with name identity.
std::set< Name > getKeysOfIdentity(const Name &identity) const final
Get all the key names of an identity with name identity.
bool hasIdentity(const Name &identity) const final
Check the existence of an identity.
General-purpose automatically managed/resized buffer.
Abstract class of PIB implementation.
bool hasCertificate(const Name &certName) const final
Check the existence of a certificate with name certName.