22 #ifndef SECURITYKEYMANAGER_H_
23 #define SECURITYKEYMANAGER_H_
30 #include <ibrcommon/data/File.h>
39 static const std::string TAG;
103 const ibrcommon::File
getFilePath(
const std::string &keyword,
const std::string &extension)
const;
121 static const std::string hash(
const std::string &value);
133 ibrcommon::File _path;
135 ibrcommon::File _key;
static SecurityKeyManager & getInstance()
const ibrcommon::File getKeyFile(const std::string &prefix, const dtn::data::EID &peer, const dtn::security::SecurityKey::KeyType type=dtn::security::SecurityKey::KEY_UNSPEC) const
virtual ~PathNotFoundException()
const ibrcommon::File getFilePath(const std::string &keyword, const std::string &extension) const
virtual ~SecurityKeyManager()
PathNotFoundException(std::string what="No security path configured.")
bool hasKey(const dtn::data::EID &ref, const dtn::security::SecurityKey::KeyType type=dtn::security::SecurityKey::KEY_UNSPEC) const
void store(const dtn::security::SecurityKey &key, const std::string &data)
virtual void onConfigurationChanged(const dtn::daemon::Configuration &conf)