esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ndnph::KeyChainKeys Class Reference

File based key pair store. More...

#include <keychain.hpp>

Inherits ndnph::KvStore.

Public Member Functions

 KvStore ()=default
 Constructor to use internal FileStore instance. More...
 
 KvStore (port::FileStore &fs)
 Constructor to use existing FileStore instance. More...
 
- Public Member Functions inherited from ndnph::KvStore
 KvStore ()=default
 Constructor to use internal FileStore instance. More...
 
 KvStore (port::FileStore &fs)
 Constructor to use existing FileStore instance. More...
 
template<typename... Arg>
bool open (Arg &&... arg)
 Open the FileStore backend. More...
 
tlv::Value get (const char *key, Region &region)
 Retrieve a value. More...
 
bool set (const char *key, tlv::Value value)
 Store a value. More...
 
bool del (const char *key)
 Delete a key. More...
 

Detailed Description

File based key pair store.

Unencrypted private keys may be stored. It's important to protect the storage directory using Unix permissions or similar mechanisms.

Member Function Documentation

◆ KvStore() [1/2]

ndnph::KvStore::KvStore
explicitdefault

Constructor to use internal FileStore instance.

◆ KvStore() [2/2]

ndnph::KvStore::KvStore
inlineexplicit

Constructor to use existing FileStore instance.


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