libDwmAuth-0.1.0
Dwm::Auth::PublicKeysFile Class Reference

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::PublicKeyMap
 

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.
 

Detailed Description

Encapsulates a file containing public keys in a format similar to (but not the same as) an ssh authorized_keys file.

Member Function Documentation

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.


The documentation for this class was generated from the following file: