42#ifndef _DWMCREDENCEKNOWNKEYS_HH_
43#define _DWMCREDENCEKNOWNKEYS_HH_
66 KnownKeys(
const std::string & dirName =
"~/.credence");
72 std::string
Find(
const std::string &
id)
const;
77 const std::map<std::string,std::string> &
Keys()
const;
81 std::map<std::string,std::string> _keys;
84 static bool ReadKey(std::istream & is,
85 std::pair<std::string,std::string> & key);
Encapsulates the storage of a set of known public keys.
Definition DwmCredenceKnownKeys.hh:60
const std::map< std::string, std::string > & Keys() const
Returns a const reference to the encapsulated keys.
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.