Leosac
0.8.0
Open Source Access Control
|
A security context for system operation. More...
#include <SecurityContext.hpp>
Public Member Functions | |
SystemSecurityContext (DBServicePtr dbsrv) | |
virtual bool | check_permission_impl (Action a, const ActionParam &ap) const override |
Reimplement this method to provide permission checking. More... | |
Public Member Functions inherited from Leosac::SecurityContext | |
SecurityContext (DBServicePtr dbsrv) | |
virtual | ~SecurityContext ()=default |
virtual bool | check_permission (Action a, const ActionParam &ap) const |
Check for the permission to perform action a with parameters ap . More... | |
bool | check_permission (Action a) const |
Check for the permission to perform a given action. More... | |
void | enforce_permission (Action a, const ActionParam &ap) const |
Similar to check_permission(), but throws is the permission is denied. More... | |
void | enforce_permission (Action a) const |
Make sure that we have the permission to perform action a , otherwise throws. More... | |
Static Public Member Functions | |
static SecurityContext & | instance () |
A security context for system operation.
Basically, this security context always grants all permissions.
Definition at line 287 of file SecurityContext.hpp.
|
explicit |
Definition at line 53 of file SecurityContext.cpp.
|
overridevirtual |
Reimplement this method to provide permission checking.
Implements Leosac::SecurityContext.
Definition at line 58 of file SecurityContext.cpp.
|
static |
Definition at line 64 of file SecurityContext.cpp.