7#ifndef BASIC_HTTP_AUTH_H
8#define BASIC_HTTP_AUTH_H
12#include <boost/shared_ptr.hpp>
13#include <unordered_set>
29 BasicHttpAuth(
const std::string& user,
const std::string& password);
53 void buildCredential();
59 std::string password_;
66 std::string credential_;
80 "Basic " + basic_auth.getCredential()) {
Represents a basic HTTP authentication.
const std::string & getCredential() const
Returns the credential (base64 of the UTF-8 secret).
BasicHttpAuth(const std::string &user, const std::string &password)
Constructor.
const std::string & getSecret() const
Returns the secret.
boost::shared_ptr< BasicHttpAuth > BasicHttpAuthPtr
Type of pointers to basic HTTP authentication objects.
Defines the logger used by the top-level component of kea-lfc.