BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
BeeeOn::GatewayInfo Class Reference

Class for storing basic information about gateway. More...

#include <GatewayInfo.h>

Inheritance diagram for BeeeOn::GatewayInfo:
BeeeOn::Loggable

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
 

Detailed Description

Class for storing basic information about gateway.

Constructor & Destructor Documentation

GatewayInfo::GatewayInfo ( )

Creates an uninitialized instance.

Member Function Documentation

void GatewayInfo::loadCertificate ( )
protected

Loads and stores X509 certificate from file. Also gets and stores gatewayID from common name of the certificate.

void GatewayInfo::loadPrivateKey ( )
protected

Loads and stores RSA private key from file.

void GatewayInfo::setGatewayID ( const std::string &  gatewayID)

GatewayID can be set directly for debugging purposes.


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