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