#include <RelationalAuthenticationService.h>
Public Member Functions | |
const coral::IAuthenticationCredentials & | credentials (const std::string &connectionString) const override |
const coral::IAuthenticationCredentials & | credentials (const std::string &connectionString, const std::string &role) const override |
RelationalAuthenticationService (const std::string &name) | |
Standard Constructor. More... | |
void | setAuthenticationPath (const std::string &inputPath) |
Sets the input file name. More... | |
~RelationalAuthenticationService () override | |
Standard Destructor. More... | |
Private Attributes | |
std::string | m_authenticationPath |
The input file with the data. More... | |
coral_bridge::AuthenticationCredentialSet | m_cache |
coral::Property::CallbackID | m_callbackID |
CredentialStore | m_db |
The service providing the authentication data. More... | |
Definition at line 26 of file RelationalAuthenticationService.h.
|
explicit |
Standard Constructor.
Definition at line 24 of file RelationalAuthenticationService.cc.
References cond::auth::COND_AUTH_PATH_PROPERTY, instance, m_callbackID, and setAuthenticationPath().
|
override |
|
override |
Returns a reference to the credentials object for a given connection string. If the connection string is not known to the service an UnknownConnectionException is thrown.
Definition at line 52 of file RelationalAuthenticationService.cc.
References Debug, coral_bridge::AuthenticationCredentialSet::get(), cond::CredentialStore::keyPrincipalName(), cmsBatch::log, m_authenticationPath, m_cache, m_db, mps_check::msg, cond::CredentialStore::selectForUser(), cond::CredentialStore::setUpForConnectionString(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::throwException().
|
override |
Returns a reference to the credentials object for a given connection string. If the connection string is not known to the service an UnknownConnectionException is thrown. If the role is not known to the service an UnknownRoleException is thrown.
Definition at line 73 of file RelationalAuthenticationService.cc.
References Debug, DEFINE_CORALSERVICE, coral_bridge::AuthenticationCredentialSet::get(), cond::CredentialStore::keyPrincipalName(), cmsBatch::log, m_authenticationPath, m_cache, m_db, mps_check::msg, cond::CredentialStore::selectForUser(), cond::CredentialStore::setUpForConnectionString(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::throwException().
void cond::RelationalAuthenticationService::RelationalAuthenticationService::setAuthenticationPath | ( | const std::string & | inputPath | ) |
Sets the input file name.
Definition at line 45 of file RelationalAuthenticationService.cc.
References m_authenticationPath, m_cache, and coral_bridge::AuthenticationCredentialSet::reset().
Referenced by RelationalAuthenticationService().
|
private |
The input file with the data.
Definition at line 59 of file RelationalAuthenticationService.h.
Referenced by credentials(), and setAuthenticationPath().
|
mutableprivate |
Definition at line 64 of file RelationalAuthenticationService.h.
Referenced by credentials(), and setAuthenticationPath().
|
private |
Definition at line 66 of file RelationalAuthenticationService.h.
Referenced by RelationalAuthenticationService().
|
mutableprivate |
The service providing the authentication data.
Definition at line 62 of file RelationalAuthenticationService.h.
Referenced by credentials().