1 #ifndef CondCore_CondDB_CredentialStore_h 2 #define CondCore_CondDB_CredentialStore_h 10 #include "CoralBase/MessageStream.h" 14 class AuthenticationCredentials;
15 class IAuthenticationCredentials;
33 void registerItem(
const std::string& connectionString,
38 void registerItem(
const std::string& connectionString,
46 void registerCredentials(
const std::string& connectionString,
53 void registerCredentials(
const std::string& connectionString,
60 const coral::IAuthenticationCredentials*
get(
const std::string& connectionString )
const;
62 const coral::IAuthenticationCredentials*
get(
const std::string& connectionString,
const std::string& role )
const;
64 const std::map< std::pair<std::string,std::string>, coral::AuthenticationCredentials* >&
data()
const ;
70 std::map< std::pair<std::string,std::string>, coral::AuthenticationCredentials* >
m_data;
119 bool removeConnection(
const std::string& connectionLabel );
126 bool listPrincipals( std::vector<std::string>&
destination );
146 std::pair<std::string,std::string> openConnection(
const std::string& connectionString );
149 void startSession(
bool readMode );
151 void openSession(
bool readOnly=
true );
std::map< std::pair< std::string, std::string >, coral::AuthenticationCredentials * > m_data
credentials for the specific roles
std::string m_principalKey
std::string m_serviceName
static const std::string serviceName
std::string principalName
std::string connectionString
std::string schemaLabel(const std::string &serviceName, const std::string &userName)
bool closeSession(Session *&session)
static const std::string DEFAULT_DATA_SOURCE
std::shared_ptr< coral::ISession > m_session
char data[epos_bytes_allocation]
std::shared_ptr< coral::IConnection > m_connection
std::string connectionLabel
const auth::ServiceCredentials * m_serviceData
void reset(double vett[256])