Package | Description |
---|---|
org.forgerock.api.models |
ForgeRock API Descriptor models.
|
org.forgerock.http.protocol |
Models and manages elements of the Hypertext Transfer Protocol.
|
org.forgerock.json |
Provides an API for the traversal and manipulation of JSON object model structures in Java.
|
org.forgerock.openig.heap |
Manages collections or "heaps" of associated objects, initialized from
declarative configuration artifacts.
|
org.forgerock.openig.openam |
OpenAM-specific integration classes.
|
org.forgerock.openig.util |
Miscellaneous utility classes.
|
org.forgerock.util |
Provides common interfaces and classes.
|
org.forgerock.util.promise |
An implementation of the
Promise API in Java. |
Modifier and Type | Class and Description |
---|---|
class |
TranslateJsonSchema
Iterates over each JsonValue node in the JsonValue structure and if it's a String marked for translation,
It replaces the String with a LocalizableString.
|
Modifier and Type | Method and Description |
---|---|
static <V,E extends Exception> |
Responses.noopExceptionFunction()
Utility method returning an empty function, whose goal is to ease the transformation of a
Promise type. |
static <E extends Exception> |
Responses.onExceptionInternalServerError()
Utility function that returns a
Response whose status is Status.INTERNAL_SERVER_ERROR and the
exception attached to the response as the cause. |
Modifier and Type | Class and Description |
---|---|
class |
JsonValueTraverseFunction
|
Modifier and Type | Method and Description |
---|---|
static Function<JsonValue,Charset,JsonValueException> |
JsonValueFunctions.charset()
Returns the JSON string value as a character set used for byte
encoding/decoding.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValueFunctions.deepTransformBy(Function<JsonValue,?,JsonValueException> function)
Returns the JSON value as the result of a deep JsonValue object-traversal,
applying the provided transform
function to each element. |
static Function<JsonValue,Duration,JsonValueException> |
JsonValueFunctions.duration()
Returns the JSON string value as a
Duration . |
static <T extends Enum<T>> |
JsonValueFunctions.enumConstant(Class<T> type)
Returns the JSON string value as an enum constant of the specified enum
type.
|
static Function<JsonValue,File,JsonValueException> |
JsonValueFunctions.file()
Returns the JSON string value as a
File object. |
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValueFunctions.identity()
Returns an identity function that will copy the input
JsonValue . |
static <V,E extends Exception> |
JsonValueFunctions.listOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as a
List containing objects whose type
(and value) is specified by a transformation function. |
static Function<JsonValue,Pattern,JsonValueException> |
JsonValueFunctions.pattern()
Returns the JSON string value as a regular expression pattern.
|
static Function<JsonValue,JsonPointer,JsonValueException> |
JsonValueFunctions.pointer()
Returns the JSON string value as a JSON pointer.
|
static <V> Function<JsonValue,Set<V>,JsonValueException> |
JsonValueFunctions.setOf(Class<V> type)
Returns the JSON value as a
Set containing objects whose type
(and value) is specified by the parameter type . |
static <V,E extends Exception> |
JsonValueFunctions.setOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as a
Set containing objects whose type
(and value) is specified by a transformation function. |
static Function<JsonValue,URI,JsonValueException> |
JsonValueFunctions.uri()
Returns the JSON string value as a uniform resource identifier.
|
static Function<JsonValue,URL,JsonValueException> |
JsonValueFunctions.url()
Returns the JSON string value as a uniform resource locator.
|
static Function<JsonValue,UUID,JsonValueException> |
JsonValueFunctions.uuid()
Returns the JSON string value as a universally unique identifier (UUID).
|
Modifier and Type | Method and Description |
---|---|
<V,E extends Exception> |
JsonValue.as(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as an object whose type
(and value) is specified by a transformation function.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValueFunctions.deepTransformBy(Function<JsonValue,?,JsonValueException> function)
Returns the JSON value as the result of a deep JsonValue object-traversal,
applying the provided transform
function to each element. |
static <V,E extends Exception> |
JsonValueFunctions.listOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as a
List containing objects whose type
(and value) is specified by a transformation function. |
static <V,E extends Exception> |
JsonValueFunctions.setOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as a
Set containing objects whose type
(and value) is specified by a transformation function. |
Constructor and Description |
---|
JsonValueTraverseFunction(Function<JsonValue,?,JsonValueException> transform)
Construct the traversal function with a transformation function to apply to each array element
nested object attribute value element, or primitive element.
|
Modifier and Type | Method and Description |
---|---|
protected Function<JsonValue,JsonValue,JsonValueException> |
GenericHeaplet.evaluatedWithHeapProperties()
Returns a function that will evaluate the expression hold by a
JsonValue using the properties defined in the heap of this
Heaplet. |
protected <T> Function<JsonValue,Expression<T>,JsonValueException> |
GenericHeaplet.expression(Class<T> type)
Returns a function that will create an
Expression from the string by the JsonValue using the
bindings defined in the heap of this Heaplet as initial bindings. |
Modifier and Type | Method and Description |
---|---|
void |
PolicyEnforcementFilter.setClaimsSubject(Function<Bindings,Map<String,Object>,ExpressionException> claimsSubject)
Sets a function that returns a map of JWT claims to their values, for the
subject.
|
void |
PolicyEnforcementFilter.setEnvironment(Function<Bindings,Map<String,List<Object>>,ExpressionException> environment)
The environment passed from the client making the authorization request
as a sets a map of keys to lists of values.
|
Modifier and Type | Method and Description |
---|---|
static Function<JsonValue,Bindings,JsonValueException> |
JsonValues.bindings()
Returns a function that will create some bindings based of a Map-based
JsonValue . |
static Function<JsonValue,Bindings,JsonValueException> |
JsonValues.bindings(Bindings bindings)
Returns a function that will create some bindings based of a Map-based
JsonValue . |
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.evaluated()
Returns a function that will evaluate all String nodes.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.evaluated(Bindings bindings)
Returns a function that will evaluate all String nodes.
|
static <T> Function<JsonValue,Expression<T>,JsonValueException> |
JsonValues.expression(Class<T> type)
Returns a function for transforming JsonValues to expressions.
|
static <T> Function<JsonValue,Expression<T>,JsonValueException> |
JsonValues.expression(Class<T> type,
Bindings bindings)
Returns a function for transforming JsonValues to expressions.
|
static Function<JsonValue,String,JsonValueException> |
JsonValues.heapObjectNameOrPointer()
Returns a function that will look for the name of the object.
|
static <T> Function<JsonValue,LeftValueExpression<T>,JsonValueException> |
JsonValues.leftValueExpression(Class<T> type)
Returns a function for transforming JsonValues to left-value expressions.
|
static <T> Function<JsonValue,T,HeapException> |
JsonValues.lookupOrCreateHeapObject(Heap heap,
Class<T> type)
|
static <T> Function<JsonValue,T,HeapException> |
JsonValues.optionalHeapObject(Heap heap,
Class<T> type)
|
static <T> Function<JsonValue,T,HeapException> |
JsonValues.requiredHeapObject(Heap heap,
Class<T> type)
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.resolvedLocation()
Returns a function that will resolve the field $location.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.resolvedLocation(Bindings bindings)
Returns a function that will resolve the field $location.
|
static Function<JsonValue,JsonValue,JsonValueException> |
JsonValues.slashEnded()
Returns the JsonValue with its value ended by a slash.
|
Modifier and Type | Class and Description |
---|---|
class |
CloseSilentlyFunction<VIN extends Closeable,VOUT,E extends Exception>
Function that silently closes an input-parameter after a delegate-function's apply(Object)
is invoked. |
Modifier and Type | Method and Description |
---|---|
static <IN extends Closeable,OUT,EX extends Exception> |
CloseSilentlyFunction.closeSilently(Function<IN,OUT,EX> delegate)
Wraps a delegate function in a
CloseSilentlyFunction . |
Modifier and Type | Method and Description |
---|---|
static <IN extends Closeable,OUT,EX extends Exception> |
CloseSilentlyFunction.closeSilently(Function<IN,OUT,EX> delegate)
Wraps a delegate function in a
CloseSilentlyFunction . |
static <T,R,E extends Exception> |
LambdaExceptionUtils.rethrowFunction(Function<T,R,E> function)
|
Constructor and Description |
---|
CloseSilentlyFunction(Function<VIN,VOUT,E> delegate)
Creates a new
CloseSilentlyFunction instance. |
Modifier and Type | Method and Description |
---|---|
<VOUT> Promise<VOUT,E> |
PromiseImpl.then(Function<? super V,VOUT,E> onResult) |
<VOUT> Promise<VOUT,E> |
Promise.then(Function<? super V,VOUT,E> onResult)
Submits the provided function for execution once this
Promise has
completed with a result, and returns a new Promise representing
the outcome of the function. |
<VOUT,EOUT extends Exception> |
PromiseImpl.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException) |
<VOUT,EOUT extends Exception> |
PromiseImpl.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException) |
<VOUT,EOUT extends Exception> |
Promise.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException)
Submits the provided functions for execution once this
Promise
has completed (with a result or an exception), and returns a new
Promise representing the outcome of the invoked function. |
<VOUT,EOUT extends Exception> |
Promise.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException)
Submits the provided functions for execution once this
Promise
has completed (with a result or an exception), and returns a new
Promise representing the outcome of the invoked function. |
<VOUT,EOUT extends Exception> |
PromiseImpl.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException,
Function<? super RuntimeException,VOUT,EOUT> onRuntimeException) |
<VOUT,EOUT extends Exception> |
PromiseImpl.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException,
Function<? super RuntimeException,VOUT,EOUT> onRuntimeException) |
<VOUT,EOUT extends Exception> |
PromiseImpl.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException,
Function<? super RuntimeException,VOUT,EOUT> onRuntimeException) |
<VOUT,EOUT extends Exception> |
Promise.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException,
Function<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Submits the provided functions for execution once this
Promise
has completed (with a result or an exception or a RuntimeException ), and returns a new
Promise representing the outcome of the invoked function. |
<VOUT,EOUT extends Exception> |
Promise.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException,
Function<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Submits the provided functions for execution once this
Promise
has completed (with a result or an exception or a RuntimeException ), and returns a new
Promise representing the outcome of the invoked function. |
<VOUT,EOUT extends Exception> |
Promise.then(Function<? super V,VOUT,EOUT> onResult,
Function<? super E,VOUT,EOUT> onException,
Function<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Submits the provided functions for execution once this
Promise
has completed (with a result or an exception or a RuntimeException ), and returns a new
Promise representing the outcome of the invoked function. |
<EOUT extends Exception> |
PromiseImpl.thenCatch(Function<? super E,V,EOUT> onException) |
<EOUT extends Exception> |
Promise.thenCatch(Function<? super E,V,EOUT> onException)
Submits the provided function for execution once this
Promise has
not completed with a result (has completed with an exception), and returns
a new Promise representing the outcome of the function. |
Promise<V,E> |
PromiseImpl.thenCatchRuntimeException(Function<? super RuntimeException,V,E> onRuntimeException) |
Promise<V,E> |
Promise.thenCatchRuntimeException(Function<? super RuntimeException,V,E> onRuntimeException)
Submits the provided function for execution once this
Promise has
not completed with a result nor with an exception but with a RuntimeException , and returns
a new Promise representing the outcome of the function. |
Copyright 2011-2017 ForgeRock AS.