Kea 3.3.4
isc::rbac::AndAcl Class Reference

Conjunction of access control lists. More...

#include <rbac_acl.h>

Inheritance diagram for isc::rbac::AndAcl:

Public Member Functions

 AndAcl (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

Conjunction of access control lists.

Definition at line 176 of file rbac_acl.h.

Constructor & Destructor Documentation

◆ AndAcl()

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

Constructor.

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

Definition at line 183 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::AndAcl::add ( const AclPtr & acl)
inline

Add an access control list.

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

Definition at line 195 of file rbac_acl.h.

References isc_throw.

◆ getAcls()

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

Returns the acls.

Returns
the acls.

Definition at line 218 of file rbac_acl.h.

◆ match()

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

Match the access control list.

Parameters
commandThe command.
Returns
true when all members match, false otherwise.

Implements isc::rbac::Acl.

Definition at line 206 of file rbac_acl.h.


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