Uses of Class
org.forgerock.json.JsonValueException
Package
Description
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
Manages collections or "heaps" of associated objects, initialized from
declarative configuration artifacts.
Miscellaneous utility classes.
-
Uses of JsonValueException in org.forgerock.json
Modifier and TypeMethodDescriptionstatic Function<JsonValue,
byte[], JsonValueException> JsonValueFunctions.base64Binary()
Returns abyte[]
by converting the JsonValue usingJsonValue.asString()
and thenBase64
-decoding the result.static Function<JsonValue,
byte[], JsonValueException> JsonValueFunctions.base64urlBinary()
Returns abyte[]
by converting the JsonValue usingJsonValue.asString()
and thenBase64url
-decoding the result.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 transformfunction
to each element.static Function<JsonValue,
Duration, JsonValueException> JsonValueFunctions.duration()
Returns the JSON string value as aDuration
.static <T extends Enum<T>>
Function<JsonValue,T, JsonValueException> JsonValueFunctions.enumConstant
(Class<T> type) Returns the JSON string value as an enum constant of the specified enum type.static Function<JsonValue,
Instant, JsonValueException> JsonValueFunctions.epochSecondsInstant()
Returns aInstant
by converting the JsonValue into a number and interpreting that as the number of seconds since the UTC epoch as perInstant.ofEpochSecond(long)
.static Function<JsonValue,
File, JsonValueException> JsonValueFunctions.file()
Returns the JSON string value as aFile
object.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.identity()
Deprecated.static Function<JsonValue,
Instant, JsonValueException> JsonValueFunctions.instant()
static Function<JsonValue,
Optional<JsonValue>, JsonValueException> JsonValueFunctions.optional()
Return anOptional
if the given JsonValue has a value, orOptional.empty()
if the JsonValue contains a null value.static <T> Function<JsonValue,
Optional<T>, JsonValueException> JsonValueFunctions.optionalOf
(Function<JsonValue, T, JsonValueException> mappingFunction) Return anOptional
of a new type if the given JsonValue has a value, orOptional.empty()
if the JsonValue contains a null value.static Function<JsonValue,
Pattern, JsonValueException> JsonValueFunctions.pattern()
Returns the JSON string value as a regular expression pattern.JsonValueFunctions.pointer()
Returns the JSON string value as a JSON pointer.static <V> Function<JsonValue,
Set<V>, JsonValueException> Returns the JSON value as aSet
containing objects whose type (and value) is specified by the parametertype
.static Function<JsonValue,
List<String>, JsonValueException> JsonValueFunctions.stringOrListOfStrings()
Return a list of string values from the given JsonValue.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 TypeMethodDescriptionstatic 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 transformfunction
to each element.static <T> Function<JsonValue,
Optional<T>, JsonValueException> JsonValueFunctions.optionalOf
(Function<JsonValue, T, JsonValueException> mappingFunction) Return anOptional
of a new type if the given JsonValue has a value, orOptional.empty()
if the JsonValue contains a null value.ModifierConstructorDescriptionJsonValueTraverseFunction
(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. -
Uses of JsonValueException in org.forgerock.json.resource
Modifier and TypeMethodDescriptionJsonValueFunctions.queryFilter()
Parses and returns the JSON string value as aQueryFilter
.JsonValueFunctions.resourcePath()
Returns the JSON string value as aResourcePath
. -
Uses of JsonValueException in org.forgerock.openig.heap
Modifier and TypeMethodDescriptionGenericHeaplet.evaluatedWithHeapProperties()
Returns a function that will evaluate the expression hold by aJsonValue
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 anExpression
from the string by theJsonValue
using the bindings defined in the heap of this Heaplet as initial bindings. -
Uses of JsonValueException 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
.JsonValues.constantSecretReference()
Returns aSecretReference.constant(Secret)
from aGenericSecret
attribute value.JsonValues.encryptionMethod()
Returns a function that transforms the JSON value to aEncryptionMethod
object.static Function<JsonValue,
JsonValue, JsonValueException> JsonValues.evaluated()
Returns a function that will evaluate all String nodes.static Function<JsonValue,
JsonValue, JsonValueException> 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,
Instant, JsonValueException> JsonValues.instant()
static Function<JsonValue,
Duration, JsonValueException> JsonValues.javaDuration()
static <T> Function<JsonValue,
LeftValueExpression<T>, JsonValueException> JsonValues.leftValueExpression
(Class<T> type) Returns a function for transforming JsonValues to left-value expressions.static Function<JsonValue,
Duration, JsonValueException> JsonValues.limitedDuration
(Duration defaultDuration) Transform duration configuration to aDuration
, ensuring its value is limited.static Function<JsonValue,
Number, JsonValueException> JsonValues.numberInInclusiveRange
(Number lower, Number upper) static Function<JsonValue,
Optional<JsonValue>, JsonValueException> JsonValues.optional()
static <T> Function<JsonValue,
Optional<T>, JsonValueException> JsonValues.optionalOf
(Function<JsonValue, T, JsonValueException> delegate) Returns a wrapping function returning anOptional
result of the givendelegate
function.static Function<JsonValue,
Integer, JsonValueException> JsonValues.positiveInteger()
static Function<JsonValue,
Duration, JsonValueException> JsonValues.positiveLimitedDuration
(Duration defaultDuration) Transform duration configuration to aDuration
, ensuring its value is positive and limited.JsonValues.properties()
Returns a function that transforms the JSON value to aProperties
object.static <S extends Secret>
Function<JsonValue,Purpose<S>, JsonValueException> static Function<JsonValue,
JsonValue, JsonValueException> Displays a custom message when the required attribute is not present in the configuration.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.JsonValues.secretPropertyFormat
(Heap heap) Returns aSecretPropertyFormat
object from aJsonValue
.static <S extends Secret>
Function<JsonValue,SecretReference<S>, JsonValueException> JsonValues.secretReferenceOf
(Function<JsonValue, Purpose<S>, JsonValueException> purposeTransformer, SecretsProvider secretsProvider) Returns a function that returns aSecretReference
for thePurpose
represented by the givenString
value label and known to the suppliedSecretsProvider
.static Function<JsonValue,
JsonValue, JsonValueException> JsonValues.slashEnded()
Returns the JsonValue with its value ended by a slash.static Function<JsonValue,
JsonValue, JsonValueException> JsonValues.trailingSlashRemoved()
Returns the JsonValue with any trailing slash removed from the value.Modifier and TypeMethodDescriptionstatic <T> Function<JsonValue,
Optional<T>, JsonValueException> JsonValues.optionalOf
(Function<JsonValue, T, JsonValueException> delegate) Returns a wrapping function returning anOptional
result of the givendelegate
function.static <S extends Secret>
Function<JsonValue,SecretReference<S>, JsonValueException> JsonValues.secretReferenceOf
(Function<JsonValue, Purpose<S>, JsonValueException> purposeTransformer, SecretsProvider secretsProvider) Returns a function that returns aSecretReference
for thePurpose
represented by the givenString
value label and known to the suppliedSecretsProvider
.
JsonValue::copy
directly instead