Red Hat Data Grid HotRod C++ Client  7.2.0
SecurityConfigurationBuilder.h
Go to the documentation of this file.
1 /*
2  * SecurityConfigurationBuilder.h
3  *
4  * Created on: Jan 27, 2017
5  * Author: rigazilla
6  */
7 
8 #ifndef INCLUDE_INFINISPAN_HOTROD_SECURITYCONFIGURATIONBUILDER_H_
9 #define INCLUDE_INFINISPAN_HOTROD_SECURITYCONFIGURATIONBUILDER_H_
13 namespace infinispan {
14 namespace hotrod {
15 
20 {
21 public:
22  SecurityConfigurationBuilder(ConfigurationBuilder& _builder) : ConfigurationChildBuilder(_builder), sslConfigurationBuilder(_builder) {}
24  return SecurityConfiguration(sslConfigurationBuilder.create(), authenticationConfigurationBuilder.create());
25  }
29  SslConfigurationBuilder& getSslConfigurationBuilder() { return sslConfigurationBuilder; }
33  AuthenticationConfigurationBuilder& authentication() { return authenticationConfigurationBuilder; }
34 private:
35  AuthenticationConfigurationBuilder authenticationConfigurationBuilder;
36  SslConfigurationBuilder sslConfigurationBuilder;
37 };
38 
39 }}
40 
41 
42 
43 #endif /* INCLUDE_INFINISPAN_HOTROD_SECURITYCONFIGURATIONBUILDER_H_ */
AuthenticationConfigurationBuilder & authentication()
Definition: SecurityConfigurationBuilder.h:33
SslConfigurationBuilder & getSslConfigurationBuilder()
Definition: SecurityConfigurationBuilder.h:29
Definition: SecurityConfigurationBuilder.h:19
Definition: SslConfigurationBuilder.h:12
Definition: AuthenticationConfiguration.h:10
Definition: AuthenticationConfigurationBuilder.h:17
SecurityConfigurationBuilder(ConfigurationBuilder &_builder)
Definition: SecurityConfigurationBuilder.h:22
SecurityConfiguration create()
Definition: SecurityConfigurationBuilder.h:23
Definition: ConfigurationBuilder.h:111
Definition: ConfigurationChildBuilder.h:18
Definition: SecurityConfiguration.h:16
AuthenticationConfiguration create()
Definition: AuthenticationConfigurationBuilder.h:20
SslConfiguration create()
Definition: SslConfigurationBuilder.h:18