public class DefaultEvaluationContext extends Object implements EvaluationContext
| Modifier and Type | Field and Description |
|---|---|
protected Identity |
identity |
protected KeycloakSession |
keycloakSession |
| Constructor and Description |
|---|
DefaultEvaluationContext(Identity identity,
KeycloakSession keycloakSession) |
DefaultEvaluationContext(Identity identity,
Map<String,List<String>> claims,
KeycloakSession keycloakSession) |
| Modifier and Type | Method and Description |
|---|---|
Attributes |
getAttributes()
Returns all attributes within the current execution and runtime environment.
|
protected Map<String,Collection<String>> |
getBaseAttributes() |
Identity |
getIdentity()
Returns the
Identity that represents an entity (person or non-person) to which the permissions must be granted, or not. |
protected final KeycloakSession keycloakSession
protected final Identity identity
public DefaultEvaluationContext(Identity identity, KeycloakSession keycloakSession)
public Identity getIdentity()
EvaluationContextIdentity that represents an entity (person or non-person) to which the permissions must be granted, or not.getIdentity in interface EvaluationContextprotected Map<String,Collection<String>> getBaseAttributes()
public Attributes getAttributes()
EvaluationContextgetAttributes in interface EvaluationContextCopyright © 2021 JBoss by Red Hat. All rights reserved.