Represents the permission with the action, policy decision, and associated resource.
More...
#include <AuthorizeResult.h>
Represents the permission with the action, policy decision, and associated resource.
◆ GetAction()
const std::string& olp::authentication::Permission::GetAction |
( |
| ) |
const |
|
inline |
Gets the action that is associated with the resource.
- Returns
- A string that represents the action.
◆ GetDecision()
DecisionType olp::authentication::Permission::GetDecision |
( |
| ) |
const |
|
inline |
Gets the decision associated with the resource.
- Returns
- The decision for the associated resource.
◆ GetResource()
const std::string& olp::authentication::Permission::GetResource |
( |
| ) |
const |
|
inline |
Gets the resource with which the action and decision are associated.
- Returns
- The resource name.
◆ SetAction()
void olp::authentication::Permission::SetAction |
( |
std::string |
action | ) |
|
|
inline |
Sets the action associated with the resource.
- Parameters
-
action | The action to associate with. |
◆ SetDecision()
void olp::authentication::Permission::SetDecision |
( |
DecisionType |
decision | ) |
|
|
inline |
Sets the decision associated with the resource.
- Parameters
-
decision | The decision to associate with the resource. |
◆ SetResource()
void olp::authentication::Permission::SetResource |
( |
std::string |
resource | ) |
|
|
inline |
Sets the resource with which the action and decision are associated.
- Parameters
-
resource | The resource to associate with the decision and action. |
The documentation for this class was generated from the following file: