1 #ifndef COND_XMLAUTHENTITACTIONSERVICE_H
2 #define COND_XMLAUTHENTITACTIONSERVICE_H
4 #include "RelationalAccess/IAuthenticationService.h"
5 #include "CoralKernel/Service.h"
10 #include <boost/thread.hpp>
14 class AuthenticationCredentials;
32 const std::string& connectionName );
41 const std::string&
value );
47 const std::string& value,
48 const std::string& role );
53 const coral::IAuthenticationCredentials&
credentials()
const;
59 const coral::IAuthenticationCredentials&
credentials(
const std::string& role )
const;
72 std::map< std::string, coral::AuthenticationCredentials* >
m_data;
86 virtual public coral::IAuthenticationService
101 const coral::IAuthenticationCredentials&
credentials(
const std::string& connectionString )
const;
108 const coral::IAuthenticationCredentials&
credentials(
const std::string& connectionString,
109 const std::string& role )
const;
123 bool processFile(
const std::string& inputFileName );
135 std::map< std::string, DataSourceEntry* >
m_data;
std::map< std::string, coral::AuthenticationCredentials * > m_data
The structure with the authentication data for the various roles.
void appendCredentialItemForRole(const std::string &item, const std::string &value, const std::string &role)
std::string m_connectionName
The connection name.
bool initialize()
Service framework related initialization.
boost::mutex m_mutexLock
the mutex lock
static boost::mutex mutex
static const std::string serviceName
DataSourceEntry & operator=(const DataSourceEntry &)
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.
virtual ~XMLAuthenticationService()
Standard Destructor.
std::string m_serviceName
The service name.
std::map< std::string, DataSourceEntry * > m_data
The structure with the authentication data.
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
const coral::IAuthenticationCredentials & credentials() const
std::string m_inputFileName
The input file with the data.
~DataSourceEntry()
Destructor.
const coral::IAuthenticationCredentials & credentials(const std::string &connectionString) const