Red Hat Data Grid HotRod C++ Client  7.2.0
SslConfiguration.h
Go to the documentation of this file.
1 #ifndef SSLCONFIGURATION_H_
2 #define SSLCONFIGURATION_H_
3 
5 
6 namespace infinispan {
7 namespace hotrod {
8 
9 
11 {
12  public:
13  SslConfiguration(const bool _enabled, const std::string& _serverCAPath, const std::string& _serverCAFile, const std::string& _clientCertificateFile, const std::string& _sniHostName):
14  m_enabled(_enabled), m_serverCAPath(_serverCAPath), m_serverCAFile(_serverCAFile), m_clientCertificateFile(_clientCertificateFile), m_sniHostName(_sniHostName) {};
16  {
17  m_enabled=conf.m_enabled;
18  m_serverCAPath=conf.m_serverCAPath;
19  m_serverCAFile=conf.m_serverCAFile;
20  m_clientCertificateFile=conf.m_clientCertificateFile;
21  m_sniHostName=conf.m_sniHostName;
22  }
28  const bool& enabled() const
29  {
30  return m_enabled;
31  }
32 
38  const std::string& serverCAPath() const
39  {
40  return m_serverCAPath;
41  }
42 
48  const std::string& serverCAFile() const
49  {
50  return m_serverCAFile;
51  }
52 
58  const std::string& clientCertificateFile() const
59  {
60  return m_clientCertificateFile;
61  }
62 
68  const std::string& sniHostName() const
69  {
70  return m_sniHostName;
71  }
72 
73  private:
74  bool m_enabled;
75 #if _MSC_VER
76 #pragma warning(push)
77 #pragma warning(disable:4251)
78 #endif
79  std::string m_serverCAPath;
80  std::string m_serverCAFile;
81  std::string m_clientCertificateFile;
82  std::string m_sniHostName;
83 #if _MSC_VER
84 #pragma warning(pop)
85 #endif
86 };
87 
88 }}
89 
90 #endif /* SSLCONFIGURATION_H_ */
const bool & enabled() const
Definition: SslConfiguration.h:28
#define HR_EXTERN
Definition: ImportExport.h:35
const std::string & sniHostName() const
Definition: SslConfiguration.h:68
Definition: AuthenticationConfiguration.h:10
const std::string & serverCAPath() const
Definition: SslConfiguration.h:38
Definition: SslConfiguration.h:10
const std::string & serverCAFile() const
Definition: SslConfiguration.h:48
SslConfiguration(const bool _enabled, const std::string &_serverCAPath, const std::string &_serverCAFile, const std::string &_clientCertificateFile, const std::string &_sniHostName)
Definition: SslConfiguration.h:13
const std::string & clientCertificateFile() const
Definition: SslConfiguration.h:58
SslConfiguration(const SslConfiguration &conf)
Definition: SslConfiguration.h:15