Package org.keycloak.authorization.admin
Class PolicyEvaluationService.EvaluationDecisionCollector
- java.lang.Object
-
- org.keycloak.authorization.policy.evaluation.AbstractDecisionCollector
-
- org.keycloak.authorization.policy.evaluation.DecisionPermissionCollector
-
- org.keycloak.authorization.admin.PolicyEvaluationService.EvaluationDecisionCollector
-
- All Implemented Interfaces:
Decision<DefaultEvaluation>
- Enclosing class:
- PolicyEvaluationService
public static class PolicyEvaluationService.EvaluationDecisionCollector extends DecisionPermissionCollector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.authorization.Decision
Decision.Effect
-
-
Field Summary
-
Fields inherited from class org.keycloak.authorization.policy.evaluation.AbstractDecisionCollector
results
-
-
Constructor Summary
Constructors Constructor Description EvaluationDecisionCollector(AuthorizationProvider authorizationProvider, ResourceServer resourceServer, AuthorizationRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Result>
getResults()
protected void
grantPermission(AuthorizationProvider authorizationProvider, Set<Permission> permissions, ResourcePermission permission, Collection<Scope> grantedScopes, ResourceServer resourceServer, AuthorizationRequest request, Result result)
protected boolean
isGranted(Result.PolicyResult policyResult)
-
Methods inherited from class org.keycloak.authorization.policy.evaluation.DecisionPermissionCollector
onComplete, onError, onGrant, results
-
Methods inherited from class org.keycloak.authorization.policy.evaluation.AbstractDecisionCollector
onComplete, onComplete, onComplete, onDecision
-
-
-
-
Constructor Detail
-
EvaluationDecisionCollector
public EvaluationDecisionCollector(AuthorizationProvider authorizationProvider, ResourceServer resourceServer, AuthorizationRequest request)
-
-
Method Detail
-
isGranted
protected boolean isGranted(Result.PolicyResult policyResult)
- Overrides:
isGranted
in classAbstractDecisionCollector
-
grantPermission
protected void grantPermission(AuthorizationProvider authorizationProvider, Set<Permission> permissions, ResourcePermission permission, Collection<Scope> grantedScopes, ResourceServer resourceServer, AuthorizationRequest request, Result result)
- Overrides:
grantPermission
in classDecisionPermissionCollector
-
getResults
public Collection<Result> getResults()
-
-