25 #include <olp/authentication/AuthenticationApi.h>
28 namespace authentication {
46 void SetAction(std::string action) { action_ = std::move(action); }
53 const std::string&
GetAction()
const {
return action_; }
60 void SetResource(std::string resource) { resource_ = std::move(resource); }
85 std::string resource_;
137 permissions_ = std::move(permissions);
142 std::vector<Permission> permissions_;
184 void SetClientId(std::string client_id) { client_id_ = std::move(client_id); }
195 return actions_results_;
204 actions_results_ = std::move(actions);
209 std::string client_id_;
210 std::vector<ActionResult> actions_results_;
Represents each action-resource pair response with an individual policy decision for that action: DEN...
Definition: AuthorizeResult.h:96
void SetDecision(DecisionType decision)
Sets the policy decision.
Definition: AuthorizeResult.h:112
const DecisionType & GetDecision() const
Gets the overall policy decision.
Definition: AuthorizeResult.h:105
const std::vector< Permission > & GetPermissions() const
Gets the list of permissions that are evaluated against the action and resource.
Definition: AuthorizeResult.h:129
void SetPermissions(std::vector< Permission > permissions)
Sets the list of permissions.
Definition: AuthorizeResult.h:136
Represents the policy decision for a given request context against the HERE Service.
Definition: AuthorizeResult.h:154
void SetActionResults(std::vector< ActionResult > actions)
Sets the list of results for each action.
Definition: AuthorizeResult.h:203
const std::vector< ActionResult > & GetActionResults() const
Gets the list of results for each action.
Definition: AuthorizeResult.h:194
const std::string & GetClientId() const
Gets the client ID.
Definition: AuthorizeResult.h:177
const DecisionType & GetDecision() const
Gets the overall policy decision.
Definition: AuthorizeResult.h:163
void SetClientId(std::string client_id)
Sets the client ID.
Definition: AuthorizeResult.h:184
void SetDecision(DecisionType decision)
Sets the overall policy decision.
Definition: AuthorizeResult.h:170
Represents the permission with the action, policy decision, and associated resource.
Definition: AuthorizeResult.h:39
void SetAction(std::string action)
Sets the action associated with the resource.
Definition: AuthorizeResult.h:46
void SetResource(std::string resource)
Sets the resource with which the action and decision are associated.
Definition: AuthorizeResult.h:60
const std::string & GetResource() const
Gets the resource with which the action and decision are associated.
Definition: AuthorizeResult.h:67
DecisionType GetDecision() const
Gets the decision associated with the resource.
Definition: AuthorizeResult.h:81
void SetDecision(DecisionType decision)
Sets the decision associated with the resource.
Definition: AuthorizeResult.h:74
const std::string & GetAction() const
Gets the action that is associated with the resource.
Definition: AuthorizeResult.h:53
DecisionType
Represents a policy decision: DENY or ALLOW.
Definition: AuthorizeResult.h:33
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24