20 const std::string& password)
21 : user_(user), password_(password) {
22 if (user.find(
':') != string::npos) {
23 isc_throw(BadValue,
"user '" << user <<
"' must not contain a ':'");
30 if (secret.find(
':') == string::npos) {
31 isc_throw(BadValue,
"secret '" << secret <<
"' must contain a ':");
36void BasicHttpAuth::buildSecret() {
37 secret_ = user_ +
":" + password_;
40void BasicHttpAuth::buildCredential() {
BasicHttpAuth(const std::string &user, const std::string &password)
Constructor.
string encodeBase64(const vector< uint8_t > &binary)
Encode binary data in the base64 format.
std::vector< uint8_t > encodeUtf8(const std::string &value)
Encode value string into UTF-8.
Defines the logger used by the top-level component of kea-lfc.