42 #ifndef _DWMAUTHPUBLICKEYSFILE_HH_ 43 #define _DWMAUTHPUBLICKEYSFILE_HH_ 61 typedef std::map<std::string,PKCrypto::PublicKey> Map;
72 bool Load(
const std::string & fileName);
78 Map::const_iterator
Find(
const std::string & name)
const;
83 const Map &
Keys()
const;
86 std::map<std::string,PKCrypto::PublicKey> _keys;
93 #endif // _DWMAUTHPUBLICKEYSFILE_HH_ Map::const_iterator Find(const std::string &name) const
Searches the keys for the one with the given name.
Public key crypto definitions.
const Map & Keys() const
Returns a const reference to the contained public keys.
PublicKeysFile()
Constructor.
Definition: DwmAuth.hh:48
Encapsulates a file containing public keys in a format similar to (but not the same as) an ssh author...
Definition: DwmAuthPublicKeysFile.hh:58
bool Load(const std::string &fileName)
Loads the public keys from the file at the given path fileName.