|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
22 #ifndef NDN_SECURITTY_PIB_IMPL_PIB_SQLITE3_HPP
23 #define NDN_SECURITTY_PIB_IMPL_PIB_SQLITE3_HPP
62 static const std::string&
100 const uint8_t* key,
size_t keyLen)
final;
141 hasDefaultIdentity()
const;
144 hasDefaultKeyOfIdentity(
const Name& identity)
const;
147 hasDefaultCertificateOfKey(
const Name& keyName)
const;
157 #endif // NDN_SECURITTY_PIB_IMPL_PIB_SQLITE3_HPP
Buffer getKeyBits(const Name &keyName) const final
Get the key bits of a key with name keyName.
bool hasIdentity(const Name &identity) const final
Check the existence of an identity.
void removeCertificate(const Name &certName) final
Remove a certificate with name certName.
Name getDefaultKeyOfIdentity(const Name &identity) const final
void setDefaultCertificateOfKey(const Name &keyName, const Name &certName) final
Set a cert with name certName as the default of a key with keyName.
General-purpose automatically managed/resized buffer.
void setDefaultKeyOfIdentity(const Name &identity, const Name &keyName) final
Set an key with keyName as the default key of an identity with name identity.
void addIdentity(const Name &identity) final
Add an identity.
static const std::string & getScheme()
void setTpmLocator(const std::string &tpmLocator) final
Set the corresponding TPM information to tpmLocator.
Represents an absolute name.
v2::Certificate getCertificate(const Name &certName) const final
Get a certificate with name certName.
The certificate following the certificate format naming convention.
std::set< Name > getIdentities() const final
Get the name of all the identities.
~PibSqlite3()
Destruct and cleanup internal state.
void setDefaultIdentity(const Name &identityName) final
Set an identity with name identityName as the default identity.
void addCertificate(const v2::Certificate &certificate) final
Add a certificate.
std::string getTpmLocator() const final
Get TPM Locator.
bool hasKey(const Name &keyName) const final
Check the existence of a key with keyName.
Name getDefaultIdentity() const final
Get the default identity.
void clearIdentities() final
Erasing all certificates, keys, and identities.
bool hasCertificate(const Name &certName) const final
Check the existence of a certificate with name certName.
void addKey(const Name &identity, const Name &keyName, const uint8_t *key, size_t keyLen) final
Add a key.
std::set< Name > getKeysOfIdentity(const Name &identity) const final
Get all the key names of an identity with name identity.
std::set< Name > getCertificatesOfKey(const Name &keyName) const final
Get a list of certificate names of a key with id keyName.
PibSqlite3(const std::string &location="")
Create sqlite3-based PIB backed.
void removeKey(const Name &keyName) final
Remove a key with keyName and related certificates.
Pib backend implementation based on SQLite3 database.
Abstract class of PIB implementation.
Copyright (c) 2011-2015 Regents of the University of California.
void removeIdentity(const Name &identity) final
Remove an identity and related keys and certificates.
v2::Certificate getDefaultCertificateOfKey(const Name &keyName) const final