libDwmCredence-0.1.32
Dwm::Credence::KnownKeys Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ KnownKeys()

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.

Member Function Documentation

◆ Find()

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.


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