Interface Evaluation
-
- All Known Implementing Classes:
DefaultEvaluation
public interface Evaluation
An
Evaluation
is mainly used byPolicyProvider
in order to evaluate a single and specificResourcePermission
against the configured policies.- Author:
- Pedro Igor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deny()
Denies the requested permission.void
denyIfNoEffect()
Denies the requested permission if a decision was not made yet.AuthorizationProvider
getAuthorizationProvider()
EvaluationContext
getContext()
Returns theEvaluationContext
.ResourcePermission
getPermission()
Returns theResourcePermission
to be evaluated.Policy
getPolicy()
Returns thePolicy
.Realm
getRealm()
Returns aRealm
that can be used by policies to query information.void
grant()
Grants the requested permission to the caller.
-
-
-
Method Detail
-
getPermission
ResourcePermission getPermission()
Returns theResourcePermission
to 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 aRealm
that can be used by policies to query information.- Returns:
- a
Realm
instance
-
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.
-
-