1 #ifndef CondCoreDBCommon_DecodingKey_H
2 #define CondCoreDBCommon_DecodingKey_H
23 std::string
make(
size_t keySize );
47 size_t init(
const std::string& keyFileName,
const std::string& password,
bool readMode =
true );
49 size_t createFromInputFile(
const std::string& inputFileName,
size_t generatedKeySize = 0 );
63 const std::map< std::string, ServiceCredentials >&
services()
const;
67 void addService(
const std::string&
serviceName,
const std::string& connectionString,
const std::string& userName,
const std::string& password );
104 return m_principalName;
110 return m_principalKey;
116 return !m_owner.empty();
126 const std::map< std::string, cond::ServiceCredentials >&
129 #endif // CondCoreDBCommon_DecodingKey_H
static const std::string FILE_PATH
void addService(const std::string &serviceName, const std::string &connectionString, const std::string &userName, const std::string &password)
std::string makeWithRandomSize(size_t maxSize)
static std::string templateFile()
std::string connectionString
void addDefaultService(const std::string &connectionString)
std::string m_principalName
static const std::string serviceName
const std::map< std::string, ServiceCredentials > & services() const
static const size_t DEFAULT_KEY_SIZE
tuple maxSize
'/store/data/Commissioning08/BeamHalo/RECO/StuffAlmostToP5_v1/000/061/642/10A0FE34-A67D-DD11-AD05-000...
const std::string & principalKey() const
size_t createFromInputFile(const std::string &inputFileName, size_t generatedKeySize=0)
std::map< std::string, ServiceCredentials > m_services
void list(std::ostream &out)
std::string m_principalKey
size_t init(const std::string &keyFileName, const std::string &password, bool readMode=true)
std::string make(size_t keySize)
const std::string & principalName() const
const std::string & ownerName() const
static const std::string FILE_NAME