Infinispan HotRod C++ Client 9.2.0.Final
Loading...
Searching...
No Matches
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
12namespace infinispan {
13namespace hotrod {
14
15
16
18{
19public:
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
73private:
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_ */
Definition: AuthenticationConfigurationBuilder.h:18
AuthenticationConfigurationBuilder & callbackHandler(std::vector< sasl_callback_t > &callbackHandler)
Definition: AuthenticationConfigurationBuilder.h:26
AuthenticationConfiguration create()
Definition: AuthenticationConfigurationBuilder.h:20
AuthenticationConfigurationBuilder & saslMechanism(std::string saslMechanism)
Definition: AuthenticationConfigurationBuilder.h:60
AuthenticationConfigurationBuilder & serverFQDN(std::string serverFQDN)
Definition: AuthenticationConfigurationBuilder.h:68
AuthenticationConfigurationBuilder & enable()
Definition: AuthenticationConfigurationBuilder.h:43
AuthenticationConfigurationBuilder & disable()
Definition: AuthenticationConfigurationBuilder.h:51
AuthenticationConfigurationBuilder & enabled(bool enabled)
Definition: AuthenticationConfigurationBuilder.h:35
Definition: AuthenticationConfiguration.h:55
Definition: AuthenticationConfiguration.h:10