Uses of Class
org.forgerock.json.JsonValue
-
Packages that use JsonValue Package Description org.forgerock.audit Package contains the AuditService.org.forgerock.audit.events Package contains audit events.org.forgerock.audit.events.handlers This package contains the defaultAuditEventHandlers
.org.forgerock.audit.events.handlers.buffering This package contains the batch publisher and its various implementations.org.forgerock.audit.filter Contains the classes for filtering audit events.org.forgerock.audit.handlers.csv This package contains the default AuditEventHandler implementations.org.forgerock.audit.handlers.elasticsearch This package contains the ElasticsearchAuditEventHandler
implementation.org.forgerock.audit.handlers.jdbc This package contains a JDBC AuditEventHandler implementation.org.forgerock.audit.handlers.jms This package contains a JMS AuditEventHandler implementation.org.forgerock.audit.handlers.json This package contains the JSON-fileAuditEventHandler
implementation.org.forgerock.audit.handlers.json.stdout This package contains the JSON-stdoutAuditEventHandler
implementation.org.forgerock.audit.handlers.splunk This package contains the audit handler implementation for Splunk.org.forgerock.audit.handlers.syslog This package contains a Syslog AuditEventHandler implementation.org.forgerock.audit.json This package contains utilities to build and configure audit service and handlers from JSON configuration.org.forgerock.audit.util This package contains utility classes used in the audit service.org.forgerock.http.oauth2 This package provides APIs for OAuth 2.0 services implementations.org.forgerock.http.routing Provides routing functionality for HTTP requests.org.forgerock.http.session Provides interfaces for managing and interacting with HTTP Sessions.org.forgerock.json Provides an API for the traversal and manipulation of JSON object model structures in Java.org.forgerock.json.jose.jwk Classes and interfaces for creating and manipulating JWKs.org.forgerock.json.jose.jwt Classes and interfaces for JWTs.org.forgerock.json.jose.tokenhandler JWT implementation(s) ofTokenHandler
.org.forgerock.json.resource Classes and interfaces for core types including connections, request handlers, resources, and their exceptions.org.forgerock.json.resource.http JSON resource Commons HTTP Framework integration.org.forgerock.openig.audit Service Provider interface for registering audit events.org.forgerock.openig.decoration Decorator API to ease heap object customization and transformation.org.forgerock.openig.decoration.baseuri Contains a decorator which overrides the existing request URI, making requests relative to a new base URI.org.forgerock.openig.decoration.capture Capture decoration classes that prints filters and handlers input and output messages.org.forgerock.openig.decoration.global This package contains a special decorator that is responsible to invoke other decorators.org.forgerock.openig.decoration.helper Contains an abstract decorator dedicated to Filter and Handler.org.forgerock.openig.decoration.timer Contains a decorator that log time elapsed in a Filter or a Handler.org.forgerock.openig.filter Filters the requests and/or responses of HTTP.org.forgerock.openig.filter.circuitbreaker This package contains the components used to implement circuit breaking.org.forgerock.openig.filter.oauth2 This package contains the OAuth2 Token validation filter that acts as an OAuth 2 Resource Server.org.forgerock.openig.filter.oauth2.client OAuth 2.0 Client filter implementation.org.forgerock.openig.filter.oauth2.client.authentication Collection of heaplets supporting OAuth2 client authentication Filters.org.forgerock.openig.filter.oauth2.cnf JWT confirmation key support for access tokens.org.forgerock.openig.handler Handles HTTP requests by generating responses.org.forgerock.openig.handler.router Provides automated router capability that loads its configurations files (called routes) from a given directory.org.forgerock.openig.handler.saml Identity Gateway SAML support.org.forgerock.openig.heap Manages collections or "heaps" of associated objects, initialized from declarative configuration artifacts.org.forgerock.openig.http Integrates with the ForgeRock HTTP Framework.org.forgerock.openig.openam Integration classes specifically for ForgeRock Access Management.org.forgerock.openig.secrets Provides the Common Secrets API for accessing secrets of various kinds.org.forgerock.openig.tools.am Access Management Server.org.forgerock.openig.tools.jwt.validation This package contains classes used to perform JWT validation.org.forgerock.openig.tools.notifications AM notifications service.org.forgerock.openig.tools.notifications.ws Web socket notifications service implementation.org.forgerock.openig.tools.session This package contains classes to call AM to retrieve user's session info.org.forgerock.openig.tools.userprofile This package contains classes to call AM to retrieve user's profile info.org.forgerock.openig.types.importer Route import support.org.forgerock.openig.ui.record Defines a storage service to be used by the UI to persist its component model.org.forgerock.openig.util Miscellaneous utility classes.org.forgerock.services This package contains the classes classes and interfaces used in the services' implementations.org.forgerock.services.context This package contains theContext
interface and various common protocol independent implementations.org.forgerock.tokenhandler Provides token handler definition.org.forgerock.util.query Provides a mechanism for implementing query filters. -
-
Uses of JsonValue in org.forgerock.audit
Constructors in org.forgerock.audit with parameters of type JsonValue Constructor Description AuditingContext(JsonValue savedContext, ClassLoader classLoader)
Restore a serialized audit context. -
Uses of JsonValue in org.forgerock.audit.events
Fields in org.forgerock.audit.events declared as JsonValue Modifier and Type Field Description protected JsonValue
AuditEventBuilder. jsonValue
Represents the event as a JSON value.Methods in org.forgerock.audit.events that return JsonValue Modifier and Type Method Description static JsonValue
AuditEventHelper. getAuditEventProperties(JsonValue auditEvent)
Gets the Audit Event schema properties.static JsonValue
AuditEventHelper. getAuditEventSchema(JsonValue auditEvent)
Gets the Audit Event schema.JsonValue
EventTopicsMetaData. getSchema(String topic)
Returns the JSON schema for the requested topic if this object has meta-data for that topic.JsonValue
AuditEvent. getValue()
Returns the Json value of this event.Methods in org.forgerock.audit.events with parameters of type JsonValue Modifier and Type Method Description static JsonValue
AuditEventHelper. getAuditEventProperties(JsonValue auditEvent)
Gets the Audit Event schema properties.static JsonValue
AuditEventHelper. getAuditEventSchema(JsonValue auditEvent)
Gets the Audit Event schema.static List<String>
AuditEventHelper. getConfiguredAuditEventHandlers(JsonValue auditEvent)
Gets the AuditEventHandlers that the audit event is configure to log to.static String
AuditEventHelper. getPropertyType(JsonValue auditEvent, JsonPointer property)
Gets a AuditEvent property type.static boolean
AuditEventHelper. isPropertyRequired(JsonValue auditEvent, JsonPointer property)
Gets whether a AuditEvent property is required.T
AccessAuditEventBuilder. request(String protocol, String operation, JsonValue detail)
Sets the provided request details for the event.T
AccessAuditEventBuilder. responseWithDetail(AccessAuditEventBuilder.ResponseStatus status, String statusCode, long elapsedTime, TimeUnit elapsedTimeUnits, JsonValue detail)
Sets the provided response for the event, with an additional detail.EventTopicsMetaDataBuilder
EventTopicsMetaDataBuilder. withAdditionalTopicSchemas(JsonValue additionalTopicSchemas)
Specifies schemas for additional topics.EventTopicsMetaDataBuilder
EventTopicsMetaDataBuilder. withCoreTopicSchemaExtensions(JsonValue coreTopicSchemaExtensions)
Specifies additional fields that should be added to the schemas for core event topics.Constructor parameters in org.forgerock.audit.events with type arguments of type JsonValue Constructor Description EventTopicsMetaData(Map<String,JsonValue> eventTopicsMetaData)
Create a new EventTopicsMetaData. -
Uses of JsonValue in org.forgerock.audit.events.handlers
Methods in org.forgerock.audit.events.handlers that return JsonValue Modifier and Type Method Description JsonValue
AuditEventTopicState. getEvent()
Returns the event content.Methods in org.forgerock.audit.events.handlers with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
AuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Publishes an event to the provided topic.Promise<ResourceResponse,ResourceException>
NoOpAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Constructors in org.forgerock.audit.events.handlers with parameters of type JsonValue Constructor Description AuditEventTopicState(Context context, String topic, JsonValue event)
Creates a (topic,event) pair. -
Uses of JsonValue in org.forgerock.audit.events.handlers.buffering
Methods in org.forgerock.audit.events.handlers.buffering with parameters of type JsonValue Modifier and Type Method Description void
BatchConsumer. addToBatch(String topic, JsonValue event, StringBuilder payload)
Adds an audit event to a batch payload.boolean
BatchPublisher. offer(String topic, JsonValue event)
Offers up an event to be added to a batch.boolean
BufferedBatchPublisher. offer(String topic, JsonValue event)
Inserts the specified element at the tail of this queue if it is possible to do so immediately without exceeding the queue's capacity, returningtrue
upon success andfalse
if this queue is full. -
Uses of JsonValue in org.forgerock.audit.filter
Methods in org.forgerock.audit.filter with parameters of type JsonValue Modifier and Type Method Description void
Filter. doFilter(String auditTopic, JsonValue auditEvent)
Runs a filter on the given audit event. -
Uses of JsonValue in org.forgerock.audit.handlers.csv
Methods in org.forgerock.audit.handlers.csv with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
CsvAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Create a csv audit log entry. -
Uses of JsonValue in org.forgerock.audit.handlers.elasticsearch
Methods in org.forgerock.audit.handlers.elasticsearch with parameters of type JsonValue Modifier and Type Method Description void
ElasticsearchAuditEventHandler. addToBatch(String topic, JsonValue event, StringBuilder payload)
Adds an audit event to an Elasticsearch Bulk API payload.Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
protected Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishSingleEvent(String topic, JsonValue event)
Publishes a single event to the provided topic. -
Uses of JsonValue in org.forgerock.audit.handlers.jdbc
Methods in org.forgerock.audit.handlers.jdbc with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
JdbcAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
Publishes an event to the provided topic. -
Uses of JsonValue in org.forgerock.audit.handlers.jms
Methods in org.forgerock.audit.handlers.jms with parameters of type JsonValue Modifier and Type Method Description void
JmsAuditEventHandler. addToBatch(String topic, JsonValue event, StringBuilder payload)
Promise<ResourceResponse,ResourceException>
JmsAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.json
Methods in org.forgerock.audit.handlers.json with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
JsonAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.json.stdout
Methods in org.forgerock.audit.handlers.json.stdout with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
JsonStdoutAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.splunk
Methods in org.forgerock.audit.handlers.splunk with parameters of type JsonValue Modifier and Type Method Description void
SplunkAuditEventHandler. addToBatch(String topic, JsonValue event, StringBuilder payload)
Promise<ResourceResponse,ResourceException>
SplunkAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.syslog
Methods in org.forgerock.audit.handlers.syslog with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
SyslogAuditEventHandler. publishEvent(Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.json
Methods in org.forgerock.audit.json that return JsonValue Modifier and Type Method Description static JsonValue
AuditJsonConfig. getAuditEventHandlerConfigurationSchema(String className, ClassLoader classLoader)
Gets the configuration schema for an audit event handler as json schema.static JsonValue
AuditJsonConfig. getJson(InputStream input)
Returns a JSON value from the provided input stream.Methods in org.forgerock.audit.json with parameters of type JsonValue Modifier and Type Method Description static <C extends EventHandlerConfiguration>
CAuditJsonConfig. parseAuditEventHandlerConfiguration(Class<C> clazz, JsonValue jsonConfig)
Returns the audit event handler configuration from the provided JSON string.static AuditServiceConfiguration
AuditJsonConfig. parseAuditServiceConfiguration(JsonValue json)
Returns the audit service configuration from the provided JSON value.static void
AuditJsonConfig. registerHandlerToService(JsonValue jsonConfig, AuditServiceBuilder auditServiceBuilder)
Configures and registers the audit event handler corresponding to the provided JSON configuration to the provided audit service.static void
AuditJsonConfig. registerHandlerToService(JsonValue jsonConfig, AuditServiceBuilder auditServiceBuilder, ClassLoader classLoader)
Configures and registers the audit event handler corresponding to the provided JSON configuration to the provided audit service, using a specific class loader. -
Uses of JsonValue in org.forgerock.audit.util
Methods in org.forgerock.audit.util that return JsonValue Modifier and Type Method Description static JsonValue
ElasticsearchUtil. denormalizeJson(JsonValue value)
De-normalizes JSON that was previously normalized byElasticsearchUtil.normalizeJson(JsonValue)
.static JsonValue
JsonValueUtils. expand(Map<String,Object> object)
Expands a Json Object Map, where the keys of the map are theJsonPointer
s and the values are the value theJsonPointer
resolves to.protected static JsonValue
ElasticsearchUtil. restoreKeyPeriods(JsonValue value, JsonValue normalized)
Reverses the normalization steps preformed byElasticsearchUtil.replaceKeyPeriodsWithUnderscores(String)
.Methods in org.forgerock.audit.util with parameters of type JsonValue Modifier and Type Method Description static JsonValue
ElasticsearchUtil. denormalizeJson(JsonValue value)
De-normalizes JSON that was previously normalized byElasticsearchUtil.normalizeJson(JsonValue)
.static String
JsonValueUtils. extractValueAsString(JsonValue json, String fieldName)
Extracts String representation of field identified byfieldName
fromjson
object.static String
JsonValueUtils. extractValueAsString(JsonValue json, JsonPointer pointer)
Extracts String representation of field identified bypointer
fromjson
object.static Map<String,Object>
JsonValueUtils. flatten(JsonValue jsonValue)
Flattens aJsonValue
to a Map, where the keys of the Map areJsonPointer
s and the values are the value theJsonPointer
s resolve to.static Set<String>
JsonSchemaUtils. generateJsonPointers(JsonValue schema)
Generates the Set ofJsonPointer
s in a given JsonSchema.static String
ElasticsearchUtil. normalizeJson(JsonValue value)
Normalizes JSON to conform to Elasticsearch data-format restrictions.static boolean
ElasticsearchUtil. renameField(JsonValue jsonValue, String oldKey, String newKey)
Renames a field within the givenJsonValue
.protected static JsonValue
ElasticsearchUtil. restoreKeyPeriods(JsonValue value, JsonValue normalized)
Reverses the normalization steps preformed byElasticsearchUtil.replaceKeyPeriodsWithUnderscores(String)
. -
Uses of JsonValue in org.forgerock.http.oauth2
Methods in org.forgerock.http.oauth2 that return JsonValue Modifier and Type Method Description JsonValue
AccessTokenInfo. asJsonValue()
Returns the raw JSON as aJsonValue
.Constructors in org.forgerock.http.oauth2 with parameters of type JsonValue Constructor Description AccessTokenInfo(JsonValue rawInfo, String token, Set<String> scopes, long expiresAt)
Build anAccessTokenInfo
with the provided information.OAuth2Context(JsonValue savedContext, ClassLoader classLoader)
Creates a new context from the JSON representation of a previously persisted context. -
Uses of JsonValue in org.forgerock.http.routing
Constructors in org.forgerock.http.routing with parameters of type JsonValue Constructor Description ApiVersionRouterContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation.UriRouterContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation. -
Uses of JsonValue in org.forgerock.http.session
Constructors in org.forgerock.http.session with parameters of type JsonValue Constructor Description SessionContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation. -
Uses of JsonValue in org.forgerock.json
Methods in org.forgerock.json that return JsonValue Modifier and Type Method Description JsonValue
JsonValue. add(int index, Object object)
Adds the specified value to the list.JsonValue
JsonValue. add(Object object)
Adds the specified value to the end of the list.JsonValue
JsonValue. add(String key, Object object)
Adds the specified value.JsonValue
JsonValue. add(JsonPointer pointer, Object object)
Adds the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValue. addIfNotNull(String key, Object object)
Adds the specified object value only if it is not nullJsonValue
JsonValue. addPermissive(JsonPointer pointer, Object object)
Adds the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValueTraverseFunction. apply(JsonValue value)
JsonValue
JsonValue. clone()
Returns a shallow copy of this JSON value.JsonValue
JsonValue. copy()
Returns a deep copy of this JSON value.JsonValue
JsonValue. defaultTo(Object object)
Defaults the JSON value to the specified value if it is currentlynull
.static JsonValue
JsonPatch. diff(JsonValue original, JsonValue target)
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.JsonValue
JsonValue. diff(JsonValue target)
Performs a deep comparison of this JSON vlaue with another JSON value, and produces a JSON Patch value, which contains the operations necessary to modify the current value to arrive at thetarget
value.JsonValue
JsonValue. expect(Class<?> type)
Called to enforce that the JSON value is of a particular type.JsonValue
JsonValue. get(int index)
Returns the specified child value.JsonValue
JsonValue. get(String key)
Returns the specified item value.JsonValue
JsonValue. get(JsonPointer pointer)
Returns the specified child value with a pointer, relative to this value as root.JsonValue
JsonValueException. getJsonValue()
Returns the JSON value for which the exception was thrown.static JsonValue
JsonValue. json(Object object)
Returns a JSON value whose content is the provided object.static JsonValue
JsonPatch. merge(JsonValue first, JsonValue second)
Creates a new JSON value which combines the contents two JSON values.JsonValue
JsonValue. merge(JsonValue other)
Creates a new JSON value which combines the contents this JSON value with another.JsonValue
JsonValue. put(int index, Object object)
Sets the value of the specified child list element.JsonValue
JsonValue. put(String key, Object object)
Sets the value of the specified member.JsonValue
JsonValue. put(JsonPointer pointer, Object object)
Sets the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValue. putIfNotNull(String key, Object object)
Sets the value of the specified member, only if it is not null.JsonValue
JsonValue. putPermissive(JsonPointer pointer, Object object)
Sets the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValue. required()
Throws aJsonValueException
if the JSON value isnull
.Methods in org.forgerock.json that return types with arguments of type JsonValue Modifier and Type Method Description static Function<JsonValue,byte[],JsonValueException>
JsonValueFunctions. base64Binary()
static Function<JsonValue,byte[],JsonValueException>
JsonValueFunctions. base64urlBinary()
Returns abyte[]
by converting the JsonValue usingasString()
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,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.useJsonValue::copy
directly insteadstatic Function<JsonValue,JsonValue,JsonValueException>
JsonValueFunctions. identity()
Deprecated.useJsonValue::copy
directly insteadstatic Function<JsonValue,Instant,JsonValueException>
JsonValueFunctions. instant()
static Function<JsonValue,Integer,NumberFormatException>
JsonValueFunctions. integer()
Returns anInteger
by converting the JsonValue usingasInteger()
, or by parsing the JsonValue string usingInteger.parseInt(String)
.Iterator<JsonValue>
JsonValue. iterator()
Returns an iterator over the child values that this JSON value contains.static <V,E extends Exception>
Function<JsonValue,List<V>,E>JsonValueFunctions. listOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.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 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,Boolean,NeverThrowsException>
JsonValueFunctions. parseBoolean()
Returns aBoolean
by converting the JsonValue usingasLong()
, or by parsing the JsonValue string usingBoolean.parseBoolean(String)
.static Function<JsonValue,Long,NumberFormatException>
JsonValueFunctions. parseLong()
Returns aLong
by converting the JsonValue usingasLong()
, or by parsing the JsonValue string usingLong.parseLong(String)
.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 aSet
containing objects whose type (and value) is specified by the parametertype
.static <V,E extends Exception>
Function<JsonValue,Set<V>,E>JsonValueFunctions. setOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.Stream<JsonValue>
JsonValue. stream()
Construct a Stream from this JsonValue object.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).Methods in org.forgerock.json with parameters of type JsonValue Modifier and Type Method Description JsonValue
JsonValueTraverseFunction. apply(JsonValue value)
static JsonValue
JsonPatch. diff(JsonValue original, JsonValue target)
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.JsonValue
JsonValue. diff(JsonValue target)
Performs a deep comparison of this JSON vlaue with another JSON value, and produces a JSON Patch value, which contains the operations necessary to modify the current value to arrive at thetarget
value.Object
JsonPatchValueTransformer. getTransformedValue(JsonValue target, JsonValue op)
Return the value to be used for a given patch operation.static boolean
JsonPatch. isEqual(JsonValue value, JsonValue other)
Compares two JSON values, and returns whether the two objects are identical.boolean
JsonValue. isEqualTo(JsonValue other)
Performs a deep comparison of this JSON value with another JSON value, and returns whether the two objects are identical.static JsonValue
JsonPatch. merge(JsonValue first, JsonValue second)
Creates a new JSON value which combines the contents two JSON values.JsonValue
JsonValue. merge(JsonValue other)
Creates a new JSON value which combines the contents this JSON value with another.static void
JsonPatch. patch(JsonValue original, JsonValue patch)
Applies a set of modifications in a JSON patch value to an original value, resulting in the intended target value.static void
JsonPatch. patch(JsonValue original, JsonValue patch, JsonPatchValueTransformer transform)
Applies a set of modifications in a JSON patch value to an original value, resulting in the intended target value.void
JsonValue. patch(JsonValue patch)
Applies a set of modifications in a JSON patch value to the current object, resulting in the intended target value.protected Object
JsonValueTraverseFunction. traverseList(JsonValue value)
Transform a JsonValue List into another object.protected Object
JsonValueTraverseFunction. traverseMap(JsonValue value)
Transform a JsonValue Map into another object.Method parameters in org.forgerock.json with type arguments of type JsonValue Modifier and Type Method Description <V,E extends Exception>
VJsonValue. as(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as an object whose type (and value) is specified by a transformation function.<V,E extends Exception>
Promise<V,E>JsonValue. asAsync(AsyncFunction<JsonValue,V,E> transformFunction)
Returns the JSON value as a promised 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 transformfunction
to each element.static <V,E extends Exception>
Function<JsonValue,List<V>,E>JsonValueFunctions. listOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.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 <V,E extends Exception>
Function<JsonValue,Set<V>,E>JsonValueFunctions. setOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.Constructors in org.forgerock.json with parameters of type JsonValue Constructor Description JsonValueException(JsonValue value)
Constructs a new exception with the specified JSON value andnull
as its detail message.JsonValueException(JsonValue value, String message)
Constructs a new exception with the specified JSON value and detail message.JsonValueException(JsonValue value, String message, Throwable cause)
Constructs a new exception with the specified JSON value, detail message and cause.JsonValueException(JsonValue value, Throwable cause)
Constructs a new exception with the specified JSON value and cause.Constructor parameters in org.forgerock.json with type arguments of type JsonValue Constructor 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. -
Uses of JsonValue in org.forgerock.json.jose.jwk
Methods in org.forgerock.json.jose.jwk that return JsonValue Modifier and Type Method Description JsonValue
JWKSet. getJWKsAsJsonValue()
Get the JWKs in the set.JsonValue
EcJWK. toJsonValue()
JsonValue
JWK. toJsonValue()
Returns a json representation of the JWK.protected static JsonValue
JWK. toJsonValue(String json)
Converts a String into a JsonValue.protected static JsonValue
JWKSet. toJsonValue(String json)
Converts a json string to a jsonValue.JsonValue
OctJWK. toJsonValue()
JsonValue
OkpJWK. toJsonValue()
JsonValue
RsaJWK.PrimesInfo. toJsonValue()
Returns a json representation of the other factors.JsonValue
RsaJWK. toJsonValue()
Methods in org.forgerock.json.jose.jwk that return types with arguments of type JsonValue Modifier and Type Method Description Promise<JsonValue,FailedToLoadJWKException>
JWKSetParser. gatherHttpContentsAsync(URL url)
Uses the Client to gather HTTP information.Methods in org.forgerock.json.jose.jwk with parameters of type JsonValue Modifier and Type Method Description protected static void
JWK. loadJWKFromJson(JWK.Builder builder, JsonValue json)
Load the generic JWK attributes from the json, by side effect.static EcJWK
EcJWK. parse(JsonValue json)
Parses a JWK from a JsonValue json object.static JWK
JWK. parse(JsonValue jwk)
Parses a JsonValue into the proper JWK type.static JWKSet
JWKSet. parse(JsonValue json)
Parses a JWKSet object from a jsonValue object.static OctJWK
OctJWK. parse(JsonValue json)
Parses a OctJWK object from a jsonValue object.static OkpJWK
OkpJWK. parse(JsonValue json)
Parses a JWK from a JsonValue json object.static RsaJWK
RsaJWK. parse(JsonValue json)
Parses a RsaJWK from a jsonValue Object.static RsaJWK.PrimesInfo
RsaJWK.PrimesInfo. parse(JsonValue json)
Parses a PrimesInfo from a jsonValue Object.protected void
JWK. putField(JsonValue jsonValue, String key, Object value)
Add a string value into a json only if it's not null.Constructors in org.forgerock.json.jose.jwk with parameters of type JsonValue Constructor Description JWKSet(JsonValue jwks)
Construct a JWKSet from a single JWK. -
Uses of JsonValue in org.forgerock.json.jose.jwt
Methods in org.forgerock.json.jose.jwt that return JsonValue Modifier and Type Method Description JsonValue
JWObject. get(String key)
Returns the specified item value.JsonValue
JWObject. toJsonValue()
Returns a json representation of the JWObject. -
Uses of JsonValue in org.forgerock.json.jose.tokenhandler
Methods in org.forgerock.json.jose.tokenhandler that return JsonValue Modifier and Type Method Description JsonValue
JwtTokenHandler. validateAndExtractState(String snapshotToken)
Deprecated.JsonValue
SecretsJwtTokenHandler. validateAndExtractState(String snapshotToken)
Methods in org.forgerock.json.jose.tokenhandler with parameters of type JsonValue Modifier and Type Method Description String
JwtTokenHandler. generate(JsonValue state)
Deprecated.String
SecretsJwtTokenHandler. generate(JsonValue state)
-
Uses of JsonValue in org.forgerock.json.resource
Methods in org.forgerock.json.resource that return JsonValue Modifier and Type Method Description static JsonValue
Resources. filterResource(JsonValue resource, Collection<JsonPointer> fields)
Returns a JSON object containing only the specified fields from the provided JSON value.JsonValue
ActionRequest. getContent()
Returns the content of this action request.JsonValue
CreateRequest. getContent()
Returns the content of the JSON resource to be created.JsonValue
ResourceResponse. getContent()
Returns the JSON content of this resource.JsonValue
UpdateRequest. getContent()
Returns the content of the JSON resource to be replaced.JsonValue
ResourceException. getDetail()
Returns the additional detail which can be evaluated by applications.JsonValue
ActionResponse. getJsonContent()
Gets theJsonValue
content contained in theResponse
.JsonValue
PatchOperation. getValue()
Returns the value for the patch operation.JsonValue
ActionRequest. toJsonValue()
JsonValue
CreateRequest. toJsonValue()
JsonValue
DeleteRequest. toJsonValue()
JsonValue
PatchOperation. toJsonValue()
Returns a JSON value representation of this patch operation.JsonValue
PatchRequest. toJsonValue()
JsonValue
QueryRequest. toJsonValue()
JsonValue
ReadRequest. toJsonValue()
JsonValue
Request. toJsonValue()
Return a JsonValue representation of this request.JsonValue
ResourceException. toJsonValue()
Returns the exception in a JSON object structure, suitable for inclusion in the entity of an HTTP error response.JsonValue
UpdateRequest. toJsonValue()
Methods in org.forgerock.json.resource that return types with arguments of type JsonValue Modifier and Type Method Description static Function<JsonValue,QueryFilter<JsonPointer>,JsonValueException>
JsonValueFunctions. queryFilter()
Parses and returns the JSON string value as aQueryFilter
.static Function<JsonValue,ResourcePath,JsonValueException>
JsonValueFunctions. resourcePath()
Returns the JSON string value as aResourcePath
.Methods in org.forgerock.json.resource with parameters of type JsonValue Modifier and Type Method Description PatchRequest
PatchRequest. addPatchOperation(String operation, String field, JsonValue value)
Adds a single patch operation which should be performed against the targeted resource.int
SortKeyComparator. compare(JsonValue left, JsonValue right)
static JsonValue
Resources. filterResource(JsonValue resource, Collection<JsonPointer> fields)
Returns a JSON object containing only the specified fields from the provided JSON value.static ActionResponse
Responses. newActionResponse(JsonValue json)
Returns a newJsonValue
response with the provided JSON content.static CreateRequest
Requests. newCreateRequest(String resourceContainer, String newResourceId, JsonValue content)
Returns a new create request with the provided resource path, new resource ID, and JSON content.static CreateRequest
Requests. newCreateRequest(String resourceContainer, JsonValue content)
Returns a new create request with the provided resource path, and JSON content.static CreateRequest
Requests. newCreateRequest(ResourcePath resourceContainer, String newResourceId, JsonValue content)
Returns a new create request with the provided resource path, new resource ID, and JSON content.static CreateRequest
Requests. newCreateRequest(ResourcePath resourceContainer, JsonValue content)
Returns a new create request with the provided resource path, and JSON content.static ResourceResponse
Responses. newResourceResponse(String id, String revision, JsonValue content)
Returns a newResource
response with the provided Resource as content.static UpdateRequest
Requests. newUpdateRequest(String resourceContainer, String resourceId, JsonValue newContent)
Returns a new update request with the provided resource container path, resource ID, and new JSON content.static UpdateRequest
Requests. newUpdateRequest(String resourcePath, JsonValue newContent)
Returns a new update request with the provided resource path and new JSON content.static UpdateRequest
Requests. newUpdateRequest(ResourcePath resourceContainer, String resourceId, JsonValue newContent)
Returns a new update request with the provided resource container path, resource ID, and new JSON content.static UpdateRequest
Requests. newUpdateRequest(ResourcePath resourcePath, JsonValue newContent)
Returns a new update request with the provided resource path and new JSON content.static ResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification
ResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification. resourcePathAndVersionSpecification(JsonValue versionMatrix)
Create a newResourcePathAndVersionSpecification
configured with resource path to version specification.ActionRequest
ActionRequest. setContent(JsonValue content)
Sets the content of this action request.CreateRequest
CreateRequest. setContent(JsonValue content)
Sets the content of the JSON resource to be created.UpdateRequest
UpdateRequest. setContent(JsonValue content)
Sets the content of the JSON resource to be replaced.<E extends ResourceException>
EResourceException. setDetail(JsonValue detail)
Sets the additional detail which can be evaluated by applications.static PatchOperation
PatchOperation. valueOf(JsonValue json)
Parses the provided JSON content as a patch operation.static List<PatchOperation>
PatchOperation. valueOfList(JsonValue json)
Parses the provided JSON content as a list of patch operations.Constructors in org.forgerock.json.resource with parameters of type JsonValue Constructor Description AdviceContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation. -
Uses of JsonValue in org.forgerock.json.resource.http
Constructors in org.forgerock.json.resource.http with parameters of type JsonValue Constructor Description HttpContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation. -
Uses of JsonValue in org.forgerock.openig.audit
Methods in org.forgerock.openig.audit that return types with arguments of type JsonValue Modifier and Type Method Description Map<String,JsonValue>
AbstractAuditEvents. lookup()
Map<String,JsonValue>
AuditEvents. lookup()
Lookup audit events from resources. -
Uses of JsonValue in org.forgerock.openig.decoration
Methods in org.forgerock.openig.decoration that return JsonValue Modifier and Type Method Description JsonValue
Context. getConfig()
Returns the heap object being decorated configuration.Methods in org.forgerock.openig.decoration with parameters of type JsonValue Modifier and Type Method Description DecorationHandle
Decorator. decorate(Object delegate, JsonValue decoratorConfig, Context context)
Decorates the provideddelegate
instance with the provideddecoratorConfig
configuration. -
Uses of JsonValue in org.forgerock.openig.decoration.baseuri
Methods in org.forgerock.openig.decoration.baseuri with parameters of type JsonValue Modifier and Type Method Description DecorationHandle
BaseUriDecorator. decorate(Object delegate, JsonValue decoratorConfig, Context context)
-
Uses of JsonValue in org.forgerock.openig.decoration.capture
Methods in org.forgerock.openig.decoration.capture with parameters of type JsonValue Modifier and Type Method Description DecorationHandle
CaptureDecorator. decorate(Object delegate, JsonValue decoratorConfig, Context context)
-
Uses of JsonValue in org.forgerock.openig.decoration.global
Methods in org.forgerock.openig.decoration.global with parameters of type JsonValue Modifier and Type Method Description DecorationHandle
GlobalDecorator. decorate(Object delegate, JsonValue ignored, Context context)
Decorate the given object instance with the previously declared set of decorations instead of the provided one.Constructors in org.forgerock.openig.decoration.global with parameters of type JsonValue Constructor Description GlobalDecorator(Decorator parent, JsonValue config, Heap heap, String... reservedFieldNames)
Builds a new GlobalDecorator using given decorators JSON object element. -
Uses of JsonValue in org.forgerock.openig.decoration.helper
Fields in org.forgerock.openig.decoration.helper declared as JsonValue Modifier and Type Field Description protected JsonValue
DecoratorHeaplet. config
The heaplet's object configuration object.Methods in org.forgerock.openig.decoration.helper with parameters of type JsonValue Modifier and Type Method Description Object
DecoratorHeaplet. create(Name name, JsonValue config, Heap heap)
DecorationHandle
AbstractHandlerAndFilterDecorator. decorate(Object delegate, JsonValue decoratorConfig, Context context)
Deprecated.protected abstract DecorationHandle
AbstractHandlerAndFilterDecorator. decorateFilter(Filter delegate, JsonValue decoratorConfig, Context context)
Deprecated.protected abstract DecorationHandle
AbstractHandlerAndFilterDecorator. decorateHandler(Handler delegate, JsonValue decoratorConfig, Context context)
Deprecated.static <R> LazyReference<R>
LazyReference. newReference(Heap heap, JsonValue reference, Class<R> type, boolean optional)
Builds a LazyReference dedicated to resolve the given (optional or not)reference
of typetype
from the givenheap
. -
Uses of JsonValue in org.forgerock.openig.decoration.timer
Methods in org.forgerock.openig.decoration.timer with parameters of type JsonValue Modifier and Type Method Description DecorationHandle
TimerDecorator. decorate(Object delegate, JsonValue decoratorConfig, Context context)
-
Uses of JsonValue in org.forgerock.openig.filter
Methods in org.forgerock.openig.filter that return JsonValue Modifier and Type Method Description JsonValue
JwtBuilderContext. claimsAsJsonValue()
Returns the JWT claims as unmodifiableJsonValue
. -
Uses of JsonValue in org.forgerock.openig.filter.circuitbreaker
Methods in org.forgerock.openig.filter.circuitbreaker with parameters of type JsonValue Modifier and Type Method Description static CircuitBreakerFilter
CircuitBreakerFilter.Heaplet. newInstance(JsonValue config, Heap heap)
Create a new instance of aCircuitBreakerFilter
. -
Uses of JsonValue in org.forgerock.openig.filter.oauth2
Methods in org.forgerock.openig.filter.oauth2 that return JsonValue Modifier and Type Method Description JsonValue
OAuth2TokenExchangeContext. getRawInfo()
Returns the raw exchange token info as issued by the authorization server.Methods in org.forgerock.openig.filter.oauth2 that return types with arguments of type JsonValue Modifier and Type Method Description static Function<JsonValue,ResourceAccess,HeapException>
ResourceAccessConfigSupport. resourceAccess(Heap heap)
JsonValue
function capable of configuring an instance of aResourceAccess
subtype from suppliedscopes
configuration. -
Uses of JsonValue in org.forgerock.openig.filter.oauth2.client
Methods in org.forgerock.openig.filter.oauth2.client that return JsonValue Modifier and Type Method Description protected JsonValue
ClientCredentialsOAuth2ClientFilterHeaplet. getEndpointHandlerConfig()
Methods in org.forgerock.openig.filter.oauth2.client that return types with arguments of type JsonValue Modifier and Type Method Description Promise<JsonValue,OAuth2ErrorException>
ClientRegistration. getAccessToken(Context context, String code, String callbackUri)
Exchanges the authorization code for an access token and optional ID token, and then update the session state.Promise<JsonValue,OAuth2ErrorException>
ClientRegistration. getUserInfo(Context context, org.forgerock.openig.filter.oauth2.client.OAuth2Session session)
Returns a Promise completed either with the json value of the user info obtained from the authorization server if the response from the authorization server has a status code of 200, or with an exception, meaning the access token may have expired.Promise<JsonValue,OAuth2ErrorException>
ClientRegistration. refreshAccessToken(Context context, String refreshToken)
Refreshes the actual access token, making a refresh request to the token end-point.Methods in org.forgerock.openig.filter.oauth2.client with parameters of type JsonValue Modifier and Type Method Description Promise<Issuer,DiscoveryException>
IssuerRepository. register(String issuerName, JsonValue config, List<Pattern> supportedDomains)
Register anIssuer
into the repository.Constructors in org.forgerock.openig.filter.oauth2.client with parameters of type JsonValue Constructor Description Issuer(String name, JsonValue config)
Creates an issuer with the specified name and configuration. -
Uses of JsonValue in org.forgerock.openig.filter.oauth2.client.authentication
Methods in org.forgerock.openig.filter.oauth2.client.authentication that return types with arguments of type JsonValue Modifier and Type Method Description protected Function<JsonValue,PrivateKeyJwtClientAuthenticationFilter.Builder<?>,HeapException>
EncryptedPrivateKeyJwtClientAuthenticationFilterHeaplet. configuredBuilder(EncryptedPrivateKeyJwtClientAuthenticationFilter.Builder builder)
Supports fulfillment of the suppliedEncryptedPrivateKeyJwtClientAuthenticationFilter.Builder
with configuration.protected Function<JsonValue,PrivateKeyJwtClientAuthenticationFilter.Builder<?>,HeapException>
PrivateKeyJwtClientAuthenticationFilterHeaplet. configuredBuilder(PrivateKeyJwtClientAuthenticationFilter.Builder<?> builder)
Supports fulfillment of the suppliedPrivateKeyJwtClientAuthenticationFilter.Builder
with configuration. -
Uses of JsonValue in org.forgerock.openig.filter.oauth2.cnf
Methods in org.forgerock.openig.filter.oauth2.cnf with parameters of type JsonValue Modifier and Type Method Description Promise<Result,NeverThrowsException>
ClientContextCertificateThumbprintVerifier. verify(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey)
Promise<Result,NeverThrowsException>
ConfirmationKeyVerifier. verify(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey)
Verifies the given confirmation key value.Promise<Result,NeverThrowsException>
Sha256AttributeCertificateThumbprintVerifier. verify(Context context, AccessTokenInfo tokenInfo, JsonValue cnfKey)
-
Uses of JsonValue in org.forgerock.openig.handler
Methods in org.forgerock.openig.handler with parameters of type JsonValue Modifier and Type Method Description protected Optional<Filter>
HttpClientHandlerHeaplet. circuitBreakerFilter(JsonValue config)
Create a circuit breaker filter from configurations.protected boolean
HttpClientHandlerHeaplet. configurationSupported(org.forgerock.openig.http.spi.HttpClientLoader loader, JsonValue value)
Is the provided configuration supported by theHttpClientLoader
.protected Optional<Filter>
HttpClientHandlerHeaplet. retryFilter(JsonValue config, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry)
Returns aRetryFilter
if the provided configuration enabled its usage, or empty if not. -
Uses of JsonValue in org.forgerock.openig.handler.router
Methods in org.forgerock.openig.handler.router that return JsonValue Modifier and Type Method Description JsonValue
RouterHandler. undeploy(String routeId)
Undeploy a route, meaning that it unloads it but also deletes the associated file.Methods in org.forgerock.openig.handler.router with parameters of type JsonValue Modifier and Type Method Description void
RouterHandler. deploy(String routeId, String routeName, JsonValue routeConfig)
Deploy a route, meaning that it loads it but also stores it in a file.void
RouterHandler. update(String routeId, String routeName, JsonValue routeConfig)
Update a route. -
Uses of JsonValue in org.forgerock.openig.handler.saml
Methods in org.forgerock.openig.handler.saml with parameters of type JsonValue Modifier and Type Method Description protected abstract void
AbstractSamlFederationHeaplet. completeSamlConfig(JsonValue config, String logoutUri, org.forgerock.openig.handler.saml.SamlConfig.Builder builder)
Permit to complement the SamlConfigSamlConfig.Builder
.protected void
SamlFederationFilterHeaplet. completeSamlConfig(JsonValue config, String logoutUri, org.forgerock.openig.handler.saml.SamlConfig.Builder builder)
protected void
SamlFederationHandlerHeaplet. completeSamlConfig(JsonValue config, String logoutUri, org.forgerock.openig.handler.saml.SamlConfig.Builder builder)
Deprecated. -
Uses of JsonValue in org.forgerock.openig.heap
Fields in org.forgerock.openig.heap declared as JsonValue Modifier and Type Field Description protected JsonValue
GenericHeaplet. config
The heaplet's object configuration object.Methods in org.forgerock.openig.heap that return JsonValue Modifier and Type Method Description JsonValue
GenericHeaplet. getConfig()
Returns the config associated to thatHeaplet
.JsonValue
HeapImpl. init(JsonValue originalConfig, String... reservedFieldNames)
Initializes the heap using the given configuration.Methods in org.forgerock.openig.heap that return types with arguments of type JsonValue Modifier and Type Method Description Function<JsonValue,JsonValue,JsonValueException>
GenericHeaplet. evaluatedWithHeapProperties()
Returns a function that will evaluate the expression hold by aJsonValue
using the properties defined in the heap of this Heaplet.Function<JsonValue,JsonValue,JsonValueException>
GenericHeaplet. 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.Methods in org.forgerock.openig.heap with parameters of type JsonValue Modifier and Type Method Description void
HeapImpl. addDefaultDeclaration(JsonValue object)
Add a default JsonValue object declaration in this heap.Object
GenericHeaplet. create(Name name, JsonValue config, Heap heap)
Object
Heaplet. create(Name name, JsonValue config, Heap heap)
Called to request the heaplet to create an object.JsonValue
HeapImpl. init(JsonValue originalConfig, String... reservedFieldNames)
Initializes the heap using the given configuration.<T> T
Heap. resolve(JsonValue reference, Class<T> type)
Resolves a mandatory object with the specified reference.<T> T
Heap. resolve(JsonValue reference, Class<T> type, boolean optional)
Resolves an object with the specified reference, optionally or not.<T> T
HeapImpl. resolve(JsonValue reference, Class<T> type)
<T> T
HeapImpl. resolve(JsonValue reference, Class<T> type, boolean optional)
-
Uses of JsonValue in org.forgerock.openig.http
Fields in org.forgerock.openig.http declared as JsonValue Modifier and Type Field Description static JsonValue
DefaultDeclarations. DEFAULT_BASEURI_DECORATOR
Default BaseUri decorator.static JsonValue
DefaultDeclarations. DEFAULT_CAPTURE_DECORATOR
Default Capture decorator.static JsonValue
DefaultDeclarations. DEFAULT_CLIENT_HANDLER
The client handler that deals with third-party services.static JsonValue
DefaultDeclarations. DEFAULT_PROXY_OPTIONS
DefaultProxyOptions
.static JsonValue
DefaultDeclarations. DEFAULT_REVERSE_PROXY_HANDLER
The proxy client handler that deals with the application traffic.static JsonValue
DefaultDeclarations. DEFAULT_SCHEDULED_THREAD_POOL
Default scheduler for configurations that require periodic execution of tasks such as cache eviction.static JsonValue
DefaultDeclarations. DEFAULT_TEMPORARY_STORAGE
Default temporary storage.static JsonValue
DefaultDeclarations. DEFAULT_TIMER_DECORATOR
Default Timer decorator.static JsonValue
DefaultDeclarations. FORGEROCK_CLIENT_HANDLER
The client handler that deals with ForgeRock platform services (AM interactions mostly).Constructors in org.forgerock.openig.http with parameters of type JsonValue Constructor Description AdminHttpApplication(String adminPrefix, JsonValue config, Environment environment, RunMode mode, org.forgerock.config.resolvers.PropertyResolver propertyResolver, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, org.forgerock.openig.http.spi.HttpClientLoader httpClientLoader, WebSocketClientProvider webSocketClientProvider, Clock clock, IgTicker ticker, AsyncSessionManager sessionManager, ProductInfo productInfo)
Construct aAdminHttpApplication
.GatewayHttpApplication(Environment environment, JsonValue config, EndpointRegistry registry, RunMode mode, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, org.forgerock.config.resolvers.PropertyResolver propertyResolver, org.forgerock.openig.http.spi.HttpClientLoader httpClientLoader, WebSocketClientProvider webSocketClientProvider, WebSocketProxyFilterProvider webSocketProxyFilterProvider, Clock clock, IgTicker ticker, AsyncSessionManager sessionManager, ProductInfo productInfo)
Construct aGatewayHttpApplication
. -
Uses of JsonValue in org.forgerock.openig.openam
Methods in org.forgerock.openig.openam that return JsonValue Modifier and Type Method Description JsonValue
SessionInfoContext. asJsonValue()
Returns the raw information of theSessionInfo
object asJsonValue
.JsonValue
SsoTokenContext. asJsonValue()
Returns the info associated with this context as aJsonValue
.JsonValue
UserProfileContext. asJsonValue()
Get the raw JSON representation as aJsonValue
.JsonValue
PolicyDecisionContext. getJsonActions()
Returns the unmodifiable actions entry in the policy decision (nevernull
).JsonValue
PolicyDecisionContext. getJsonAdvices()
Returns the unmodifiable advices entry in the policy decision (nevernull
).JsonValue
PolicyDecisionContext. getJsonAttributes()
Returns the unmodifiable attributes entry in the policy decision (nevernull
). -
Uses of JsonValue in org.forgerock.openig.secrets
Methods in org.forgerock.openig.secrets that return types with arguments of type JsonValue Modifier and Type Method Description static Function<JsonValue,SecretsProvider,HeapException>
SecretsProviderHeaplet. secretsProvider(Heap heap)
Method supporting other client heaplets that wish to create aSecretsProvider
using alternative compact configuration formats.Methods in org.forgerock.openig.secrets with parameters of type JsonValue Modifier and Type Method Description static DefaultSecretsService.Builder
DefaultSecretsService. builder(JsonValue node, Clock clock)
Deprecated.Returns aDefaultSecretsService
's builder.static byte[]
SecretsUtils. getPasswordSecretIdOrPasswordAsByte(SecretsProvider secretsProvider, JsonValue secretIdNode, JsonValue deprecatedNode, org.slf4j.Logger logger)
Retrieve a required shared secret value (asbyte[]
) from the givensecretIdNode
anddeprecatedNode
nodes.static SecretsProvider
SecretsUtils. getSecretsProvider(org.slf4j.Logger logger, JsonValue node, Heap heap)
Returns aSecretsProvider
as specified with theSecretsUtils.CONFIG_SECRETS_PROVIDER
attribute or falling back to the defaultSecretsProvider
found in the heap.static <S extends CryptoKey>
SSecretsUtils. retrieveCryptoKeyFromSecretId(SecretsProvider secretsProvider, JsonValue secretIdNode, Class<S> type)
Retrieves aCryptoKey
from the given node.static SecretReference<GenericSecret>
SecretsUtils. retrievePasswordAsReference(SecretsProvider secretsProvider, JsonValue secretIdNode, JsonValue deprecatedNode, org.slf4j.Logger logger)
Retrieve a required password as aSecretReference
from the givensecretIdNode
anddeprecatedNode
nodes.static SecretReference<GenericSecret>
SecretsUtils. retrievePasswordAsReference(SecretsProvider secretsProvider, JsonValue secretIdNode, JsonValue deprecatedNode, org.slf4j.Logger logger, boolean isRequired)
-
Uses of JsonValue in org.forgerock.openig.tools.am
Methods in org.forgerock.openig.tools.am with parameters of type JsonValue Modifier and Type Method Description NotificationsConfig.Builder
NotificationsConfig.Builder. vertxConfig(JsonValue vertxConfig)
Set the vertx configuration to pass to the underlying WebSocket provider. -
Uses of JsonValue in org.forgerock.openig.tools.jwt.validation
Methods in org.forgerock.openig.tools.jwt.validation that return types with arguments of type JsonValue Modifier and Type Method Description static JwtClaimConstraint<JsonValue>
Constraints. isNotNull()
Returnsempty
if the value is present.Method parameters in org.forgerock.openig.tools.jwt.validation with type arguments of type JsonValue Modifier and Type Method Description JwtValidator.Builder
JwtValidator.Builder. claim(String key, JwtClaimConstraint<JsonValue> jwtClaimConstraint)
Adds aJwtClaimConstraint
on a claim.<T,E extends Exception>
JwtValidator.BuilderJwtValidator.Builder. claim(String key, Function<JsonValue,? extends T,E> transformer, JwtClaimConstraint<T> jwtClaimConstraint)
Adds aJwtClaimConstraint
on a claim. -
Uses of JsonValue in org.forgerock.openig.tools.notifications
Methods in org.forgerock.openig.tools.notifications that return JsonValue Modifier and Type Method Description JsonValue
Notification. getBody()
Returns the notification's payload.Constructors in org.forgerock.openig.tools.notifications with parameters of type JsonValue Constructor Description Notification(Instant timestamp, String topic, JsonValue body)
Creates a notification that happened attimestamp
, on the giventopic
with the givenbody
. -
Uses of JsonValue in org.forgerock.openig.tools.notifications.ws
Methods in org.forgerock.openig.tools.notifications.ws with parameters of type JsonValue Modifier and Type Method Description static SubscriptionAck
SubscriptionAck. fromJson(JsonValue message)
Decode a JSON encodedSubscriptionAck
.HttpWebSocketClient
WebSocketClientProvider. newClient(ClientTlsOptions tlsOptions, ProxyOptions proxyOptions, Duration connectionTimeout, Duration idleTimeout, JsonValue vertxConfig)
Creates a new WebSocket client.Method parameters in org.forgerock.openig.tools.notifications.ws with type arguments of type JsonValue Modifier and Type Method Description Promise<Void,Exception>
WebSocketAdapter. start(Runnable onDisconnectionHandler, Consumer<JsonValue> onMessageConsumer)
Start the websocket client and connect to the remote endpoint. -
Uses of JsonValue in org.forgerock.openig.tools.session
Methods in org.forgerock.openig.tools.session that return JsonValue Modifier and Type Method Description JsonValue
SessionInfo. getRawInfo()
Returns the session info for the given SSO Token asJsonValue
if any, ornull
if none.Constructors in org.forgerock.openig.tools.session with parameters of type JsonValue Constructor Description SessionInfo(String ssoToken, JsonValue rawInfo)
Builds a newSessionInfo
. -
Uses of JsonValue in org.forgerock.openig.tools.userprofile
Methods in org.forgerock.openig.tools.userprofile that return JsonValue Modifier and Type Method Description JsonValue
UserProfile. asRawJson()
Get the raw JSON representation as aJsonValue
.Methods in org.forgerock.openig.tools.userprofile with parameters of type JsonValue Modifier and Type Method Description static String
UserProfile. unwrap(JsonValue config, String key)
Utility method to unwrap a profile attribute that is wrapped in a JSON array.Constructors in org.forgerock.openig.tools.userprofile with parameters of type JsonValue Constructor Description UserProfile(JsonValue rawInfo)
Constructor taking the rawJsonValue
. -
Uses of JsonValue in org.forgerock.openig.types.importer
Methods in org.forgerock.openig.types.importer with parameters of type JsonValue Modifier and Type Method Description RouteInstance
RouteImporter. doImport(JsonValue routeJson, org.forgerock.openig.model.component.Model parent, String routeId)
Import the givenrouteJson
into a fully loaded component instance model. -
Uses of JsonValue in org.forgerock.openig.ui.record
Methods in org.forgerock.openig.ui.record with parameters of type JsonValue Modifier and Type Method Description org.forgerock.openig.ui.record.Record
RecordService. create(JsonValue content)
Store the given content on disk and returns aRecord
that represents the new resource.org.forgerock.openig.ui.record.Record
RecordService. update(String id, String revision, JsonValue newContent)
Update theRecord
identified byid
(possibly at a givenrevision
) with the providedcontent
. -
Uses of JsonValue in org.forgerock.openig.util
Methods in org.forgerock.openig.util that return JsonValue Modifier and Type Method Description static JsonValue
JsonValues. firstOf(JsonValue config, String... names)
Returns, if the given JSON value contains one of the names, the first defined JSON value, otherwise if the given JSON value does not match any of the names, then a JsonValue encapsulating null is returned.static JsonValue
JsonValues. getWithDeprecation(JsonValue config, org.slf4j.Logger logger, String name, String... deprecatedNames)
Returns the named property from the provided JSON object, falling back to zero or more deprecated property names.static JsonValue
JsonValues. readJson(URL resource)
Builds aJsonValue
from the given URL.Methods in org.forgerock.openig.util that return types with arguments of type JsonValue Modifier and Type Method Description static Function<JsonValue,Bindings,JsonValueException>
JsonValues. bindings()
Returns a function that will create some bindings based of a Map-basedJsonValue
.static Function<JsonValue,Bindings,JsonValueException>
JsonValues. bindings(Bindings bindings)
Returns a function that will create some bindings based of a Map-basedJsonValue
.static Function<JsonValue,SecretReference<GenericSecret>,JsonValueException>
JsonValues. constantSecretReference()
Returns aSecretReference.constant(Secret)
from aGenericSecret
attribute value.static Function<JsonValue,EncryptionMethod,JsonValueException>
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>
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 Function<JsonValue,JsonValue,JsonValueException>
JsonValues. evaluated(Bindings bindings)
Returns a function that will evaluate all String nodes.static AsyncFunction<JsonValue,JsonValue,NeverThrowsException>
JsonValues. evaluatedAsync(Bindings bindings)
Returns an async function that will evaluate all String nodes.static AsyncFunction<JsonValue,JsonValue,NeverThrowsException>
JsonValues. evaluatedAsync(Bindings bindings)
Returns an async function that will evaluate all String nodes.static <T,E extends Exception>
Function<JsonValue,T,E>JsonValues. expectedType(Class<T> type, Function<JsonValue,T,E> adapter)
Allows to usedefaultTo
in an heaplet configuration to retrieve an object.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 Function<JsonValue,Instant,JsonValueException>
JsonValues. instant()
static Function<JsonValue,Duration,JsonValueException>
JsonValues. javaDuration()
static Function<JsonValue,JwtFactory,HeapException>
JwtFactoryConfigUtils. jwtFactory(Heap heap)
Function supporting transformation of JSON configuration to aJwtFactory
instance registered in the heap.static <T> Function<JsonValue,LeftValueExpression<T>,JsonValueException>
JsonValues. leftValueExpression(Class<T> type)
Returns a function for transforming JsonValues to left-value expressions.static <T,E extends Exception>
Function<JsonValue,List<T>,E>JsonValues. listOf(Function<JsonValue,T,E> adapter)
Returns a function that transform a JSON node value into a list of adapted instances.static <T> Function<JsonValue,T,HeapException>
JsonValues. lookupOrCreateHeapObject(Heap heap, Class<T> type)
static <V,E extends Exception>
Function<JsonValue,Map<String,V>,E>JsonValues. mapOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aMap
containing values whose type is specified by a transformation function.static Function<JsonValue,Optional<JsonValue>,JsonValueException>
JsonValues. optional()
static Function<JsonValue,Optional<JsonValue>,JsonValueException>
JsonValues. optional()
static <T> Function<JsonValue,T,HeapException>
JsonValues. optionalHeapObject(Heap heap, Class<T> type)
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
, enforcing that its value is positive (non-zero) and limited.static Function<JsonValue,Properties,JsonValueException>
JsonValues. properties()
Returns a function that transforms the JSON value to aProperties
object.static <S extends Secret>
Function<JsonValue,Purpose<S>,JsonValueException>JsonValues. purposeOf(Class<S> type)
static Function<JsonValue,JsonValue,JsonValueException>
JsonValues. required(String message)
Displays a custom message when the required attribute is not present in the configuration.static Function<JsonValue,JsonValue,JsonValueException>
JsonValues. required(String message)
Displays a custom message when the required attribute is not present in the configuration.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()
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. resolvedLocation(Bindings bindings)
Returns a function that will resolve the field $location.static Function<JsonValue,SecretPropertyFormat,JsonValueException>
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. slashEnded()
Returns the JsonValue with its value ended by a slash.static <V,E extends Exception>
Function<JsonValue,Stream<V>,E>JsonValues. streamOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aStream
containing objects whose type (and value) is specified by a transformation function.static Function<JsonValue,JsonValue,org.forgerock.config.resolvers.SubstitutionException>
JsonValues. tokenized(org.forgerock.config.resolvers.PropertyResolver propertyResolver)
Returns a function performing deep token substitution and object coercion ($ "functions").static Function<JsonValue,JsonValue,org.forgerock.config.resolvers.SubstitutionException>
JsonValues. tokenized(org.forgerock.config.resolvers.PropertyResolver propertyResolver)
Returns a function performing deep token substitution and object coercion ($ "functions").Methods in org.forgerock.openig.util with parameters of type JsonValue Modifier and Type Method Description static Class<?>
JsonValues. asClass(JsonValue value)
Returns the class object associated with a named class or interface, using the thread context class loader.static JsonValue
JsonValues. firstOf(JsonValue config, String... names)
Returns, if the given JSON value contains one of the names, the first defined JSON value, otherwise if the given JSON value does not match any of the names, then a JsonValue encapsulating null is returned.static JsonValue
JsonValues. getWithDeprecation(JsonValue config, org.slf4j.Logger logger, String name, String... deprecatedNames)
Returns the named property from the provided JSON object, falling back to zero or more deprecated property names.static void
JsonValues. warnForDeprecation(JsonValue config, org.slf4j.Logger logger, String name, String deprecatedName)
Issues a warning that the configuration propertyoldName
is deprecated and that the propertynewName
should be used instead.Method parameters in org.forgerock.openig.util with type arguments of type JsonValue Modifier and Type Method Description static <T,E extends Exception>
Function<JsonValue,T,E>JsonValues. expectedType(Class<T> type, Function<JsonValue,T,E> adapter)
Allows to usedefaultTo
in an heaplet configuration to retrieve an object.static <T,E extends Exception>
Function<JsonValue,List<T>,E>JsonValues. listOf(Function<JsonValue,T,E> adapter)
Returns a function that transform a JSON node value into a list of adapted instances.static <V,E extends Exception>
Function<JsonValue,Map<String,V>,E>JsonValues. mapOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aMap
containing values whose type is specified by a transformation function.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 <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 <V,E extends Exception>
Function<JsonValue,Stream<V>,E>JsonValues. streamOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aStream
containing objects whose type (and value) is specified by a transformation function. -
Uses of JsonValue in org.forgerock.services
Methods in org.forgerock.services that return JsonValue Modifier and Type Method Description JsonValue
TransactionId. toJson()
Returns a representation of this TransactionId as a JsonValue.Methods in org.forgerock.services with parameters of type JsonValue Modifier and Type Method Description static TransactionId
TransactionId. valueOf(JsonValue value)
Creates a TransactionId from a JsonValue. -
Uses of JsonValue in org.forgerock.services.context
Fields in org.forgerock.services.context declared as JsonValue Modifier and Type Field Description protected JsonValue
AbstractContext. data
The Context data.Methods in org.forgerock.services.context that return JsonValue Modifier and Type Method Description JsonValue
AbstractContext. toJsonValue()
JsonValue
Context. toJsonValue()
Return this Context as a JsonValue (for persistence).JsonValue
RequestAuditContext. toJsonValue()
JsonValue
TransactionIdContext. toJsonValue()
Updates the data object to have the current transactionId state.Constructors in org.forgerock.services.context with parameters of type JsonValue Constructor Description AbstractContext(JsonValue savedContext, ClassLoader classLoader)
Creates a new context from the JSON representation of a previously persisted context.AttributesContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation.ClientContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation.RequestAuditContext(JsonValue savedContext, ClassLoader classLoader)
Restores a saved context.RootContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation.SecurityContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation.TransactionIdContext(JsonValue savedContext, ClassLoader classLoader)
Restores a saved context. -
Uses of JsonValue in org.forgerock.tokenhandler
Methods in org.forgerock.tokenhandler that return JsonValue Modifier and Type Method Description JsonValue
TokenHandler. validateAndExtractState(String token)
Validates and parses the token, extracting any encapsulated state.Methods in org.forgerock.tokenhandler with parameters of type JsonValue Modifier and Type Method Description String
TokenHandler. generate(JsonValue state)
Generates a new token using the state. -
Uses of JsonValue in org.forgerock.util.query
Methods in org.forgerock.util.query that return types with arguments of type JsonValue Modifier and Type Method Description static QueryFilterVisitor<Boolean,JsonValue,JsonPointer>
JsonValueFilterVisitor. jsonValueFilterVisitor()
Returns aQueryFilterVisitor
that can assess if aJsonValue
resource matches a set of criteria defined by aQueryFilter
.Methods in org.forgerock.util.query with parameters of type JsonValue Modifier and Type Method Description Boolean
JsonValueFilterVisitor. visitAndFilter(JsonValue p, List<QueryFilter<JsonPointer>> subFilters)
Boolean
JsonValueFilterVisitor. visitBooleanLiteralFilter(JsonValue p, boolean value)
Boolean
JsonValueFilterVisitor. visitComplexFilter(JsonValue p, JsonPointer field, QueryFilter<JsonPointer> subFilter)
Boolean
JsonValueFilterVisitor. visitContainsFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitEqualsFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitExtendedMatchFilter(JsonValue p, JsonPointer field, String matchingRuleId, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitGreaterThanFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitGreaterThanOrEqualToFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitLessThanFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitLessThanOrEqualToFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitNotFilter(JsonValue p, QueryFilter<JsonPointer> subFilter)
Boolean
JsonValueFilterVisitor. visitOrFilter(JsonValue p, List<QueryFilter<JsonPointer>> subFilters)
Boolean
JsonValueFilterVisitor. visitPresentFilter(JsonValue p, JsonPointer field)
Boolean
JsonValueFilterVisitor. visitStartsWithFilter(JsonValue p, JsonPointer field, Object valueAssertion)
-