1 #ifndef COND_XMLAUTHENTITACTIONSERVICE_H 2 #define COND_XMLAUTHENTITACTIONSERVICE_H 4 #include "RelationalAccess/IAuthenticationService.h" 5 #include "CoralKernel/Service.h" 6 #include "CoralKernel/Property.h" 10 #include <boost/thread.hpp> 14 class AuthenticationCredentials;
51 const coral::IAuthenticationCredentials&
credentials()
const;
70 std::map<std::string, coral::AuthenticationCredentials*>
m_data;
125 std::map<std::string, DataSourceEntry*>
m_data;
void appendCredentialItemForRole(const std::string &item, const std::string &value, const std::string &role)
std::string m_connectionName
The connection name.
const coral::IAuthenticationCredentials & credentials() const
bool initialize()
Service framework related initialization.
boost::mutex m_mutexLock
the mutex lock
~XMLAuthenticationService() override
Standard Destructor.
std::map< std::string, DataSourceEntry * > m_data
The structure with the authentication data.
const coral::IAuthenticationCredentials & credentials(const std::string &connectionString) const override
static const std::string serviceName
bool m_isInitialized
Flag indicating whether the service has been initialized.
void reset()
Reset parsed data.
std::set< std::string > verifyFileName()
Verifies the existence of the authentication files.
coral::AuthenticationCredentials * m_default
The input file with the data.
XMLAuthenticationService(const std::string &name)
Standard Constructor.
void setAuthenticationPath(const std::string &inputPath)
Sets the input file name.
std::string m_serviceName
The service name.
bool processFile(const std::string &inputFileName)
Parses an xml file.
void appendCredentialItem(const std::string &item, const std::string &value)
coral::Property::CallbackID m_callbackID
std::map< std::string, coral::AuthenticationCredentials * > m_data
The structure with the authentication data for the various roles.
DataSourceEntry & operator=(const DataSourceEntry &)=delete
std::string m_inputFileName
The input file with the data.
~DataSourceEntry()
Destructor.