Uses of Class
org.forgerock.json.JsonValue
Package
Description
This package contains all classes pertaining to AM's IoT functionality.
Extensions to Jackson's JSON Schema to support the API Descriptor extensions to standard JSON Schema.
ForgeRock API Descriptor models.
This package defines the common authorization API interfaces and classes used by both the CREST API and CHF HTTP
API.
This package defines the authentication framework classes for the authentication of messages
via authentication contexts and modules.
This package contains the common config property resolvers.
Contains utility classes for commons config.
This package provides APIs for OAuth 2.0 services implementations.
Provides routing functionality for HTTP requests.
Provides interfaces for managing and interacting with HTTP Sessions.
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Core library for JSON cryptographic operations.
Simple JSON cryptographic implementation.
Classes and interfaces for creating and manipulating JWKs.
Classes and interfaces for JWTs.
JWT implementation(s) of
TokenHandler
.Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
Implementation of
Macaroons: Cookies with contextual caveats for decentralized
authorization in the cloud. See
Macaroon
for more details.Commons OAuth Framework API.
Forgerock Apple Client implementation.
Forgerock Facebook Client Implementation.
OAuth 2.0 ForgeRock Client Implementation.
OpenID Connect ForgeRock Client Implementation.
Defines the core classes to implement OAuth2 for OpenAM.
This package contains the API for writing authentication nodes.
Classes that provide AM's features as an OAuth 2.0 Authorization Server.
Functionality for issuing access and refresh token as
Macaroon
s.Classes pertaining to the predicates used by the Push Service's Message Dispatcher.
Contains the classes which encapsulate the user-provided configuration state necessary to publish a STS instance.
Contains classes and interface definitions common to all token provider classes.
Classes related to producing OpenIdConnect tokens
This package contains classes related to creating the json payloads corresponding to REST-STS and TokenGenerationService
invocations.
Classes that support AM's UMA AS functionality.
Classes required for the AM OAuth2 OIDC implementation.
Secrets backend that reads secrets from a remote Hashicorp Vault server.
This package contains the core implementation for the anonymous process service.
This package contains crypto related implementations for self-service.
This package contains core utility methods and classes.
This package contains captcha stage implementation.
This package contains a common email stage implementation.
This package contains a common user kba stage implementation.
This package contains a parameter passing stage implementation.
This package contains a common user registration stage implementation.
This package contains a common reset password stage implementation.
This package contains a common user related stage implementation.
This package contains the classes classes and interfaces used in the services' implementations.
This package contains the
Context
interface and various common protocol
independent implementations.Provides token handler definition.
Provides a mechanism for implementing query filters.
-
Uses of JsonValue in org.forgerock.am.iot
Modifier and TypeMethodDescriptionThingsAccessAuditFilter.getActionSuccessDetail
(ActionRequest request, ActionResponse response) -
Uses of JsonValue in org.forgerock.api.jackson
-
Uses of JsonValue in org.forgerock.api.models
-
Uses of JsonValue in org.forgerock.authz.filter.api
Modifier and TypeMethodDescriptionAuthorizationResult.getDetail()
Gets the detail of why the request is not authorized to access the requested resource.Modifier and TypeMethodDescriptionstatic AuthorizationResult
AuthorizationResult.accessDenied
(String reason, JsonValue detail) Creates a newAuthorizationResult
instance which indicates that access to the request protected resource is denied, for the given reason and detail. -
Uses of JsonValue in org.forgerock.caf.authentication.framework
Modifier and TypeMethodDescriptionvoid
Audits the authentication request, using the audit information from the given audit message.ModifierConstructorDescriptionMessageContextImpl
(JsonValue savedContext, ClassLoader classLoader) Creates a new context from the JSON representation of a previously persisted context. -
Uses of JsonValue in org.forgerock.config.resolvers
Modifier and TypeMethodDescriptionstatic PropertyResolver
PropertyResolvers.jsonResolver
(String name, JsonValue json) Construct a newJsonValueResolver
using a given aJsonValue
.static PropertyResolver
PropertyResolvers.jsonResolver
(JsonValue json) Construct a newJsonValueResolver
using a given aJsonValue
. -
Uses of JsonValue in org.forgerock.config.util
Modifier and TypeMethodDescriptionTraverses aJsonValue
and does property substitution as well as any type coercion.JsonValuePropertyEvaluator.evaluate
(JsonValue object, SubstitutionContext context) Traverses aJsonValue
and does property substitution as well as any type coercion.Modifier and TypeMethodDescriptionJsonValuePropertyEvaluator.singleKeyWithName
(String name) Create a predicate for a JSON coercion function as used in theMap
argument toJsonValuePropertyEvaluator(SubstitutionService, List)
.Modifier and TypeMethodDescriptionTraverses aJsonValue
and does property substitution as well as any type coercion.JsonValuePropertyEvaluator.evaluate
(JsonValue object, SubstitutionContext context) Traverses aJsonValue
and does property substitution as well as any type coercion.Modifier and TypeMethodDescriptionDefine a coercion function.JsonValuePropertyEvaluator.CoercionFunctionSpecBuilder.using
(BiFunction<JsonValue, SubstitutionService, Object, JsonValueException> function) Specify the function that will convert the matched JSON into an object. -
Uses of JsonValue in org.forgerock.http.oauth2
Modifier and TypeMethodDescriptionAccessTokenInfo.asJsonValue()
Returns the raw JSON as aJsonValue
.ModifierConstructorDescriptionAccessTokenInfo
(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
ModifierConstructorDescriptionApiVersionRouterContext
(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
ModifierConstructorDescriptionSessionContext
(JsonValue savedContext, ClassLoader classLoader) Restore from JSON representation. -
Uses of JsonValue in org.forgerock.json
Modifier and TypeMethodDescriptionAdds the specified value to the list.Adds the specified value to the end of the list.Adds the specified value.JsonValue.add
(JsonPointer pointer, Object object) Adds the value identified by the specified pointer, relative to this value as root.JsonValue.addIfNotNull
(String key, Object object) Adds the specified object value only if it is not nullJsonValue.addPermissive
(JsonPointer pointer, Object object) Adds the value identified by the specified pointer, relative to this value as root.final JsonValue
JsonValue.clone()
Returns a shallow copy of this JSON value.JsonValue.copy()
Returns a deep copy of this JSON value.Defaults the JSON value to the specified value if it is currentlynull
.static JsonValue
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.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.Called to enforce that the JSON value is of a particular type.JsonValue.get
(int index) Returns the specified child value.Returns the specified item value.JsonValue.get
(JsonPointer pointer) Returns the specified child value with a pointer, relative to this value as root.JsonValueException.getJsonValue()
Returns the JSON value for which the exception was thrown.static JsonValue
Returns a JSON value whose content is the provided object.static JsonValue
Creates a new JSON value which combines the contents two JSON values.Creates a new JSON value which combines the contents this JSON value with another.Sets the value of the specified child list element.Sets the value of the specified member.JsonValue.put
(JsonPointer pointer, Object object) Sets the value identified by the specified pointer, relative to this value as root.JsonValue.putIfNotNull
(String key, Object object) Sets the value of the specified member, only if it is not null.JsonValue.putPermissive
(JsonPointer pointer, Object object) Sets the value identified by the specified pointer, relative to this value as root.JsonValue.required()
Throws aJsonValueException
if the JSON value isnull
.Modifier and TypeMethodDescriptionstatic 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.static Function<JsonValue,
JsonValue, JsonValueException> JsonValueFunctions.identity()
Deprecated.useJsonValue::copy
directly insteadstatic Function<JsonValue,
Instant, JsonValueException> JsonValueFunctions.instant()
JsonValueFunctions.integer()
Returns anInteger
by converting the JsonValue usingasInteger()
, or by parsing the JsonValue string usingInteger.parseInt(String)
.JsonValue.iterator()
Returns an iterator over the child values that this JSON value contains.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.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
.Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.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).Modifier and TypeMethodDescriptionfinal JsonValue
static JsonValue
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.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.JsonPatchValueTransformer.getTransformedValue
(JsonValue target, JsonValue op) Return the value to be used for a given patch operation.static boolean
Compares two JSON values, and returns whether the two objects are identical.boolean
Performs a deep comparison of this JSON value with another JSON value, and returns whether the two objects are identical.static JsonValue
Creates a new JSON value which combines the contents two JSON values.Creates a new JSON value which combines the contents this JSON value with another.static void
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
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.Modifier and TypeMethodDescription<V,
E extends Exception>
VReturns the JSON value as an object whose type (and value) is specified by a transformation function.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.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.Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.ModifierConstructorDescriptionJsonValueException
(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.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 JsonValue in org.forgerock.json.crypto
Modifier and TypeMethodDescriptionDecrypts the specified value.Encrypts the specified value.JsonCrypto.getValue()
Returns the JSON cryptographic value.JsonCrypto.toJsonValue()
Returns this object as a$crypto
JSON object value.Modifier and TypeMethodDescriptionDecrypts the specified value.Encrypts the specified value.void
JsonCrypto.fromJsonValue
(JsonValue value) Initializes this object from the specified$crypto
JSON object value.static boolean
JsonCrypto.isJsonCrypto
(JsonValue value) Returnstrue
if the specified JSON value contains a valid$crypto
JSON object structure.void
Sets the JSON cryptographic value.protected Object
JsonDecryptFunction.traverseMap
(JsonValue value) ModifierConstructorDescriptionJsonCrypto
(String type, JsonValue value) Constructs a new JSON cryptographic object, initializing with the specified type and cryptographic value.JsonCrypto
(JsonValue value) Constructs a new JSON cryptographic object, initializing from a JSON value. -
Uses of JsonValue in org.forgerock.json.crypto.simple
Modifier and TypeMethodDescription -
Uses of JsonValue in org.forgerock.json.jose.jwk
Modifier and TypeMethodDescriptionJWKSet.getJWKsAsJsonValue()
Get the JWKs in the set.EcJWK.toJsonValue()
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.OctJWK.toJsonValue()
OkpJWK.toJsonValue()
RsaJWK.PrimesInfo.toJsonValue()
Returns a json representation of the other factors.RsaJWK.toJsonValue()
Modifier and TypeMethodDescriptionJWKSetParser.gatherHttpContentsAsync
(URL url) Uses the Client to gather HTTP information.Modifier and TypeMethodDescriptionprotected static void
JWK.loadJWKFromJson
(JWK.Builder builder, JsonValue json) Load the generic JWK attributes from the json, by side effect.static EcJWK
Parses a JWK from a JsonValue json object.static JWK
Parses a JsonValue into the proper JWK type.static JWKSet
Parses a JWKSet object from a jsonValue object.static OctJWK
Parses a OctJWK object from a jsonValue object.static OkpJWK
Parses a JWK from a JsonValue json object.static RsaJWK
Parses a RsaJWK from a jsonValue Object.static RsaJWK.PrimesInfo
Parses a PrimesInfo from a jsonValue Object.protected void
Add a string value into a json only if it's not null. -
Uses of JsonValue in org.forgerock.json.jose.jwt
Modifier and TypeMethodDescriptionReturns the specified item value.JWObject.toJsonValue()
Returns a json representation of the JWObject. -
Uses of JsonValue in org.forgerock.json.jose.tokenhandler
Modifier and TypeMethodDescriptionJwtTokenHandler.validateAndExtractState
(String snapshotToken) Deprecated.SecretsJwtTokenHandler.validateAndExtractState
(String snapshotToken) -
Uses of JsonValue in org.forgerock.json.resource
Modifier and TypeMethodDescriptionstatic JsonValue
Resources.filterResource
(JsonValue resource, Collection<JsonPointer> fields) Returns a JSON object containing only the specified fields from the provided JSON value.ActionRequest.getContent()
Returns the content of this action request.CreateRequest.getContent()
Returns the content of the JSON resource to be created.ResourceResponse.getContent()
Returns the JSON content of this resource.UpdateRequest.getContent()
Returns the content of the JSON resource to be replaced.final JsonValue
ResourceException.getDetail()
Returns the additional detail which can be evaluated by applications.ActionResponse.getJsonContent()
Gets theJsonValue
content contained in theResponse
.PatchOperation.getValue()
Returns the value for the patch operation.ActionRequest.toJsonValue()
CreateRequest.toJsonValue()
DeleteRequest.toJsonValue()
PatchOperation.toJsonValue()
Returns a JSON value representation of this patch operation.PatchRequest.toJsonValue()
QueryRequest.toJsonValue()
ReadRequest.toJsonValue()
Request.toJsonValue()
Return a JsonValue representation of this request.final JsonValue
ResourceException.toJsonValue()
Returns the exception in a JSON object structure, suitable for inclusion in the entity of an HTTP error response.UpdateRequest.toJsonValue()
Modifier and TypeMethodDescriptionJsonValueFunctions.queryFilter()
Parses and returns the JSON string value as aQueryFilter
.JsonValueFunctions.resourcePath()
Returns the JSON string value as aResourcePath
.Modifier and TypeMethodDescriptionPatchRequest.addPatchOperation
(String operation, String field, JsonValue value) Adds a single patch operation which should be performed against the targeted resource.int
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.ResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification.resourcePathAndVersionSpecification
(JsonValue versionMatrix) Create a newResourcePathAndVersionSpecification
configured with resource path to version specification.ActionRequest.setContent
(JsonValue content) Sets the content of this action request.CreateRequest.setContent
(JsonValue content) Sets the content of the JSON resource to be created.UpdateRequest.setContent
(JsonValue content) Sets the content of the JSON resource to be replaced.final <E extends ResourceException>
ESets the additional detail which can be evaluated by applications.static PatchOperation
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.ModifierConstructorDescriptionAdviceContext
(JsonValue savedContext, ClassLoader classLoader) Restore from JSON representation. -
Uses of JsonValue in org.forgerock.macaroons
Modifier and TypeClassDescriptionclass
Convenience class for constructing a set of JSON-based 1st-party caveats for use withMacaroon.addFirstPartyCaveat(JsonValue)
.Modifier and TypeMethodDescriptionMacaroon.addFirstPartyCaveat
(JsonValue caveat) Adds a first-party caveat to the macaroon.JsonCaveatSet.confirmationKey
(JsonValue confirmationKey) Binds the macaroon to only be usable by a client that can prove possession of the key indicated in the given JSON object.Modifier and TypeMethodDescriptionJsonCaveatVerifier.satisfyJsonCaveat
(String field, Predicate<JsonValue> verifier) Adds a verifier for a caveat specified as a JSON field. -
Uses of JsonValue in org.forgerock.oauth
Modifier and TypeMethodDescriptionUserInfo.getRawProfile()
Gets the user raw profile data without any modifications that was returned by the auth server.DataStore.retrieveData()
Returns the stored data.Modifier and TypeMethodDescriptionOAuthClient.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) Handle the data produced by the Auth Server as a result of a successful authentication and return the final redirect to the mobile device.Handle the data produced by the Auth Server as a result of a successful authentication and return the final redirect to the landing page specified in theOAuthClient.getAuthRedirect(DataStore, String, URI)
call. -
Uses of JsonValue in org.forgerock.oauth.clients.apple
-
Uses of JsonValue in org.forgerock.oauth.clients.facebook
Modifier and TypeMethodDescriptionprotected Promise<JsonValue,
OAuthException> FacebookClient.getAppAccessToken
(Context context) Retrieves the app access token from IDP.protected AsyncFunction<JsonValue,
JsonValue, OAuthException> FacebookClient.getInputTokenInfo
(Context context, String inputToken) Retrieves the access token information as aJsonValue
.protected AsyncFunction<JsonValue,
JsonValue, OAuthException> FacebookClient.getInputTokenInfo
(Context context, String inputToken) Retrieves the access token information as aJsonValue
.FacebookClient.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) protected Function<JsonValue,
JsonValue, OAuthException> FacebookClient.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) protected Function<JsonValue,
JsonValue, OAuthException> FacebookClient.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) Modifier and TypeMethodDescriptionprotected Function<JsonValue,
JsonValue, OAuthException> FacebookClient.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) -
Uses of JsonValue in org.forgerock.oauth.clients.oauth2
Modifier and TypeFieldDescriptionprotected final Function<JsonValue,
JsonValue, OAuthException> OAuth2Client.addExpireTime
Adds the actual time the token expires.protected final Function<JsonValue,
JsonValue, OAuthException> OAuth2Client.addExpireTime
Adds the actual time the token expires.Modifier and TypeMethodDescriptionprotected final Function<Void,
JsonValue, OAuthException> OAuth2Client.createPostAuthResponse
(JsonValue storedData) Creates the post auth response.protected Promise<JsonValue,
OAuthException> OAuth2Client.createPostResponse
(DataStore dataStore, JsonValue storedData) Creates the post response.protected Promise<JsonValue,
OAuthException> OAuth2Client.getAccessTokenInfo
(Context context, String accessToken) Retrieves the access token information as aJsonValue
.OAuth2Client.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) protected static AsyncFunction<Response,
JsonValue, OAuthException> OAuth2Client.mapToJsonValue()
AnAsyncFunction
that handles aResponse
from an Auth Server that returns the HTTP entity content as JsonValue, and throws anOAuthException
if the response is not successful (200 family status code), or if the content is not a valid JSON.protected final Function<JsonValue,
UserInfo, OAuthException> OAuth2Client.mapToUserInfo()
Creates aOAuth2UserInfo
using a users raw profile.protected final Function<JsonValue,
Void, OAuthException> OAuth2Client.storeResponse
(DataStore dataStore) Stores all the information received from an authentication or authorization server.protected Function<JsonValue,
JsonValue, OAuthException> OAuth2Client.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) Compare client_id from access token associated data with configured client_id.protected Function<JsonValue,
JsonValue, OAuthException> OAuth2Client.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) Compare client_id from access token associated data with configured client_id.Modifier and TypeMethodDescriptionprotected final Function<Void,
JsonValue, OAuthException> OAuth2Client.createPostAuthResponse
(JsonValue storedData) Creates the post auth response.protected Promise<JsonValue,
OAuthException> OAuth2Client.createPostResponse
(DataStore dataStore, JsonValue storedData) Creates the post response.protected Promise<Request,
OAuthException> OAuth2Client.createRequestForTokenRefresh
(JsonValue storedData) Creates aRequest
for the token refresh endpoint of an identity provider.protected static final String
OAuth2Client.getAccessToken
(JsonValue data) Retrieves an access token from aJsonValue
.protected Function<JsonValue,
JsonValue, OAuthException> OAuth2Client.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) Compare client_id from access token associated data with configured client_id.ModifierConstructorDescriptionprotected
OAuth2UserInfo
(String authenticationIdKey, JsonValue rawProfile) Creates an OAuth2UserInfo object which wraps the raw profile of a user and provides the Subject of a particular user. -
Uses of JsonValue in org.forgerock.oauth.clients.oidc
Modifier and TypeMethodDescriptionstatic JsonValue
ClaimsMapper.asJsonValue
(Claims claims) Returns the Claims as a map with keys of id_token, userinfo, and any custom claims.OpenIDConnectUserInfo.getRawProfile()
Gets the user raw profile data without any modifications that was returned by the auth server.protected static final JsonValue
OpenIDConnectClient.jwtClaimsAsJsonValue
(JwtClaimsSet jwtClaims) Returns the jwt claims as aJsonValue
.Modifier and TypeMethodDescriptionOpenIDConnectClient.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) protected final Function<JsonValue,
UserInfo, OAuthException> OpenIDConnectClient.mapToUserInfo
(JwtClaimsSet jwtClaims) Maps a retrieved raw profile from the user info endpoint to anOpenIDConnectUserInfo
object.protected final Function<JsonValue,
JsonValue, OAuthException> OpenIDConnectClient.validateSub
(DataStore dataStore) Validates the sub Claim in the UserInfo Response is an exact match to the sub Claim in the ID Token.protected final Function<JsonValue,
JsonValue, OAuthException> OpenIDConnectClient.validateSub
(DataStore dataStore) Validates the sub Claim in the UserInfo Response is an exact match to the sub Claim in the ID Token.Modifier and TypeMethodDescriptionprotected static final String
Returns the nonce value store in the data store.Claim.ClaimBuilder.withJsonValue
(JsonValue value) Sets the value for the ClaimBuilder.Modifier and TypeMethodDescriptionClaim.ClaimBuilder.withJsonValues
(List<JsonValue> values) Sets the values for the ClaimBuilder.ModifierConstructorDescriptionOpenIDConnectUserInfo
(JsonValue rawProfile, String subject) Creates an OpenIDConnectUserInfo instance.OpenIDConnectUserInfo
(JsonValue rawProfile, JwtClaimsSet jwtClaimsSet) Creates an OpenIDConnectUserInfo instance. -
Uses of JsonValue in org.forgerock.oauth2.core
Modifier and TypeMethodDescriptionOAuth2Request.getBody()
Gets the body of the request.AccessToken.getConfirmationKey()
Get's the token's confirmation claim.AccessToken.getPermissions()
Get the UMA permissions contained in the token.Token.toJsonValue()
Gets theJsonValue
representation of the token.Modifier and TypeMethodDescriptionvoid
void
AccessToken.setConfirmationKey
(JsonValue confirmationKey) Sets the token's confirmation claim.void
void
AccessToken.setPermissions
(JsonValue permissions) Set the UMA permissions contained in the token.Modifier and TypeMethodDescriptionvoid
AccessToken.addExtraJsonData
(String key, Supplier<JsonValue> value) Stores additional JSON data inside the token. -
Uses of JsonValue in org.forgerock.openam.auth.node.api
Modifier and TypeFieldDescriptionfinal JsonValue
Action.sharedState
The output state of the node.final JsonValue
TreeContext.sharedState
Deprecated.UseTreeContext.getStateFor(Node)
instead as this method does not leak implementation detail of the specific type of state.final JsonValue
Action.transientState
The transient state of the node.final JsonValue
TreeContext.transientState
Deprecated.UseTreeContext.getStateFor(Node)
instead as this method does not leak implementation detail of the specific type of state.Modifier and TypeFieldDescriptionAction.sessionHooks
List of classes implementingTreeHook
that run after successful login.Modifier and TypeMethodDescriptionGets the value for the given key from the state.default JsonValue
Node.getAuditEntryDetail()
Supply the additional detail to be logged with this node's completion event.Get the value for the given key from the state.TreeContext.getSecureState
(String stateKey) Deprecated.UseTreeContext.getStateFor(Node)
instead as this method does not leak implementation detail of the specific type of state.Deprecated.UseTreeContext.getStateFor(Node)
instead as this method performs the same function but supports filtering of the available state based on the nodes declared inputs.TreeContext.getTransientState
(String stateKey) Deprecated.UseTreeContext.getStateFor(Node)
instead as this method does not leak implementation detail of the specific type of state.Modifier and TypeMethodDescriptionAction.ActionBuilder.addSessionHook
(Class<? extends TreeHook> sessionHook, UUID nodeId, String nodeType, JsonValue data) Sets a class that will be run after successful login.TreeContext.copyWithCallbacksAndState
(JsonValue sharedState, JsonValue transientState, JsonValue secureState, List<? extends Callback> callbacks) Copies this TreeContext instance, replacing the callbacks in the context with the provided callbacks and with the provided new state if input state parameter is not null.OutcomeProvider.getOutcomes
(PreferredLocales locales, JsonValue nodeAttributes) Returns a ordered list of possible node outcomes with localised display names.default List<OutcomeProvider.Outcome>
StaticOutcomeProvider.getOutcomes
(PreferredLocales locales, JsonValue nodeAttributes) Action.ActionBuilder.replaceSharedState
(JsonValue sharedState) Replace the shared state.Action.ActionBuilder.replaceTransientState
(JsonValue transientState) Replace the transient state.Modifier and TypeMethodDescriptionAction.ActionBuilder.addSessionHooks
(List<JsonValue> sessionHooks) Adds session hooks to the list.ModifierConstructorDescriptionTreeContext
(String identityResource, JsonValue sharedState, JsonValue transientState, JsonValue secureState, ExternalRequestContext request, List<? extends Callback> callbacks, boolean resumedFromSuspend, Optional<String> universalId) Construct a tree context for the current state.TreeContext
(String identityResource, JsonValue sharedState, JsonValue transientState, JsonValue secureState, ExternalRequestContext request, List<? extends Callback> callbacks, Optional<String> universalId) Construct a tree context for the current state.TreeContext
(String identityResource, JsonValue sharedState, JsonValue transientState, ExternalRequestContext request, List<? extends Callback> callbacks, Optional<String> universalId) Construct a tree context for the current state.TreeContext
(String identityResource, JsonValue sharedState, ExternalRequestContext request, List<? extends Callback> callbacks) Construct a tree context for the current state.TreeContext
(JsonValue sharedState, JsonValue transientState, JsonValue secureState, ExternalRequestContext request, List<? extends Callback> callbacks, boolean resumedFromSuspend, Optional<String> universalId) Construct a tree context for the current state.TreeContext
(JsonValue sharedState, JsonValue transientState, JsonValue secureState, ExternalRequestContext request, List<? extends Callback> callbacks, Optional<String> universalId) Construct a tree context for the current state.TreeContext
(JsonValue sharedState, JsonValue transientState, ExternalRequestContext request, List<? extends Callback> callbacks, Optional<String> universalId) Construct a tree context for the current state.TreeContext
(JsonValue sharedState, ExternalRequestContext request, List<? extends Callback> callbacks, Optional<String> universalId) Construct a tree context for the current state. -
Uses of JsonValue in org.forgerock.openam.oauth2
Modifier and TypeMethodDescriptionResourceSetDescription.getDescription()
Gets the resource set description as aJsonValue
.ResourceSetDescription.getPolicy()
Gets the name of the policy linked to this resource set.Modifier and TypeMethodDescriptionvoid
ResourceSetDescription.setDescription
(JsonValue description) void
-
Uses of JsonValue in org.forgerock.openam.oauth2.token.macaroon
Modifier and TypeMethodDescriptionMacaroonToken.addFirstPartyCaveat
(JsonValue caveat) Adds a first-party caveat to the access token macaroon. -
Uses of JsonValue in org.forgerock.openam.services.push.dispatch.predicates
-
Uses of JsonValue in org.forgerock.openam.sts.config.user
Modifier and TypeMethodDescriptionSAML2Config.toJson()
Gets theJsonValue
representation of the SAML2Config.SAML2Config.toSmsJson()
Gets the SMSJsonValue
representation of the SAML2Config.Modifier and TypeMethodDescriptionstatic SAML2Config
Creates a SAML2Config object from aJsonValue
representationstatic SAML2Config
SAML2Config.fromSmsJson
(JsonValue json) Creates a SAML2Config object from a SMSJsonValue
representation -
Uses of JsonValue in org.forgerock.openam.sts.rest.token.provider
Modifier and TypeMethodDescriptionRestTokenProvider.createToken
(RestTokenProviderParameters<T> restTokenProviderParameters) Creates a token using the specifiedRestTokenProviderParameters
RestTokenProviderParameters.getInputToken()
Gets the json representation of the input token. -
Uses of JsonValue in org.forgerock.openam.sts.rest.token.provider.oidc
Modifier and TypeMethodDescriptionOpenIdConnectTokenAuthnContextMapper.getAuthnContextClassReference
(TokenTypeId inputTokenType, JsonValue inputToken) Returns the AuthnContext value corresponding to the TokenType inputToken.OpenIdConnectTokenAuthMethodReferencesMapper.getAuthnMethodsReferences
(TokenTypeId inputTokenType, JsonValue inputToken) Returns the Set of authentication methods references corresponding to the TokenType inputToken. -
Uses of JsonValue in org.forgerock.openam.sts.user.invocation
Modifier and TypeMethodDescriptionProofTokenState.toJson()
Gets theJsonValue
representation of theProofTokenState
Modifier and TypeMethodDescriptionstatic ProofTokenState
Constructs aProofTokenState
from the specifiedJsonValue
representation. -
Uses of JsonValue in org.forgerock.openam.uma
Modifier and TypeMethodDescriptionPermissionTicket.getContents()
PermissionTicket.getPermissions()
-
Uses of JsonValue in org.forgerock.openidconnect
-
Uses of JsonValue in org.forgerock.secrets.vault
Modifier and TypeMethodDescriptionVaultKeyValueSecretStore.SecretFieldDecoder.apply
(SecretBuilder secretBuilder, JsonValue jsonValue) Decodes a JSON value into one or more fields on aSecretBuilder
.ModifierConstructorDescriptionVaultPkiSecretStore
(SecretReference<GenericSecret> tokenReference, VaultConfig config, JsonValue certificateRequestPayload) Initializes the PKI secret store using the given authentication token and configuration options. -
Uses of JsonValue in org.forgerock.selfservice.core
Modifier and TypeMethodDescriptionstatic JsonValue
ServiceUtils.emptyJson()
Relieves an empty json object.ProgressStage.gatherInitialRequirements
(ProcessContext context, C config) Response for defining any initial requirements the stage may have.ProgressStageBinding.gatherInitialRequirements
(ProcessContext context) Response for defining any initial requirements the bound stage may have.ProcessContext.getInput()
Gets the input provided by the client.StageResponse.getRequirements()
Returns the requirements.Allows retrieval of state persisted throughout the flow.Removes the state out of the store.Modifier and TypeMethodDescriptionvoid
Adds the state into the store against the key.StageResponse.Builder.setRequirements
(JsonValue requirements) Sets the json requirements.ModifierConstructorDescriptionSelfServiceContext
(JsonValue savedContext, ClassLoader classLoader) Constructs a new SelfServiceContext. -
Uses of JsonValue in org.forgerock.selfservice.core.crypto
Modifier and TypeMethodDescriptionHashes a string value.Hashes a string value.Modifier and TypeMethodDescriptionHashes a string value.boolean
Detects if a String is hashed.boolean
Returns true if the supplied plain text value of a field matches the supplied hashed value. -
Uses of JsonValue in org.forgerock.selfservice.core.util
Modifier and TypeMethodDescriptionRequirementsBuilder.build()
Builds a new json object representing the defined requirements.static JsonValue
Answers.hashAnswer
(CryptoService cryptoService, JsonValue answer) Hashes the given answer.static JsonValue
Answers.hashAnswer
(CryptoService cryptoService, JsonValue cryptoConfig, JsonValue answer) Hashes the given answer.static JsonValue
RequirementsBuilder.newEmptyRequirements()
Creates an empty requirements json object.Modifier and TypeMethodDescriptionRequirementsBuilder.addCustomField
(String name, JsonValue customJsonValue) Add a custom Json snippet.static int
ConfigUtil.getConfigField
(String fieldName, JsonValue config, int defaultValue) Retrieve an integer config value with a default if the value is absent.static String
ConfigUtil.getConfigField
(String fieldName, JsonValue config, String defaultValue) Retrieve a String config value with a default if the value is absent.static JsonValue
Answers.hashAnswer
(CryptoService cryptoService, JsonValue answer) Hashes the given answer.static JsonValue
Answers.hashAnswer
(CryptoService cryptoService, JsonValue cryptoConfig, JsonValue answer) Hashes the given answer.static RequirementsBuilder
Creates a new builder instance for oneOf keyword.void
SecurityAnswer.verifyAndHashInput
(CryptoService cryptoService, JsonValue kba, Map<String, Map<String, String>> kbaQuestions) Verifies and hashes the input provided for security questions and answers.void
SecurityAnswer.verifyAndHashInput
(CryptoService cryptoService, JsonValue cryptoConfig, JsonValue kba, Map<String, Map<String, String>> kbaQuestions) Verifies and hashes the input provided for security questions and answers. -
Uses of JsonValue in org.forgerock.selfservice.stages.captcha
Modifier and TypeMethodDescriptionCaptchaStage.gatherInitialRequirements
(ProcessContext context, CaptchaStageConfig config) -
Uses of JsonValue in org.forgerock.selfservice.stages.email
Modifier and TypeMethodDescriptionRetrieveEmailStage.gatherInitialRequirements
(ProcessContext context, RetrieveEmailConfig config) VerifyEmailAccountStage.gatherInitialRequirements
(ProcessContext context, VerifyEmailAccountConfig config) -
Uses of JsonValue in org.forgerock.selfservice.stages.kba
Modifier and TypeMethodDescriptionSecurityAnswerDefinitionStage.gatherInitialRequirements
(ProcessContext context, SecurityAnswerDefinitionConfig config) SecurityAnswerVerificationStage.gatherInitialRequirements
(ProcessContext context, SecurityAnswerVerificationConfig config) Modifier and TypeMethodDescriptionvoid
SecurityAnswerLockoutManager.handleSecurityAnswerMatchFailure
(Context context, JsonValue user, String identityServiceUrl) Handle the security answer match failure.void
SecurityAnswerLockoutManager.validateUserLockout
(Context context, JsonValue user) Verifies whether user should be allowed to attempt security answer verification. -
Uses of JsonValue in org.forgerock.selfservice.stages.parameters
Modifier and TypeMethodDescriptionParametersStage.gatherInitialRequirements
(ProcessContext context, ParametersConfig config) -
Uses of JsonValue in org.forgerock.selfservice.stages.registration
Modifier and TypeMethodDescriptionUserRegistrationStage.gatherInitialRequirements
(ProcessContext context, UserRegistrationConfig config) -
Uses of JsonValue in org.forgerock.selfservice.stages.reset
Modifier and TypeMethodDescriptionResetStage.gatherInitialRequirements
(ProcessContext context, ResetStageConfig config) -
Uses of JsonValue in org.forgerock.selfservice.stages.user
Modifier and TypeMethodDescriptionEmailUsernameStage.gatherInitialRequirements
(ProcessContext context, EmailUsernameConfig config) RetrieveUsernameStage.gatherInitialRequirements
(ProcessContext context, RetrieveUsernameConfig config) UserDetailsStage.gatherInitialRequirements
(ProcessContext context, UserDetailsConfig config) UserQueryStage.gatherInitialRequirements
(ProcessContext context, UserQueryConfig config) ValidateActiveAccountStage.gatherInitialRequirements
(ProcessContext context, ValidateActiveAccountConfig config) -
Uses of JsonValue in org.forgerock.services
Modifier and TypeMethodDescriptionTransactionId.toJson()
Returns a representation of this TransactionId as a JsonValue. -
Uses of JsonValue in org.forgerock.services.context
Modifier and TypeFieldDescriptionprotected final JsonValue
AbstractContext.data
The Context data.Modifier and TypeMethodDescriptionAbstractContext.toJsonValue()
Context.toJsonValue()
Return this Context as a JsonValue (for persistence).RequestAuditContext.toJsonValue()
TransactionIdContext.toJsonValue()
Updates the data object to have the current transactionId state.ModifierConstructorDescriptionAbstractContext
(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
Modifier and TypeMethodDescriptionTokenHandler.validateAndExtractState
(String token) Validates and parses the token, extracting any encapsulated state. -
Uses of JsonValue in org.forgerock.util.query
Modifier and TypeMethodDescriptionJsonValueFilterVisitor.jsonValueFilterVisitor()
Returns aQueryFilterVisitor
that can assess if aJsonValue
resource matches a set of criteria defined by aQueryFilter
.Modifier and TypeMethodDescriptionJsonValueFilterVisitor.visitAndFilter
(JsonValue p, List<QueryFilter<JsonPointer>> subFilters) JsonValueFilterVisitor.visitBooleanLiteralFilter
(JsonValue p, boolean value) JsonValueFilterVisitor.visitComplexFilter
(JsonValue p, JsonPointer field, QueryFilter<JsonPointer> subFilter) JsonValueFilterVisitor.visitContainsFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitEqualsFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitExtendedMatchFilter
(JsonValue p, JsonPointer field, String matchingRuleId, Object valueAssertion) JsonValueFilterVisitor.visitGreaterThanFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitGreaterThanOrEqualToFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitLessThanFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitLessThanOrEqualToFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitNotFilter
(JsonValue p, QueryFilter<JsonPointer> subFilter) JsonValueFilterVisitor.visitOrFilter
(JsonValue p, List<QueryFilter<JsonPointer>> subFilters) JsonValueFilterVisitor.visitPresentFilter
(JsonValue p, JsonPointer field) JsonValueFilterVisitor.visitStartsWithFilter
(JsonValue p, JsonPointer field, Object valueAssertion)
JsonValue::copy
directly instead