BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Class for storing basic information about gateway. More...
#include <GatewayInfo.h>
Public Types | |
typedef Poco::SharedPtr < GatewayInfo > | Ptr |
Public Member Functions | |
GatewayInfo () | |
void | setGatewayID (const std::string &gatewayID) |
GatewayID | gatewayID () const |
Poco::SharedPtr < Poco::Net::X509Certificate > | certificate () const |
void | setCertPath (const std::string &path) |
void | setKeyPath (const std::string &path) |
void | initialize () |
Public Member Functions inherited from BeeeOn::Loggable | |
Loggable (const ClassInfo &info) | |
Loggable (const std::type_info &info) | |
Static Public Member Functions | |
static std::string | version () |
Static Public Member Functions inherited from BeeeOn::Loggable | |
static Poco::Logger & | forMethod (const char *name) |
static Poco::Logger & | forClass (const ClassInfo &info) |
static Poco::Logger & | forClass (const std::type_info &info) |
template<typename T > | |
static Poco::Logger & | forInstance (const T *i) |
static void | configureSimple (Poco::Logger &logger, const std::string &level) |
static void | logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line) |
Protected Member Functions | |
void | loadCertificate () |
void | loadPrivateKey () |
Protected Member Functions inherited from BeeeOn::Loggable | |
void | setupLogger (Poco::Logger *logger=0) const |
Poco::Logger & | logger () const |
Class for storing basic information about gateway.
GatewayInfo::GatewayInfo | ( | ) |
Creates an uninitialized instance.
|
protected |
Loads and stores X509 certificate from file. Also gets and stores gatewayID from common name of the certificate.
|
protected |
Loads and stores RSA private key from file.
void GatewayInfo::setGatewayID | ( | const std::string & | gatewayID | ) |
GatewayID can be set directly for debugging purposes.