Encapsulates the storage of a set of known public keys. More...
#include <DwmCredenceKnownKeys.hh>
Public Member Functions | |
| KnownKeys (const std::string &dirName="~/.credence") | |
Construct with the given storage directory dirName. | |
| std::string | Find (const std::string &id) const |
Returns the public key for the given key owner id on success. | |
| const std::map< std::string, std::string > & | Keys () const |
| Returns a const reference to the encapsulated keys. | |
Encapsulates the storage of a set of known public keys.
These keys are stored in a 'known_keys' file in a directory given as an argument to the constructor. By default, this directory is .credence in the user's home directory.
| Dwm::Credence::KnownKeys::KnownKeys | ( | const std::string & | dirName = "~/.credence" | ) |
Construct with the given storage directory dirName.
This is the directory where the 'known_keys' file will be stored.
| std::string Dwm::Credence::KnownKeys::Find | ( | const std::string & | id | ) | const |
Returns the public key for the given key owner id on success.
Returns an empty string if no key is found for id.