InfinispanHotRodC++Client  8.2.0.Alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 
35  m_enabled = enabled;
36  return *this;
37  }
38 
43  m_enabled = true;
44  return *this;
45  }
46 
51  m_enabled = false;
52  return *this;
53  }
54 
59  m_saslMechanism = saslMechanism;
60  return *this;
61  }
62 
67  m_serverFQDN = serverFQDN;
68  return *this;
69  }
70 
71 private:
72  bool m_enabled=false;
73  std::vector<sasl_callback_t> m_callbackHandler;
74  std::string m_saslMechanism;
75  std::string m_serverFQDN;
76 };
77 
78 }}
79 
80 
81 #endif /* INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATIONBUILDER_H_ */
AuthenticationConfigurationBuilder & saslMechanism(std::string saslMechanism)
Definition: AuthenticationConfigurationBuilder.h:58
Definition: AuthenticationConfiguration.h:54
AuthenticationConfigurationBuilder & enable()
Definition: AuthenticationConfigurationBuilder.h:42
AuthenticationConfigurationBuilder & serverFQDN(std::string serverFQDN)
Definition: AuthenticationConfigurationBuilder.h:66
AuthenticationConfigurationBuilder & disable()
Definition: AuthenticationConfigurationBuilder.h:50
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:34