Kea 3.3.4
isc::rbac::AliasAcl Class Reference

Alias of an access control list. More...

#include <rbac_acl.h>

Inheritance diagram for isc::rbac::AliasAcl:

Public Member Functions

 AliasAcl (const std::string &name, const AclPtr &acl)
 Constructor.
const AclPtr & getAcl () const
 Returns the acl.
std::string getName () const
 Returns the name.
virtual bool match (const std::string &command) final
 Match the access control list.
Public Member Functions inherited from isc::rbac::Acl
 Acl (const std::string &name)
 Constructor.
virtual ~Acl ()=default
 Destructor.
std::string getClassName () const
 Returns the class name.

Static Public Member Functions

static void parse (data::ConstElementPtr def)
 Parse an access control list definition.
Static Public Member Functions inherited from isc::rbac::Acl
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.

Additional Inherited Members

Protected Attributes inherited from isc::rbac::Acl
std::string name_
 The class name.

Detailed Description

Alias of an access control list.

Note
: not used at the exception of its parse class method.

Definition at line 89 of file rbac_acl.h.

Constructor & Destructor Documentation

◆ AliasAcl()

isc::rbac::AliasAcl::AliasAcl ( const std::string & name,
const AclPtr & acl )
inline

Constructor.

Parameters
aclThe aliased acl.
nameThe alias name.
Exceptions
Unexpectedwhen the acl is null.

Definition at line 97 of file rbac_acl.h.

References isc::rbac::Acl::Acl(), and isc_throw.

Here is the call graph for this function:

Member Function Documentation

◆ getAcl()

const AclPtr & isc::rbac::AliasAcl::getAcl ( ) const
inline

Returns the acl.

Returns
the acl.

Definition at line 122 of file rbac_acl.h.

◆ getName()

std::string isc::rbac::AliasAcl::getName ( ) const
inline

Returns the name.

Returns
the name.

Definition at line 115 of file rbac_acl.h.

◆ match()

virtual bool isc::rbac::AliasAcl::match ( const std::string & command)
inlinefinalvirtual

Match the access control list.

Parameters
commandThe command.
Returns
true when the acl matches, false otherwise.

Implements isc::rbac::Acl.

Definition at line 108 of file rbac_acl.h.

◆ parse()

void isc::rbac::AliasAcl::parse ( data::ConstElementPtr def)
static

Parse an access control list definition.

Parameters
defDefinition of an access control list.

Definition at line 134 of file rbac_acl.cc.

References isc::rbac::aclTable, isc_throw, Element::map, and isc::rbac::Acl::parse().

Referenced by isc::rbac::Config::parse().

Here is the call graph for this function:

The documentation for this class was generated from the following files: