Class DefaultEvaluationContext
java.lang.Object
org.keycloak.authorization.common.DefaultEvaluationContext
- All Implemented Interfaces:
EvaluationContext
- Author:
- Pedro Igor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultEvaluationContext
(Identity identity, Map<String, List<String>> claims, KeycloakSession keycloakSession) DefaultEvaluationContext
(Identity identity, KeycloakSession keycloakSession) -
Method Summary
Modifier and TypeMethodDescriptionReturns all attributes within the current execution and runtime environment.protected Map<String,
Collection<String>> Returns theIdentity
that represents an entity (person or non-person) to which the permissions must be granted, or not.
-
Field Details
-
keycloakSession
-
identity
-
-
Constructor Details
-
DefaultEvaluationContext
-
DefaultEvaluationContext
-
-
Method Details
-
getIdentity
Description copied from interface:EvaluationContext
Returns theIdentity
that represents an entity (person or non-person) to which the permissions must be granted, or not.- Specified by:
getIdentity
in interfaceEvaluationContext
- Returns:
- the identity to which the permissions must be granted, or not
-
getBaseAttributes
-
getAttributes
Description copied from interface:EvaluationContext
Returns all attributes within the current execution and runtime environment.- Specified by:
getAttributes
in interfaceEvaluationContext
- Returns:
- the attributes within the current execution and runtime environment
-