Search in sources :

Example 1 with DecisionPermissionCollector

use of org.keycloak.authorization.policy.evaluation.DecisionPermissionCollector in project keycloak by keycloak.

the class UnboundedPermissionEvaluator method evaluate.

@Override
public Collection<Permission> evaluate(ResourceServer resourceServer, AuthorizationRequest request) {
    DecisionPermissionCollector decision = new DecisionPermissionCollector(authorizationProvider, resourceServer, request);
    evaluate(decision);
    return decision.results();
}
Also used : DecisionPermissionCollector(org.keycloak.authorization.policy.evaluation.DecisionPermissionCollector)

Example 2 with DecisionPermissionCollector

use of org.keycloak.authorization.policy.evaluation.DecisionPermissionCollector in project keycloak by keycloak.

the class IterablePermissionEvaluator method evaluate.

@Override
public Collection<Permission> evaluate(ResourceServer resourceServer, AuthorizationRequest request) {
    DecisionPermissionCollector decision = new DecisionPermissionCollector(authorizationProvider, resourceServer, request);
    evaluate(decision);
    return decision.results();
}
Also used : DecisionPermissionCollector(org.keycloak.authorization.policy.evaluation.DecisionPermissionCollector)

Aggregations

DecisionPermissionCollector (org.keycloak.authorization.policy.evaluation.DecisionPermissionCollector)2