BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
CredentialsTool.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "credentials/CredentialsStorage.h"
6 #include "loop/Tool.h"
7 #include "util/CryptoConfig.h"
8 
9 namespace BeeeOn {
10 
24 class CredentialsTool : public Tool {
25 public:
27 
28  void setCryptoConfig(Poco::SharedPtr<CryptoConfig> config);
29  void setStorage(CredentialsStorage::Ptr storage);
30 
31 protected:
32  void main(
33  ConsoleSession &session,
34  const std::vector<std::string> &args) override;
35 
36  void actionClear();
37  void actionRemove(const std::vector<std::string> &args);
38  void actionSet(const std::vector<std::string> &args);
39 
40 private:
41  CredentialsStorage::Ptr m_storage;
42  Poco::SharedPtr<CryptoConfig> m_cryptoConfig;
43 };
44 
45 }
void main(ConsoleSession &session, const std::vector< std::string > &args) override
Definition: CredentialsTool.cpp:110
The purpose of the class Tool is to provide a common set of features for loops that are to be used as...
Definition: Tool.h:43
Standalone tool that can be used to manipulate the credentials storage directly. It parses the given ...
Definition: CredentialsTool.h:24
Definition: Console.h:70