Interface Evaluation
-
- All Known Implementing Classes:
DefaultEvaluation
public interface EvaluationAn
Evaluationis mainly used byPolicyProviderin order to evaluate a single and specificResourcePermissionagainst the configured policies.- Author:
- Pedro Igor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeny()Denies the requested permission.voiddenyIfNoEffect()Denies the requested permission if a decision was not made yet.AuthorizationProvidergetAuthorizationProvider()EvaluationContextgetContext()Returns theEvaluationContext.ResourcePermissiongetPermission()Returns theResourcePermissionto be evaluated.PolicygetPolicy()Returns thePolicy.RealmgetRealm()Returns aRealmthat can be used by policies to query information.voidgrant()Grants the requested permission to the caller.
-
-
-
Method Detail
-
getPermission
ResourcePermission getPermission()
Returns theResourcePermissionto be evaluated.- Returns:
- the permission to be evaluated
-
getContext
EvaluationContext getContext()
Returns theEvaluationContext. Which provides access to the whole evaluation runtime context.- Returns:
- the evaluation context
-
getRealm
Realm getRealm()
Returns aRealmthat can be used by policies to query information.- Returns:
- a
Realminstance
-
getAuthorizationProvider
AuthorizationProvider getAuthorizationProvider()
-
grant
void grant()
Grants the requested permission to the caller.
-
deny
void deny()
Denies the requested permission.
-
denyIfNoEffect
void denyIfNoEffect()
Denies the requested permission if a decision was not made yet.
-
-