#include <CredentialStore.h>
Public Member Functions | |
AuthenticationCredentialSet () | |
Constructor. More... | |
const std::map< std::pair< std::string, std::string >, coral::AuthenticationCredentials * > & | data () const |
const coral::IAuthenticationCredentials * | get (const std::string &connectionString) const |
const coral::IAuthenticationCredentials * | get (const std::string &connectionString, const std::string &role) const |
void | import (const AuthenticationCredentialSet &data) |
void | registerCredentials (const std::string &connectionString, const std::string &userName, const std::string &password) |
void | registerCredentials (const std::string &connectionString, const std::string &role, const std::string &userName, const std::string &password) |
void | registerItem (const std::string &connectionString, const std::string &itemName, const std::string &itemValue) |
void | registerItem (const std::string &connectionString, const std::string &role, const std::string &itemName, const std::string &itemValue) |
void | reset () |
virtual | ~AuthenticationCredentialSet () |
Destructor. More... | |
Private Attributes | |
std::map< std::pair< std::string, std::string >, coral::AuthenticationCredentials * > | m_data |
credentials for the specific roles More... | |
Definition at line 23 of file CredentialStore.h.
coral_bridge::AuthenticationCredentialSet::AuthenticationCredentialSet | ( | ) |
Constructor.
Definition at line 33 of file CredentialStore.cc.
|
virtual |
const std::map< std::pair< std::string, std::string >, coral::AuthenticationCredentials * > & coral_bridge::AuthenticationCredentialSet::data | ( | ) | const |
Definition at line 117 of file CredentialStore.cc.
References ADMIN_KEY_COL(), AUTH_ID_COL(), AUTH_KEY_COL(), C_ID_COL(), COND_AUTHENTICATION_TABLE(), COND_AUTHORIZATION_TABLE(), COND_CREDENTIAL_TABLE(), CONNECTION_ID_COL(), CONNECTION_KEY_COL(), CONNECTION_LABEL_COL(), DEFAULT_DATA_SOURCE(), m_data, P_ID_COL(), PASSWORD_COL(), PRINCIPAL_ID_COL(), PRINCIPAL_KEY_COL(), PRINCIPAL_NAME_COL(), ROLE_COL(), SCHEMA_COL(), SEQUENCE_NAME_COL(), SEQUENCE_TABLE_NAME(), SEQUENCE_VALUE_COL(), AlCaHLTBitMon_QueryRunRegistry::string, USERNAME_COL(), VERIFICATION_COL(), and VERIFICATION_KEY_COL().
Referenced by data_sources.node::__str__(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), data_sources.json_list::get_members(), cond::CredentialStore::importForPrincipal(), and data_sources.json_list::last().
const coral::IAuthenticationCredentials * coral_bridge::AuthenticationCredentialSet::get | ( | const std::string & | connectionString | ) | const |
Definition at line 100 of file CredentialStore.cc.
References cond::auth::COND_DEFAULT_ROLE.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), cond::RelationalAuthenticationService::RelationalAuthenticationService::credentials(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), data_sources.json_list::first(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), data_sources.json_list::indices(), data_sources.json_list::last(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), util.rrapi.RRApi::reports(), rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().
const coral::IAuthenticationCredentials * coral_bridge::AuthenticationCredentialSet::get | ( | const std::string & | connectionString, |
const std::string & | role | ||
) | const |
Definition at line 106 of file CredentialStore.cc.
References m_data.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), rrapi.RRApi::columns(), util.rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), util.rrapi.RRApi::data(), rrapi.RRApi::data(), data_sources.json_list::first(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), data_sources.json_list::indices(), data_sources.json_list::last(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().
void coral_bridge::AuthenticationCredentialSet::import | ( | const AuthenticationCredentialSet & | data | ) |
Definition at line 91 of file CredentialStore.cc.
References m_data, genParticles_cff::map, and registerCredentials().
void coral_bridge::AuthenticationCredentialSet::registerCredentials | ( | const std::string & | connectionString, |
const std::string & | userName, | ||
const std::string & | password | ||
) |
Adds a credential item to the default role.
Definition at line 69 of file CredentialStore.cc.
References cond::auth::COND_DEFAULT_ROLE.
Referenced by cond::CredentialStore::exportAll(), import(), and cond::CredentialStore::selectForUser().
void coral_bridge::AuthenticationCredentialSet::registerCredentials | ( | const std::string & | connectionString, |
const std::string & | role, | ||
const std::string & | userName, | ||
const std::string & | password | ||
) |
Adds a credential item to the specified role.
Definition at line 76 of file CredentialStore.cc.
References m_data, and serviceName.
void coral_bridge::AuthenticationCredentialSet::registerItem | ( | const std::string & | connectionString, |
const std::string & | itemName, | ||
const std::string & | itemValue | ||
) |
Definition at line 48 of file CredentialStore.cc.
References cond::auth::COND_DEFAULT_ROLE.
void coral_bridge::AuthenticationCredentialSet::registerItem | ( | const std::string & | connectionString, |
const std::string & | role, | ||
const std::string & | itemName, | ||
const std::string & | itemValue | ||
) |
Definition at line 55 of file CredentialStore.cc.
References m_data, and serviceName.
void coral_bridge::AuthenticationCredentialSet::reset | ( | void | ) |
Definition at line 41 of file CredentialStore.cc.
References m_data, and genParticles_cff::map.
Referenced by MatrixReader.MatrixReader::__init__(), data_sources.json_list::next(), cond::RelationalAuthenticationService::RelationalAuthenticationService::setAuthenticationPath(), MatrixReader.MatrixReader::showRaw(), and ~AuthenticationCredentialSet().
|
private |
credentials for the specific roles
Definition at line 70 of file CredentialStore.h.
Referenced by data(), get(), import(), registerCredentials(), registerItem(), and reset().