Red Hat Data Grid HotRod C++ Client  7.2.0
AuthenticationConfigurationBuilder.h
Go to the documentation of this file.
1 /*
2  * AuthenticationConfigurationBuilder.h
3  *
4  * Created on: Jan 27, 2017
5  * Author: rigazilla
6  */
7 
8 #ifndef INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATIONBUILDER_H_
9 #define INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATIONBUILDER_H_
10 
11 
12 namespace infinispan {
13 namespace hotrod {
14 
15 
16 
18 {
19 public:
21  return AuthenticationConfiguration(m_callbackHandler, m_enabled, m_saslMechanism, m_serverFQDN);
22  }
27  m_callbackHandler = callbackHandler;
28  return *this;
29  }
30 
36  m_enabled = enabled;
37  return *this;
38  }
39 
44  m_enabled = true;
45  return *this;
46  }
47 
52  m_enabled = false;
53  return *this;
54  }
55 
61  m_saslMechanism = saslMechanism;
62  return *this;
63  }
64 
69  m_serverFQDN = serverFQDN;
70  return *this;
71  }
72 
73 private:
74  bool m_enabled=false;
75  std::vector<sasl_callback_t> m_callbackHandler;
76  std::string m_saslMechanism;
77  std::string m_serverFQDN;
78 };
79 
80 }}
81 
82 
83 #endif /* INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATIONBUILDER_H_ */
AuthenticationConfigurationBuilder & saslMechanism(std::string saslMechanism)
Definition: AuthenticationConfigurationBuilder.h:60
Definition: AuthenticationConfiguration.h:54
AuthenticationConfigurationBuilder & enable()
Definition: AuthenticationConfigurationBuilder.h:43
AuthenticationConfigurationBuilder & serverFQDN(std::string serverFQDN)
Definition: AuthenticationConfigurationBuilder.h:68
AuthenticationConfigurationBuilder & disable()
Definition: AuthenticationConfigurationBuilder.h:51
Definition: AuthenticationConfiguration.h:10
Definition: AuthenticationConfigurationBuilder.h:17
AuthenticationConfigurationBuilder & callbackHandler(std::vector< sasl_callback_t > &callbackHandler)
Definition: AuthenticationConfigurationBuilder.h:26
AuthenticationConfiguration create()
Definition: AuthenticationConfigurationBuilder.h:20
AuthenticationConfigurationBuilder & enabled(bool enabled)
Definition: AuthenticationConfigurationBuilder.h:35