olp-cpp-sdk  1.19.0
Public Member Functions | List of all members
olp::authentication::Permission Class Reference

Represents the permission with the action, policy decision, and associated resource. More...

#include <AuthorizeResult.h>

Public Member Functions

void SetAction (std::string action)
 Sets the action associated with the resource. More...
 
const std::string & GetAction () const
 Gets the action that is associated with the resource. More...
 
void SetResource (std::string resource)
 Sets the resource with which the action and decision are associated. More...
 
const std::string & GetResource () const
 Gets the resource with which the action and decision are associated. More...
 
void SetDecision (DecisionType decision)
 Sets the decision associated with the resource. More...
 
DecisionType GetDecision () const
 Gets the decision associated with the resource. More...
 

Detailed Description

Represents the permission with the action, policy decision, and associated resource.

Member Function Documentation

◆ 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
actionThe action to associate with.

◆ SetDecision()

void olp::authentication::Permission::SetDecision ( DecisionType  decision)
inline

Sets the decision associated with the resource.

Parameters
decisionThe 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
resourceThe resource to associate with the decision and action.

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