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 SummaryFields Modifier and Type Field Description protected Identityidentityprotected KeycloakSessionkeycloakSession
 - 
Constructor SummaryConstructors Constructor Description DefaultEvaluationContext(Identity identity, Map<String,List<String>> claims, KeycloakSession keycloakSession)DefaultEvaluationContext(Identity identity, KeycloakSession keycloakSession)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesgetAttributes()Returns all attributes within the current execution and runtime environment.protected Map<String,Collection<String>>getBaseAttributes()IdentitygetIdentity()Returns theIdentitythat represents an entity (person or non-person) to which the permissions must be granted, or not.
 
- 
- 
- 
Field Detail- 
keycloakSessionprotected final KeycloakSession keycloakSession 
 - 
identityprotected final Identity identity 
 
- 
 - 
Constructor Detail- 
DefaultEvaluationContextpublic DefaultEvaluationContext(Identity identity, KeycloakSession keycloakSession) 
 
- 
 - 
Method Detail- 
getIdentitypublic Identity getIdentity() Description copied from interface:EvaluationContextReturns theIdentitythat represents an entity (person or non-person) to which the permissions must be granted, or not.- Specified by:
- getIdentityin interface- EvaluationContext
- Returns:
- the identity to which the permissions must be granted, or not
 
 - 
getBaseAttributesprotected Map<String,Collection<String>> getBaseAttributes() 
 - 
getAttributespublic Attributes getAttributes() Description copied from interface:EvaluationContextReturns all attributes within the current execution and runtime environment.- Specified by:
- getAttributesin interface- EvaluationContext
- Returns:
- the attributes within the current execution and runtime environment
 
 
- 
 
-