Interface EvaluationContext
- All Known Implementing Classes:
DefaultEvaluationContext
public interface EvaluationContext
This interface serves as a bridge between the policy evaluation runtime and the environment in which it is running. When evaluating
policies, this interface can be used to query information from the execution environment/context and enrich decisions.
- Author:
- Pedro Igor
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns all attributes within the current execution and runtime environment.Returns theIdentitythat represents an entity (person or non-person) to which the permissions must be granted, or not.
-
Field Details
-
REALM_NAME_ATTRIBUTE
- See Also:
-
CLIENT_ID_ATTRIBUTE
- See Also:
-
-
Method Details
-
getIdentity
Identity getIdentity()Returns theIdentitythat represents an entity (person or non-person) to which the permissions must be granted, or not.- Returns:
- the identity to which the permissions must be granted, or not
-
getAttributes
Attributes getAttributes()Returns all attributes within the current execution and runtime environment.- Returns:
- the attributes within the current execution and runtime environment
-