![]() |
Kea 3.3.4
|
Access control list base class. More...
#include <rbac_acl.h>
Public Member Functions | |
| Acl (const std::string &name) | |
| Constructor. | |
| virtual | ~Acl ()=default |
| Destructor. | |
| std::string | getClassName () const |
| Returns the class name. | |
| virtual bool | match (const std::string &command)=0 |
| Match the access control list. | |
Static Public Member Functions | |
| static void | initTable () |
| Initialize the access control list table. | |
| static AclPtr | parse (data::ConstElementPtr cfg) |
| Parse an access control list. | |
| static AclList | parseList (data::ConstElementPtr cfg) |
| Parse a list of access control lists. | |
Protected Attributes | |
| std::string | name_ |
| The class name. | |
Access control list base class.
Definition at line 38 of file rbac_acl.h.
|
inline |
Constructor.
| name | Name of the access control list class. |
| Unexpected | when name is empty. |
Definition at line 45 of file rbac_acl.h.
References name_.
Referenced by isc::rbac::AccessAcl::AccessAcl(), isc::rbac::AliasAcl::AliasAcl(), isc::rbac::AllAcl::AllAcl(), isc::rbac::AndAcl::AndAcl(), isc::rbac::CommandsAcl::CommandsAcl(), isc::rbac::HookAcl::HookAcl(), isc::rbac::NoneAcl::NoneAcl(), isc::rbac::NotAcl::NotAcl(), and isc::rbac::OrAcl::OrAcl().
|
virtualdefault |
Destructor.
|
inline |
Returns the class name.
Definition at line 57 of file rbac_acl.h.
References name_.
|
static |
Initialize the access control list table.
Definition at line 26 of file rbac_acl.cc.
References isc::rbac::aclTable.
Referenced by isc::rbac::Config::init().
|
pure virtual |
Match the access control list.
| command | The command. |
Implemented in isc::rbac::AccessAcl, isc::rbac::AliasAcl, isc::rbac::AllAcl, isc::rbac::AndAcl, isc::rbac::CommandsAcl, isc::rbac::HookAcl, isc::rbac::NoneAcl, isc::rbac::NotAcl, and isc::rbac::OrAcl.
|
static |
Parse an access control list.
| cfg | Configuration of an access control list. |
Definition at line 35 of file rbac_acl.cc.
References isc::rbac::aclTable, isc::rbac::apiAccesses, isc::rbac::apiHooks, isc::rbac::Api::getApiByName(), isc_throw, Element::list, Element::map, parse(), parseList(), and Element::string.
Referenced by parse(), isc::rbac::AliasAcl::parse(), isc::rbac::RoleConfig::parse(), and parseList().
|
static |
Parse a list of access control lists.
| cfg | Configuration of a list of access control lists. |
Definition at line 119 of file rbac_acl.cc.
References isc_throw, Element::list, and parse().
Referenced by parse().
|
protected |