BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Credentials.h
1 #pragma once
2 
3 #include <Poco/Util/AbstractConfiguration.h>
4 #include <Poco/SharedPtr.h>
5 
6 #include "util/CryptoParams.h"
7 #include "model/DeviceID.h"
8 
9 namespace BeeeOn {
10 
11 class Credentials {
12 public:
13  virtual ~Credentials();
14 
15  void setParams(const CryptoParams &params);
16  CryptoParams params() const;
17 
18  virtual void save(
19  Poco::AutoPtr<Poco::Util::AbstractConfiguration> conf,
20  const DeviceID &device,
21  const std::string &root) const = 0;
22 
23 protected:
27  std::string makeConfString(
28  const DeviceID &device,
29  const std::string &atribute,
30  const std::string &root) const;
31 
32  CryptoParams m_params;
33 };
34 
35 }
Definition: Credentials.h:11
std::string makeConfString(const DeviceID &device, const std::string &atribute, const std::string &root) const
Definition: Credentials.cpp:21
Definition: CryptoParams.h:7
Definition: DeviceID.h:17