BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
BeeeOn::SSLFacility Class Referenceabstract

#include <SSLFacility.h>

Inheritance diagram for BeeeOn::SSLFacility:
BeeeOn::Loggable BeeeOn::SSLClient BeeeOn::SSLServer

Public Member Functions

void setCALocation (const std::string &caLocation)
 
void setLoadDefaultCA (const std::string &enable)
 
void setPrivateKey (const std::string &file)
 
void setPassphrase (const std::string &passphrase)
 
void setCertificate (const std::string &file)
 
void setVerificationMode (const std::string &mode)
 
void setVerificationDepth (int depth)
 
void setCipherList (const std::string &list)
 
void setSessionCache (const std::string &enable)
 
void setDisabledProtocols (const std::string &protocols)
 
void setExtendedCertificateVerification (bool enable)
 
Poco::File caLocation () const
 
Poco::File privateKey () const
 
std::string passphrase () const
 
Poco::File certificate () const
 
Poco::Net::Context::VerificationMode verificationMode () const
 
std::set< std::string > disabledProtocols () const
 
std::string cipherList () const
 
Poco::Net::Context::Ptr context ()
 
void initContext ()
 
- Public Member Functions inherited from BeeeOn::Loggable
 Loggable (const ClassInfo &info)
 
 Loggable (const std::type_info &info)
 

Protected Types

using VerificationMode = typename Poco::Net::Context::VerificationMode
 

Protected Member Functions

virtual Poco::Net::Context::Ptr createContext ()=0
 
- Protected Member Functions inherited from BeeeOn::Loggable
void setupLogger (Poco::Logger *logger=0) const
 
Poco::Logger & logger () const
 

Protected Attributes

Poco::Mutex m_lock
 
Poco::Net::Context::Ptr m_context
 
std::string m_caLocation
 
bool m_loadDefaultCA
 
std::string m_privateKey
 
std::string m_passphrase
 
std::string m_certificate
 
VerificationMode m_verificationMode
 
int m_verificationDepth
 
std::string m_cipherList
 
bool m_sessionCache
 
unsigned int m_disabledProtocols
 
bool m_extendedCertificateVerification
 

Additional Inherited Members

- 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)
 

Detailed Description

Abstract class for configuration of SSL context. It allows to set the most common settings of the Context. Properties specific to client or server context are to be added by the inhertited classes.

The SSLFacility provides the following properties for dependency-injection setup:


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