#include <DecodingKey.h>
Public Member Functions | |
void | addDefaultService (const std::string &connectionString) |
void | addService (const std::string &serviceName, const std::string &connectionString, const std::string &userName, const std::string &password) |
size_t | createFromInputFile (const std::string &inputFileName, size_t generatedKeySize=0) |
DecodingKey () | |
void | flush () |
size_t | init (const std::string &keyFileName, const std::string &password, bool readMode=true) |
bool | isNominal () const |
void | list (std::ostream &out) |
const std::string & | ownerName () const |
const std::string & | principalKey () const |
const std::string & | principalName () const |
const std::map< std::string, ServiceCredentials > & | services () const |
virtual | ~DecodingKey () |
Static Public Member Functions | |
static std::string | templateFile () |
Static Public Attributes | |
static const size_t | DEFAULT_KEY_SIZE = 100 |
static const std::string | FILE_NAME |
static const std::string | FILE_PATH |
Private Attributes | |
std::string | m_fileName |
bool | m_mode |
std::string | m_owner |
std::string | m_principalKey |
std::string | m_principalName |
std::string | m_pwd |
std::map< std::string, ServiceCredentials > | m_services |
Definition at line 32 of file DecodingKey.h.
|
inline |
Definition at line 98 of file DecodingKey.h.
|
inlinevirtual |
Definition at line 45 of file DecodingKey.h.
void cond::DecodingKey::addDefaultService | ( | const std::string & | connectionString | ) |
Definition at line 286 of file DecodingKey.cc.
References DEFAULT_SERVICE().
void cond::DecodingKey::addService | ( | const std::string & | serviceName, |
const std::string & | connectionString, | ||
const std::string & | userName, | ||
const std::string & | password | ||
) |
Definition at line 290 of file DecodingKey.cc.
References autoCondHLT::connectionString.
size_t cond::DecodingKey::createFromInputFile | ( | const std::string & | inputFileName, |
size_t | generatedKeySize = 0 |
||
) |
Definition at line 189 of file DecodingKey.cc.
References CONNECTIONPREFIX(), cond::ServiceCredentials::connectionString, relval_steps::gen(), analyzePatCleaning_cfg::inputFile, KEYPREFIX(), geometryCSVtoXML::line, cond::KeyGenerator::make(), visualization-live-secondInstance_cfg::msg, NAMEPREFIX(), OWNERPREFIX(), cond::parseLineForNamedParams(), cond::ServiceCredentials::password, PASSWORDPREFIX(), serviceName, SERVICEPREFIX(), AlCaHLTBitMon_QueryRunRegistry::string, cond::throwException(), cond::ServiceCredentials::userName, and USERPREFIX().
void cond::DecodingKey::flush | ( | ) |
Definition at line 251 of file DecodingKey.cc.
References ws_sso_content_reader::content, cond::Cipher::encrypt(), ItemSeparator, KEY_HEADER(), KEYPREFIX(), LineSeparator, visualization-live-secondInstance_cfg::msg, NAMEPREFIX(), dbtoconf::out, GetRecoTauVFromDQM_MC_cff::outFile, OWNERPREFIX(), SERVICEPREFIX(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::throwException().
size_t cond::DecodingKey::init | ( | const std::string & | keyFileName, |
const std::string & | password, | ||
bool | readMode = true |
||
) |
Definition at line 111 of file DecodingKey.cc.
References ws_sso_content_reader::content, cond::Cipher::decrypt(), cond::getLoginName(), recoMuon::in, ItemSeparator, KEY_HEADER(), keyFile(), KEYPREFIX(), geometryCSVtoXML::line, LineSeparator, visualization-live-secondInstance_cfg::msg, NAMEPREFIX(), OWNERPREFIX(), SERVICEPREFIX(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::throwException().
|
inline |
Definition at line 115 of file DecodingKey.h.
void cond::DecodingKey::list | ( | std::ostream & | out | ) |
Definition at line 238 of file DecodingKey.cc.
References CONNECTIONPREFIX(), KEYPREFIX(), NAMEPREFIX(), OWNERPREFIX(), PASSWORDPREFIX(), SERVICEPREFIX(), and USERPREFIX().
|
inline |
Definition at line 121 of file DecodingKey.h.
|
inline |
Definition at line 109 of file DecodingKey.h.
|
inline |
Definition at line 103 of file DecodingKey.h.
|
inline |
Definition at line 127 of file DecodingKey.h.
|
static |
Definition at line 99 of file DecodingKey.cc.
References CONNECTIONPREFIX(), KEYPREFIX(), NAMEPREFIX(), OWNERPREFIX(), PASSWORDPREFIX(), alignCSCRings::s, SERVICEPREFIX(), and USERPREFIX().
|
static |
Definition at line 38 of file DecodingKey.h.
|
static |
Definition at line 36 of file DecodingKey.h.
|
static |
Definition at line 37 of file DecodingKey.h.
Referenced by cond::CredentialStore::setUpForService().
|
private |
Definition at line 72 of file DecodingKey.h.
|
private |
Definition at line 74 of file DecodingKey.h.
|
private |
Definition at line 82 of file DecodingKey.h.
|
private |
Definition at line 80 of file DecodingKey.h.
|
private |
Definition at line 78 of file DecodingKey.h.
|
private |
Definition at line 76 of file DecodingKey.h.
|
private |
Definition at line 84 of file DecodingKey.h.