20 const std::string& password)
21 : user_(user), password_(password) {
22 if (user.find(
':') != string::npos) {
30 if (secret.find(
':') == string::npos) {
36void BasicHttpAuth::buildSecret() {
37 secret_ = user_ +
":" + password_;
40void BasicHttpAuth::buildCredential() {
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
BasicHttpAuth(const std::string &user, const std::string &password)
Constructor.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
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.