Kea 3.3.4
isc::rbac::CommandsAcl Class Reference

Explicit access control list. More...

#include <rbac_acl.h>

Inheritance diagram for isc::rbac::CommandsAcl:

Public Member Functions

 CommandsAcl (const std::set< std::string > &commands)
 Constructor.
void add (const std::string &command)
 Add a command name.
const std::set< std::string > & getCommands () const
 Returns the command names.
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

Explicit access control list.

Definition at line 312 of file rbac_acl.h.

Constructor & Destructor Documentation

◆ CommandsAcl()

isc::rbac::CommandsAcl::CommandsAcl ( const std::set< std::string > & commands)
inline

Constructor.

Parameters
commandsThe set of command names.

Definition at line 318 of file rbac_acl.h.

References isc::rbac::Acl::Acl().

Here is the call graph for this function:

Member Function Documentation

◆ add()

void isc::rbac::CommandsAcl::add ( const std::string & command)
inline

Add a command name.

Parameters
commandThe command name to add.

Definition at line 325 of file rbac_acl.h.

◆ getCommands()

const std::set< std::string > & isc::rbac::CommandsAcl::getCommands ( ) const
inline

Returns the command names.

Returns
the command names.

Definition at line 340 of file rbac_acl.h.

◆ match()

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

Match the access control list.

Returns
whether the command access matches.

Implements isc::rbac::Acl.

Definition at line 333 of file rbac_acl.h.


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