84 SecurityContext::MembershipActionParam::operator
ActionParam()
91 SecurityContext::CredentialActionParam::operator
ActionParam()
101 result.
sched = *
this;
126 SecurityContext::HardwareDeviceActionParam::operator
ActionParam()
SecurityContext(DBServicePtr dbsrv)
This is the header file for a generated source file, GitSHA1.cpp.
static SecurityContext & instance()
Audit::IAuditEntryPtr audit
An optional audit object that would act as parent for the audit trail.
A security context for system operation.
std::shared_ptr< IAuditEntry > IAuditEntryPtr
AccessPointActionParam access_point
An exception that can be throw when the permission for a given operation is denied.
virtual bool check_permission(Action a, const ActionParam &ap) const
Check for the permission to perform action a with parameters ap.
HardwareDeviceActionParam device
std::shared_ptr< DBService > DBServicePtr
A SecurityContext is used to query permission while doing an operation.
MembershipActionParam membership
CredentialActionParam cred
SecurityContext & sec
The SecurityContext of the caller.
virtual bool check_permission_impl(Action a, const ActionParam &ap) const override
Reimplement this method to provide permission checking.
ExecutionContext(SecurityContext &sc)
void enforce_permission(Action a, const ActionParam &ap) const
Similar to check_permission(), but throws is the permission is denied.
SystemSecurityContext(DBServicePtr dbsrv)
An ExecutionContext is passed around to service so they have context about who is making the call and...
virtual bool check_permission_impl(Action a, const ActionParam &ap) const =0
Reimplement this method to provide permission checking.
ScheduleActionParam sched