Go to the documentation of this file. 1 #ifndef CondCore_CondDB_DecodingKey_h
2 #define CondCore_CondDB_DecodingKey_h
34 static constexpr
const char*
const FILE_NAME =
"db.key";
35 static constexpr
const char*
const FILE_PATH =
".cms_cond/db.key";
63 const std::map<std::string, ServiceCredentials>&
services()
const;
120 #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 KEY_FMT_VERSION
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)
const std::string & version() const
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