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
cond::RelationalAuthenticationService::RelationalAuthenticationService::m_authenticationPath
std::string m_authenticationPath
The input file with the data.
Definition: RelationalAuthenticationService.h:59
IDbAuthentication.h
cond::RelationalAuthenticationService::RelationalAuthenticationService::setAuthenticationPath
void setAuthenticationPath(const std::string &inputPath)
Sets the input file name.
Definition: RelationalAuthenticationService.cc:39
cond::RelationalAuthenticationService::RelationalAuthenticationService::m_callbackID
coral::Property::CallbackID m_callbackID
Definition: RelationalAuthenticationService.h:66
coral
Definition: Binary.h:9
cond::RelationalAuthenticationService::RelationalAuthenticationService::RelationalAuthenticationService
RelationalAuthenticationService(const std::string &name)
Standard Constructor.
Definition: RelationalAuthenticationService.cc:21
cond::CredentialStore
Definition: CredentialStore.h:85
cond::RelationalAuthenticationService::RelationalAuthenticationService::~RelationalAuthenticationService
~RelationalAuthenticationService() override
Standard Destructor.
Definition: RelationalAuthenticationService.cc:37
cond::RelationalAuthenticationService::RelationalAuthenticationService
Definition: RelationalAuthenticationService.h:27
cond
Definition: plugin.cc:23
cond::RelationalAuthenticationService::RelationalAuthenticationService::m_cache
coral_bridge::AuthenticationCredentialSet m_cache
Definition: RelationalAuthenticationService.h:64
cond::RelationalAuthenticationService::RelationalAuthenticationService::credentials
const coral::IAuthenticationCredentials & credentials(const std::string &connectionString) const override
Definition: RelationalAuthenticationService.cc:46
cond::persistency::IDbAuthentication
Definition: IDbAuthentication.h:10
cond::RelationalAuthenticationService::RelationalAuthenticationService::m_db
CredentialStore m_db
The service providing the authentication data.
Definition: RelationalAuthenticationService.h:62
coral_bridge::AuthenticationCredentialSet
Definition: CredentialStore.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CredentialStore.h
SiStripCommissioningSource_FromEDM_cfg.inputPath
inputPath
Definition: SiStripCommissioningSource_FromEDM_cfg.py:8
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
l1RCTOmdsFedVectorProducer_cfi.connectionString
connectionString
Definition: l1RCTOmdsFedVectorProducer_cfi.py:4
cond::RelationalAuthenticationService::RelationalAuthenticationService::principalName
std::string principalName() override
Definition: RelationalAuthenticationService.cc:91