49 bool others,
bool preference,
81 bool match(
const std::string& command)
const {
106 bool modified =
false;
108 if (response_filter) {
109 if (response_filter->filter(command, *
this, body)) {
129 std::string name =
"");
Per role configuration class.
AclPtr accept_
Accept command access control list.
RoleConfig(const std::string &name, const AclPtr &accept, const AclPtr &reject, bool others, bool preference, const ResponseFilterList &response_filters)
Constructor.
ResponseFilterList response_filters_
Response filters.
bool filter(const std::string &command, data::ConstElementPtr body) const
Filter a response.
static http::HttpResponseJsonPtr createReject(const http::HttpRequestPtr &request, const http::HttpStatusCode &status_code)
Create a reject response.
std::string name_
Role name.
static const data::SimpleKeywords ROLE_PARAMETERS
Role configuration parameters.
static RoleConfigPtr parse(data::ConstElementPtr cfg, std::string name="")
Parse a role config.
static RoleConfigPtr getConfig(const std::string &role)
Return the role config.
bool preference_
Action for both matching.
bool match(const std::string &command) const
Match access control list.
AclPtr reject_
Reject command access control list.
bool others_
Action for other commands.
virtual ~RoleConfig()=default
Destructor.
boost::shared_ptr< const Element > ConstElementPtr
std::map< std::string, isc::data::Element::types > SimpleKeywords
This specifies all accepted keywords with their types.
HttpStatusCode
HTTP status codes (cf RFC 2068).
boost::shared_ptr< HttpResponseJson > HttpResponseJsonPtr
Pointer to the HttpResponseJson object.
boost::shared_ptr< HttpRequest > HttpRequestPtr
Pointer to the HttpRequest object.
boost::shared_ptr< RoleConfig > RoleConfigPtr
Type of shared pointers to role configurations.
RolePtr roleAssign
The role assignment.
boost::shared_ptr< Acl > AclPtr
Type of shared pointers to Acl.
std::list< ResponseFilterPtr > ResponseFilterList
The type of list of shared pointers to response filters.
boost::shared_ptr< Role > RolePtr
Type of shared pointers to Role.
std::map< std::string, RoleConfigPtr > RoleConfigTable
Type of the role configurations table.
RoleConfigPtr defaultRoleConfig
The default (role is "") role configuration.
RoleConfigPtr unknownRoleConfig
The unknown (role is not in the table) role configuration.
RoleConfigTable roleConfigTable
The role configurations table.
Defines the logger used by the top-level component of kea-lfc.