Class DefaultEvaluationContext
- java.lang.Object
-
- org.keycloak.authorization.common.DefaultEvaluationContext
-
- All Implemented Interfaces:
EvaluationContext
public class DefaultEvaluationContext extends Object implements EvaluationContext
- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description protected Identity
identity
protected KeycloakSession
keycloakSession
-
Constructor Summary
Constructors Constructor Description DefaultEvaluationContext(Identity identity, Map<String,List<String>> claims, KeycloakSession keycloakSession)
DefaultEvaluationContext(Identity identity, KeycloakSession keycloakSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributes
getAttributes()
Returns all attributes within the current execution and runtime environment.protected Map<String,Collection<String>>
getBaseAttributes()
Identity
getIdentity()
Returns theIdentity
that represents an entity (person or non-person) to which the permissions must be granted, or not.
-
-
-
Field Detail
-
keycloakSession
protected final KeycloakSession keycloakSession
-
identity
protected final Identity identity
-
-
Constructor Detail
-
DefaultEvaluationContext
public DefaultEvaluationContext(Identity identity, KeycloakSession keycloakSession)
-
-
Method Detail
-
getIdentity
public Identity 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
protected Map<String,Collection<String>> getBaseAttributes()
-
getAttributes
public Attributes 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
-
-