CMS 3D CMS Logo

RelationalAuthenticationService.h
Go to the documentation of this file.
1 #ifndef COND_XMLAUTHENTITACTIONSERVICE_H
2 #define COND_XMLAUTHENTITACTIONSERVICE_H
3 
5 //
6 #include "RelationalAccess/IAuthenticationService.h"
7 #include "CoralKernel/Service.h"
8 #include "CoralKernel/Property.h"
9 //
10 #include <map>
11 #include <set>
12 #include <string>
13 
14 namespace coral {
15 
16  class AuthenticationCredentials;
17  //class IAuthenticationCredentials;
18 } // namespace coral
19 
20 namespace cond {
21 
23 
26  class RelationalAuthenticationService : public coral::Service, virtual public coral::IAuthenticationService {
27  public:
30 
33 
34  public:
36  void setAuthenticationPath(const std::string& inputPath);
37 
42  const coral::IAuthenticationCredentials& credentials(const std::string& connectionString) const override;
43 
49  const coral::IAuthenticationCredentials& credentials(const std::string& connectionString,
50  const std::string& role) const override;
51 
52  private:
55 
58 
60 
61  coral::Property::CallbackID m_callbackID;
62  };
63 
64  } // namespace RelationalAuthenticationService
65 
66 } // namespace cond
67 
68 #endif
Definition: Binary.h:9
Definition: plugin.cc:23
CredentialStore m_db
The service providing the authentication data.