Kea 3.3.4
isc::rbac::CustomRole Class Reference

Role assignment using the custom value. More...

#include <rbac_role.h>

Inheritance diagram for isc::rbac::CustomRole:

Public Member Functions

 CustomRole ()
 Constructor.
virtual std::string assign (const http::HttpRequestPtr &request) final
 Assign the role from the remote custom value.
virtual void setup (bool) final
 Setup HTTP library.
Public Member Functions inherited from isc::rbac::Role
 Role (const std::string &name)
 Constructor.
virtual ~Role ()=default
 Destructor.
std::string getName () const
 Returns the name.

Additional Inherited Members

Static Public Member Functions inherited from isc::rbac::Role
static RolePtr parse (data::ConstElementPtr cfg)
 Parse a role assignment value.
static bool requireTls (const http::HttpRequestPtr &request)
 Require TLS.
Protected Attributes inherited from isc::rbac::Role
std::string name_
 The class name.

Detailed Description

Role assignment using the custom value.

Definition at line 186 of file rbac_role.h.

Constructor & Destructor Documentation

◆ CustomRole()

isc::rbac::CustomRole::CustomRole ( )
inline

Constructor.

Definition at line 190 of file rbac_role.h.

References isc::rbac::Role::Role().

Here is the call graph for this function:

Member Function Documentation

◆ assign()

virtual std::string isc::rbac::CustomRole::assign ( const http::HttpRequestPtr & request)
inlinefinalvirtual

Assign the role from the remote custom value.

Parameters
requestThe HTTP request.
Returns
the assigned role.

Implements isc::rbac::Role.

Definition at line 197 of file rbac_role.h.

◆ setup()

virtual void isc::rbac::CustomRole::setup ( bool )
inlinefinalvirtual

Setup HTTP library.

Implements isc::rbac::Role.

Definition at line 206 of file rbac_role.h.


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