Encapsulates a file containing public keys in a format similar to (but not the same as) an ssh authorized_keys file. More...
#include <DwmAuthPublicKeysFile.hh>
Public Types | |
| typedef std::map< std::string, PKCrypto::PublicKey > | Map |
Public Member Functions | |
| PublicKeysFile () | |
| Constructor. | |
| bool | Load (const std::string &fileName) |
Loads the public keys from the file at the given path fileName. More... | |
| Map::const_iterator | Find (const std::string &name) const |
Searches the keys for the one with the given name. More... | |
| const Map & | Keys () const |
| Returns a const reference to the contained public keys. | |
Encapsulates a file containing public keys in a format similar to (but not the same as) an ssh authorized_keys file.
| Map::const_iterator Dwm::Auth::PublicKeysFile::Find | ( | const std::string & | name | ) | const |
Searches the keys for the one with the given name.
Returns a valid iterator on success, Keys().end() on failure.
| bool Dwm::Auth::PublicKeysFile::Load | ( | const std::string & | fileName | ) |
Loads the public keys from the file at the given path fileName.
Returns true on success, false on failure.