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()) {
87 #endif // endif BASIC_HTTP_AUTH_H
Represents a basic HTTP authentication.
const std::string & getCredential() const
Returns the credential (base64 of the UTF-8 secret).
Defines the logger used by the top-level component of kea-dhcp-ddns.
const std::string & getSecret() const
Returns the secret.
boost::shared_ptr< BasicHttpAuth > BasicHttpAuthPtr
Type of pointers to basic HTTP authentication objects.
BasicHttpAuth(const std::string &user, const std::string &password)
Constructor.