ConsumerDb is an abstract base class the storage of decryption keys for the consumer. More...
#include <consumer-db.hpp>
Classes | |
| class | Error |
| ConsumerDb::Error extends std::exception for errors using ConsumerDb methods. More... | |
Public Member Functions | |
| virtual | ~ConsumerDb () |
| The virtual Destructor. | |
| virtual Blob | getKey (const Name &keyName)=0 |
| Get the key with keyName from the database. More... | |
| virtual void | addKey (const Name &keyName, const Blob &keyBlob)=0 |
| Add the key with keyName and keyBlob to the database. More... | |
| virtual void | deleteKey (const Name &keyName)=0 |
| Delete the key with keyName from the database. More... | |
ConsumerDb is an abstract base class the storage of decryption keys for the consumer.
A subclass must implement the methods. For example, see Sqlite3ConsumerDb.
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. |
Implemented in ndn::Sqlite3ConsumerDb.
|
pure 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. |
Implemented in ndn::Sqlite3ConsumerDb.
Get the key with keyName from the database.
| keyName | The key name. |
| ConsumerDb::Error | for a database error. |
Implemented in ndn::Sqlite3ConsumerDb.
1.8.6