Uses of Class
org.forgerock.openig.el.Bindings
Package
Description
Integrates with the Java Enterprise Edition Unified Expression Language API.
Manages collections or "heaps" of associated objects, initialized from
declarative configuration artifacts.
Integration classes specifically for ForgeRock Access Management.
Scripting support.
Miscellaneous utility classes.
-
Uses of Bindings in org.forgerock.openig.el
Modifier and TypeMethodDescriptionBinds a newvalue
to the givenname
.Binds all the bindings already bound fromsource
.static Bindings
Bindings.bindings()
Returns an emptyBindings
instance (mutable).static Bindings
static Bindings
Returns aBindings
initialized with the givencontext
andrequest
.static Bindings
Returns aBindings
initialized with the givencontext
andrequest
.static Bindings
Returns aBindings
initialized with the givencontext
,request
andresponse
.Modifier and TypeMethodDescriptionBinds all the bindings already bound fromsource
.Evaluates the expression within the specified bindings and returns the resulting object if it matches the specified type, ornull
if it does not resolve or match.Evaluates asynchronously the expression with the specified bindings and returns a promise of the resulting object if it matches the specified type, or a promise completed withnull
if it does not resolve or match.static Promise<Object,
NeverThrowsException> Expressions.evaluateAsync
(Object value, Bindings bindings) Evaluate an Object that may contain some expressions that needs to be evaluated.static Promise<List<Object>,
NeverThrowsException> Expressions.evaluateAsync
(List<Object> list, Bindings bindings) Evaluate a list that may contain some Expressions that needs to be evaluated.static Promise<Map<String,
Object>, NeverThrowsException> Expressions.evaluateAsync
(Map<String, Object> map, Bindings bindings) Evaluate a map that may contain some expressions that needs to be evaluated.static Object
Compile to expression an Object that may contain some String that needs to be evaluated.static Expression<Object>
Convert a String to a compiled expression.Compile as expressions what can be compiled in a list.Compile a map that may contain some values that needs to be transformed as expression.void
Sets the result of an expression to a specified value.static <T> Expression<T>
Factory method to create an Expression.ModifierConstructorDescriptionprotected
Expression
(String expression, Class<T> expectedType, Bindings initialBindings) Constructs an expression for later evaluation. -
Uses of Bindings in org.forgerock.openig.heap
Modifier and TypeMethodDescriptionEnvironmentHeap.getProperties()
Heap.getProperties()
Returns the properties from this heap and its parents if any.HeapImpl.getProperties()
protected Bindings
GenericHeaplet.initialBindings()
Return an initial set of bindings based on the heap properties, along with any utility items from the heap, such as the clock. -
Uses of Bindings in org.forgerock.openig.openam
Modifier and TypeMethodDescriptionvoid
PolicyEnforcementFilter.setClaimsSubject
(AsyncFunction<Bindings, Map<String, Object>, NeverThrowsException> claimsSubject) Sets a function that returns a map of JWT claims to their values, for the subject.void
PolicyEnforcementFilter.setEnvironment
(AsyncFunction<Bindings, Map<String, List<Object>>, NeverThrowsException> environment) The environment passed from the client making the authorization request as a sets a map of keys to lists of values. -
Uses of Bindings in org.forgerock.openig.script
Modifier and TypeMethodDescriptionprotected final V
Synchronously runs the compiled script using the provided bindings.protected final Promise<V,
ScriptException> AbstractScriptableHeapObject.runScriptAsync
(Bindings bindings, Context context, Class<V> clazz) Asynchronously runs the compiled script using the provided bindings. -
Uses of Bindings in org.forgerock.openig.util
Modifier and TypeMethodDescriptionstatic Function<JsonValue,
Bindings, JsonValueException> JsonValues.bindings()
Returns a function that will create some bindings based of a Map-basedJsonValue
.static Function<JsonValue,
Bindings, JsonValueException> Returns a function that will create some bindings based of a Map-basedJsonValue
.Modifier and TypeMethodDescriptionstatic Function<JsonValue,
Bindings, JsonValueException> Returns a function that will create some bindings based of a Map-basedJsonValue
.static Function<JsonValue,
JsonValue, JsonValueException> Returns a function that will evaluate all String nodes.JsonValues.evaluatedAsync
(Bindings bindings) Returns an async function that will evaluate all String nodes.static <T> Function<JsonValue,
Expression<T>, JsonValueException> JsonValues.expression
(Class<T> type, Bindings bindings) Returns a function for transforming JsonValues to expressions.static Promise<Request,
URISyntaxException> BaseUriUtil.rebaseRequest
(Expression<String> baseUri, Bindings bindings, Request request) Rebase the URI of the request based on the evaluation of the baseUri expression.static Function<JsonValue,
JsonValue, JsonValueException> JsonValues.resolvedLocation
(Bindings bindings) Returns a function that will resolve the field $location.