Go to the documentation of this file. 1 #ifndef CondCore_CondDB_DecodingKey_h
2 #define CondCore_CondDB_DecodingKey_h
33 static constexpr
const char*
const FILE_NAME =
"db.key";
34 static constexpr
const char*
const FILE_PATH =
".cms_cond/db.key";
60 const std::map<std::string, ServiceCredentials>&
services()
const;
92 : m_fileName(
""), m_mode(
true), m_pwd(
""), m_principalName(
""), m_principalKey(
""), m_owner(
""), m_services() {}
106 #endif // CondCore_CondDB_DecodingKey_h
const std::string & principalName() const
const std::string & ownerName() const
std::string connectionString
std::string make(size_t keySize)
std::string m_principalName
size_t init(const std::string &keyFileName, const std::string &password, bool readMode=true)
static const std::string serviceName
static constexpr size_t DEFAULT_KEY_SIZE
static constexpr const char *const FILE_PATH
static constexpr const char *const FILE_NAME
std::string m_principalKey
static std::string templateFile()
const std::map< std::string, ServiceCredentials > & services() const
void addDefaultService(const std::string &connectionString)
std::string makeWithRandomSize(size_t maxSize)
void list(std::ostream &out)
size_t createFromInputFile(const std::string &inputFileName, size_t generatedKeySize=0)
void addService(const std::string &serviceName, const std::string &connectionString, const std::string &userName, const std::string &password)
std::map< std::string, ServiceCredentials > m_services
const std::string & principalKey() const