Sqlite3ConsumerDb extends ConsumerDb to implement the storage of decryption keys for the consumer using SQLite3. More...
#include <sqlite3-consumer-db.hpp>
Public Member Functions | |
| Sqlite3ConsumerDb (const std::string &databaseFilePath) | |
| Create an Sqlite3ConsumerDb to use the given SQLite3 file. More... | |
| virtual Blob | getKey (const Name &keyName) |
| Get the key with keyName from the database. More... | |
| virtual void | addKey (const Name &keyName, const Blob &keyBlob) |
| Add the key with keyName and keyBlob to the database. More... | |
| virtual void | deleteKey (const Name &keyName) |
| Delete the key with keyName from the database. More... | |
Public Member Functions inherited from ndn::ConsumerDb | |
| virtual | ~ConsumerDb () |
| The virtual Destructor. | |
Sqlite3ConsumerDb extends ConsumerDb to implement the storage of decryption keys for the consumer using SQLite3.
| ndn::Sqlite3ConsumerDb::Sqlite3ConsumerDb | ( | const std::string & | databaseFilePath | ) |
Create an Sqlite3ConsumerDb to use the given SQLite3 file.
| databaseFilePath | The path of the SQLite file. |
Add the key with keyName and keyBlob to the database.
| keyName | The key name. |
| keyBlob | The encoded key. |
| ConsumerDb::Error | if a key with the same keyName already exists in the database, or other database error. |
Implements ndn::ConsumerDb.
|
virtual |
Delete the key with keyName from the database.
If there is no key with keyName, do nothing.
| keyName | The key name. |
| ConsumerDb::Error | for a database error. |
Implements ndn::ConsumerDb.
Get the key with keyName from the database.
| keyName | The key name. |
| ConsumerDb::Error | for a database error. |
Implements ndn::ConsumerDb.
1.8.6