Kea 3.3.4
isc::rbac::OrAcl Class Reference

Disjunction of access control lists. More...

#include <rbac_acl.h>

Inheritance diagram for isc::rbac::OrAcl:

Public Member Functions

 OrAcl (const AclList &acls)
 Constructor.
void add (const AclPtr &acl)
 Add an access control list.
const AclList & getAcls () const
 Returns the acls.
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.

Additional Inherited Members

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.
Protected Attributes inherited from isc::rbac::Acl
std::string name_
 The class name.

Detailed Description

Disjunction of access control lists.

Definition at line 228 of file rbac_acl.h.

Constructor & Destructor Documentation

◆ OrAcl()

isc::rbac::OrAcl::OrAcl ( const AclList & acls)
inline

Constructor.

Parameters
aclsAcls to disjunct.
Exceptions
Unexpectedwhen an acl is null.

Definition at line 235 of file rbac_acl.h.

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

Here is the call graph for this function:

Member Function Documentation

◆ add()

void isc::rbac::OrAcl::add ( const AclPtr & acl)
inline

Add an access control list.

Parameters
aclAcl to add.
Exceptions
Unexpectedif the acl is null.

Definition at line 247 of file rbac_acl.h.

References isc_throw.

◆ getAcls()

const AclList & isc::rbac::OrAcl::getAcls ( ) const
inline

Returns the acls.

Returns
the acls.

Definition at line 270 of file rbac_acl.h.

◆ match()

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

Match the access control list.

Parameters
commandThe command.
Returns
true when a member matches, false otherwise.

Implements isc::rbac::Acl.

Definition at line 258 of file rbac_acl.h.


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