Class DefaultPolicyEvaluator
java.lang.Object
org.keycloak.authorization.policy.evaluation.DefaultPolicyEvaluator
- All Implemented Interfaces:
PolicyEvaluator
- Direct Known Subclasses:
FGAPPolicyEvaluator
- Author:
- Pedro Igor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePolicyEvaluator
(ResourcePermission permission, AuthorizationProvider authorizationProvider, EvaluationContext executionContext, Decision decision, AtomicBoolean verified, Map<Policy, Map<Object, Decision.Effect>> decisionCache) void
evaluate
(ResourcePermission permission, AuthorizationProvider authorizationProvider, EvaluationContext executionContext, Decision decision, Map<Policy, Map<Object, Decision.Effect>> decisionCache) Starts the evaluation of the configured authorization policies.protected void
evaluateResourcePolicies
(ResourcePermission permission, AuthorizationProvider authorization, Consumer<Policy> policyConsumer) protected void
evaluateResourceTypePolicies
(ResourcePermission permission, AuthorizationProvider authorization, Consumer<Policy> policyConsumer) protected void
evaluateScopePolicies
(ResourcePermission permission, AuthorizationProvider authorization, Consumer<Policy> policyConsumer)
-
Constructor Details
-
DefaultPolicyEvaluator
public DefaultPolicyEvaluator()
-
-
Method Details
-
evaluate
public void evaluate(ResourcePermission permission, AuthorizationProvider authorizationProvider, EvaluationContext executionContext, Decision decision, Map<Policy, Map<Object, Decision.Effect>> decisionCache) Description copied from interface:PolicyEvaluator
Starts the evaluation of the configured authorization policies.- Specified by:
evaluate
in interfacePolicyEvaluator
decision
- aDecision
point to where notifications events will be delivered during the evaluation
-
evaluateResourcePolicies
protected void evaluateResourcePolicies(ResourcePermission permission, AuthorizationProvider authorization, Consumer<Policy> policyConsumer) -
evaluateResourceTypePolicies
protected void evaluateResourceTypePolicies(ResourcePermission permission, AuthorizationProvider authorization, Consumer<Policy> policyConsumer) -
evaluateScopePolicies
protected void evaluateScopePolicies(ResourcePermission permission, AuthorizationProvider authorization, Consumer<Policy> policyConsumer) -
createPolicyEvaluator
protected Consumer<Policy> createPolicyEvaluator(ResourcePermission permission, AuthorizationProvider authorizationProvider, EvaluationContext executionContext, Decision decision, AtomicBoolean verified, Map<Policy, Map<Object, Decision.Effect>> decisionCache)
-