Package org.keycloak.authorization
Class FGAPEvaluation
java.lang.Object
org.keycloak.authorization.FGAPEvaluation
- All Implemented Interfaces:
Evaluation
-
Constructor Summary
ConstructorsConstructorDescriptionFGAPEvaluation(Evaluation evaluation, Map<Scope, Set<Resource>> scopesGrantedByResource) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeny()Denies the requested permission.voidDenies the requested permission if a decision was not made yet.Returns theEvaluationContext.Returns the parent policy (a permission) of the policy being evaluated.Returns theResourcePermissionto be evaluated.Returns thePolicy.getRealm()Returns aRealmthat can be used by policies to query information.voidgrant()Grants the requested permission to the caller.booleanIf the given scope should not be granted when the givendeniedPolicydenies access to a resource or a specific scope.booleanIf the given scope should be granted when the givengrantedPolicyis granting access to a resource or a specific scope.voidsetEffect(Decision.Effect effect)
-
Constructor Details
-
FGAPEvaluation
-
-
Method Details
-
isGranted
Description copied from interface:EvaluationIf the given scope should be granted when the givengrantedPolicyis granting access to a resource or a specific scope.- Specified by:
isGrantedin interfaceEvaluation- Parameters:
grantedPolicy- the policy granting accessgrantedScope- the scope that should be granted- Returns:
trueif the scope is granted. Otherwise, returnsfalse
-
isDenied
Description copied from interface:EvaluationIf the given scope should not be granted when the givendeniedPolicydenies access to a resource or a specific scope.- Specified by:
isDeniedin interfaceEvaluation- Parameters:
deniedPolicy- the policy granting accessdeniedScope- the scope that should be granted- Returns:
trueif the scope is granted. Otherwise, returnsfalse
-
getPermission
Description copied from interface:EvaluationReturns theResourcePermissionto be evaluated.- Specified by:
getPermissionin interfaceEvaluation- Returns:
- the permission to be evaluated
-
getContext
Description copied from interface:EvaluationReturns theEvaluationContext. Which provides access to the whole evaluation runtime context.- Specified by:
getContextin interfaceEvaluation- Returns:
- the evaluation context
-
getPolicy
Description copied from interface:EvaluationReturns thePolicy. being evaluated.- Specified by:
getPolicyin interfaceEvaluation- Returns:
- the evaluation context
-
getRealm
Description copied from interface:EvaluationReturns aRealmthat can be used by policies to query information.- Specified by:
getRealmin interfaceEvaluation- Returns:
- a
Realminstance
-
getAuthorizationProvider
- Specified by:
getAuthorizationProviderin interfaceEvaluation
-
grant
public void grant()Description copied from interface:EvaluationGrants the requested permission to the caller.- Specified by:
grantin interfaceEvaluation
-
deny
public void deny()Description copied from interface:EvaluationDenies the requested permission.- Specified by:
denyin interfaceEvaluation
-
denyIfNoEffect
public void denyIfNoEffect()Description copied from interface:EvaluationDenies the requested permission if a decision was not made yet.- Specified by:
denyIfNoEffectin interfaceEvaluation
-
getParentPolicy
Description copied from interface:EvaluationReturns the parent policy (a permission) of the policy being evaluated.- Specified by:
getParentPolicyin interfaceEvaluation- Returns:
- the parent policy
-
getEffect
- Specified by:
getEffectin interfaceEvaluation
-
setEffect
- Specified by:
setEffectin interfaceEvaluation
-