7#ifndef HTTP_AUTH_CONFIG_H
8#define HTTP_AUTH_CONFIG_H
47 directory_ = directory;
93 std::string directory_;
Base type of HTTP authentication configuration.
virtual isc::data::ElementPtr toElement() const =0
Unparses HTTP authentication configuration.
virtual void parse(const isc::data::ConstElementPtr &config)=0
Parses HTTP authentication configuration.
virtual isc::http::HttpResponseJsonPtr checkAuth(const isc::http::HttpResponseCreator &creator, const isc::http::HttpRequestPtr &request) const =0
Validate HTTP request.
const std::string & getRealm() const
Returns the realm.
const std::string & getDirectory() const
Returns the common part for file paths (usually a directory).
virtual ~HttpAuthConfig()
Destructor.
virtual bool empty() const =0
Empty predicate.
void setDirectory(const std::string &directory)
Set the common part for file paths (usually a directory).
void setRealm(const std::string &realm)
Set the realm.
virtual void clear()=0
Clear configuration.
Specifies an interface for classes creating HTTP responses from HTTP requests.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< HttpAuthConfig > HttpAuthConfigPtr
Type of shared pointers to HTTP authentication configuration.
boost::shared_ptr< HttpResponseJson > HttpResponseJsonPtr
Pointer to the HttpResponseJson object.
boost::shared_ptr< HttpRequest > HttpRequestPtr
Pointer to the HttpRequest object.
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.
Base class for user context.