CMS 3D CMS Logo

RelationalAuthenticationService.h
Go to the documentation of this file.
1 #ifndef COND_XMLAUTHENTITACTIONSERVICE_H
2 #define COND_XMLAUTHENTITACTIONSERVICE_H
3 
6 //
7 #include "RelationalAccess/IAuthenticationService.h"
8 #include "CoralKernel/Service.h"
9 #include "CoralKernel/Property.h"
10 //
11 #include <map>
12 #include <set>
13 #include <string>
14 
15 namespace coral {
16 
17  class AuthenticationCredentials;
18  //class IAuthenticationCredentials;
19 } // namespace coral
20 
21 namespace cond {
22 
24 
27  class RelationalAuthenticationService : public coral::Service,
28  virtual public coral::IAuthenticationService,
29  virtual public persistency::IDbAuthentication {
30  public:
33 
36 
37  public:
40 
45  const coral::IAuthenticationCredentials& credentials(const std::string& connectionString) const override;
46 
52  const coral::IAuthenticationCredentials& credentials(const std::string& connectionString,
53  const std::string& role) const override;
54 
55  std::string principalName() override;
56 
57  private:
60 
63 
65 
66  coral::Property::CallbackID m_callbackID;
67  };
68 
69  } // namespace RelationalAuthenticationService
70 
71 } // namespace cond
72 
73 #endif
const coral::IAuthenticationCredentials & credentials(const std::string &connectionString) const override
void setAuthenticationPath(const std::string &inputPath)
Sets the input file name.
Definition: Binary.h:9
CredentialStore m_db
The service providing the authentication data.