CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
19 
20 namespace cond {
21 
23 
26  class RelationalAuthenticationService : public coral::Service,
27  virtual public coral::IAuthenticationService
28  {
29 
30  public:
32  explicit RelationalAuthenticationService( const std::string& name );
33 
36 
37  public:
38 
40  void setAuthenticationPath( const std::string& inputPath );
41 
46  const coral::IAuthenticationCredentials& credentials( const std::string& connectionString ) const;
47 
53  const coral::IAuthenticationCredentials& credentials( const std::string& connectionString,
54  const std::string& role ) const;
55 
56  private:
57 
59  std::string m_authenticationPath;
60 
63 
65 
66  coral::Property::CallbackID m_callbackID;
67 
68  };
69 
70  }
71 
72 }
73 
74 #endif
void setAuthenticationPath(const std::string &inputPath)
Sets the input file name.
CredentialStore m_db
The service providing the authentication data.
const coral::IAuthenticationCredentials & credentials(const std::string &connectionString) const