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 default
AuditEventHandlers . |
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.jdbc |
This package contains a JDBC AuditEventHandler implementation.
|
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.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.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.decoration |
[ Deprecated ] Contains the audit decorator and related filter/handler interceptors.
|
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 started and elapsed messages when
entering/exiting a Filter or a Handler.
|
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.resolver |
This package defines OpenAM specific logic needed to retrieve an
.AccessToken . |
org.forgerock.openig.heap |
Manages collections or "heaps" of associated objects, initialized from
declarative configuration artifacts.
|
org.forgerock.openig.openam |
OpenAM-specific integration classes.
|
org.forgerock.openig.util |
Miscellaneous utility classes.
|
org.forgerock.services |
This package contains the classes classes and interfaces used in the services' implementations.
|
org.forgerock.services.context |
This package contains the
Context interface and various common protocol
independent implementations. |
Constructor and Description |
---|
AuditingContext(JsonValue savedContext,
ClassLoader classLoader) |
Modifier and Type | Field and Description |
---|---|
protected JsonValue |
AuditEventBuilder.jsonValue
Represents the event as a JSON value.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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 and Description |
---|
EventTopicsMetaData(Map<String,JsonValue> eventTopicsMetaData)
Create a new EventTopicsMetaData.
|
Modifier and Type | Method and Description |
---|---|
JsonValue |
AuditEventTopicState.getEvent()
Returns the event content.
|
Modifier and Type | Method and Description |
---|---|
Promise<ResourceResponse,ResourceException> |
NoOpAuditEventHandler.publishEvent(Context context,
String topic,
JsonValue event) |
Promise<ResourceResponse,ResourceException> |
AuditEventHandler.publishEvent(Context context,
String topic,
JsonValue event)
Publishes an event to the provided topic.
|
Constructor and Description |
---|
AuditEventTopicState(Context context,
String topic,
JsonValue event)
Creates a (topic,event) pair.
|
Modifier and Type | Method and Description |
---|---|
void |
FilterChainBuilder.FilterChain.doFilter(String auditTopic,
JsonValue auditEvent)
Runs the filters in the filter chain.
|
void |
Filter.doFilter(String auditTopic,
JsonValue auditEvent)
Runs a filter on the given audit event.
|
Modifier and Type | Method and Description |
---|---|
Promise<ResourceResponse,ResourceException> |
CsvAuditEventHandler.publishEvent(Context context,
String topic,
JsonValue event)
Create a csv audit log entry.
|
Modifier and Type | Method and Description |
---|---|
Promise<ResourceResponse,ResourceException> |
JdbcAuditEventHandler.publishEvent(Context context,
String topic,
JsonValue event)
Publishes an event to the provided topic.
|
Modifier and Type | Method and Description |
---|---|
Promise<ResourceResponse,ResourceException> |
SyslogAuditEventHandler.publishEvent(Context context,
String topic,
JsonValue event) |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static QueryFilterVisitor<Boolean,JsonValue,JsonPointer> |
JsonValueUtils.JSONVALUE_FILTER_VISITOR
A generic JsonValue Query Filter Visitor.
|
Modifier and Type | Method and Description |
---|---|
static JsonValue |
JsonValueUtils.expand(Map<String,Object> object)
Expands a Json Object Map, where the keys of the map are the
JsonPointer s
and the values are the value the JsonPointer resolves to. |
Modifier and Type | Method and Description |
---|---|
static String |
JsonValueUtils.extractValueAsString(JsonValue json,
String fieldName)
Extracts String representation of field identified by
fieldName from json object. |
static Map<String,Object> |
JsonValueUtils.flatten(JsonValue jsonValue)
Flattens a
JsonValue to a Map, where the keys of the Map are JsonPointer s
and the values are the value the JsonPointer s resolve to. |
static Set<String> |
JsonSchemaUtils.generateJsonPointers(JsonValue schema)
Generates the Set of
JsonPointer s in a given JsonSchema. |
Constructor and Description |
---|
ApiVersionRouterContext(JsonValue savedContext,
ClassLoader classLoader)
Restore from JSON representation.
|
UriRouterContext(JsonValue savedContext,
ClassLoader classLoader)
Restore from JSON representation.
|
Constructor and Description |
---|
SessionContext(JsonValue savedContext,
ClassLoader classLoader)
Restore from JSON representation.
|
Modifier and Type | Class and Description |
---|---|
class |
JsonValueKeyAccessChecker
Subclass of
JsonValue that checks all keys are accessed. |
Modifier and Type | Method and Description |
---|---|
JsonValue |
JsonValueKeyAccessChecker.add(int index,
Object object)
Adds the specified value to the list.
|
JsonValue |
JsonValue.add(int index,
Object object)
Adds the specified value to the list.
|
JsonValue |
JsonValueKeyAccessChecker.add(JsonPointer pointer,
Object object)
Adds the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValue.add(JsonPointer pointer,
Object object)
Adds the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValueKeyAccessChecker.add(Object object)
Adds the specified value to a set or to the end of the list.
|
JsonValue |
JsonValue.add(Object object)
Adds the specified value to a set or to the end of the list.
|
JsonValue |
JsonValueKeyAccessChecker.add(String key,
Object object)
Adds the specified value.
|
JsonValue |
JsonValue.add(String key,
Object object)
Adds the specified value.
|
JsonValue |
JsonValueKeyAccessChecker.addPermissive(JsonPointer pointer,
Object object)
Adds the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValue.addPermissive(JsonPointer pointer,
Object object)
Adds the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValueKeyAccessChecker.clone()
Returns a shallow copy of this JSON value.
|
JsonValue |
JsonValue.clone()
Returns a shallow copy of this JSON value.
|
JsonValue |
JsonValueKeyAccessChecker.copy()
Returns a deep copy of this JSON value.
|
JsonValue |
JsonValue.copy()
Returns a deep copy of this JSON value.
|
JsonValue |
JsonValueKeyAccessChecker.defaultTo(Object object)
Defaults the JSON value to the specified value if it is currently
null . |
JsonValue |
JsonValue.defaultTo(Object object)
Defaults the JSON value to the specified value if it is currently
null . |
JsonValue |
JsonValueKeyAccessChecker.expect(Class<?> type)
Called to enforce that the JSON value is of a particular type.
|
JsonValue |
JsonValue.expect(Class<?> type)
Called to enforce that the JSON value is of a particular type.
|
JsonValue |
JsonValueKeyAccessChecker.get(int index)
Returns the specified child value.
|
JsonValue |
JsonValue.get(int index)
Returns the specified child value.
|
JsonValue |
JsonValueKeyAccessChecker.get(JsonPointer pointer)
Returns the specified child value with a pointer, relative to this value
as root.
|
JsonValue |
JsonValue.get(JsonPointer pointer)
Returns the specified child value with a pointer, relative to this value
as root.
|
JsonValue |
JsonValueKeyAccessChecker.get(String key)
Returns the specified item value.
|
JsonValue |
JsonValue.get(String key)
Returns the specified item value.
|
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.
|
JsonValue |
JsonValueKeyAccessChecker.put(int index,
Object object)
Sets the value of the specified child list element.
|
JsonValue |
JsonValue.put(int index,
Object object)
Sets the value of the specified child list element.
|
JsonValue |
JsonValueKeyAccessChecker.put(JsonPointer pointer,
Object object)
Sets the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValue.put(JsonPointer pointer,
Object object)
Sets the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValueKeyAccessChecker.put(String key,
Object object)
Sets the value of the specified member.
|
JsonValue |
JsonValue.put(String key,
Object object)
Sets the value of the specified member.
|
JsonValue |
JsonValueKeyAccessChecker.putPermissive(JsonPointer pointer,
Object object)
Sets the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValue.putPermissive(JsonPointer pointer,
Object object)
Sets the value identified by the specified pointer, relative to this
value as root.
|
JsonValue |
JsonValueKeyAccessChecker.recordKeyAccesses()
Returns a subclass of JsonValue that records which keys are accessed in this
JsonValue and its children. |
JsonValue |
JsonValue.recordKeyAccesses()
Returns a subclass of JsonValue that records which keys are accessed in this
JsonValue and its children. |
JsonValue |
JsonValueKeyAccessChecker.required()
Throws a
JsonValueException if the JSON value is null . |
JsonValue |
JsonValue.required()
Throws a
JsonValueException if the JSON value is null . |
Modifier and Type | Method and Description |
---|---|
Iterator<JsonValue> |
JsonValueKeyAccessChecker.iterator()
Returns an iterator over the child values that this JSON value contains.
|
Iterator<JsonValue> |
JsonValue.iterator()
Returns an iterator over the child values that this JSON value contains.
|
Modifier and Type | Method and Description |
---|---|
void |
JsonTransformer.transform(JsonValue value)
Performs the transformation of the specified JSON value.
|
Modifier and Type | Method and Description |
---|---|
<V,E extends Exception> |
JsonValue.asList(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as a
List containing objects whose type
(and value) is specified by a transformation function. |
<V,E extends Exception> |
JsonValue.asSet(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as a
Set containing objects whose type
(and value) is specified by a transformation function. |
Constructor and Description |
---|
JsonValueException(JsonValue value)
Constructs a new exception with the specified JSON value and
null
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.
|
JsonValueKeyAccessChecker(JsonValue delegate)
Constructs a
JsonValueKeyAccessChecker . |
Modifier and Type | Class and Description |
---|---|
static class |
RsaJWK.OtherFactors
Holds the other prime factors.
|
Modifier and Type | Method and Description |
---|---|
JsonValue |
JWKSet.getJWKsAsJsonValue()
Get the JWKs in the set.
|
protected static JsonValue |
JWKSet.toJsonValue(String json)
Converts a json string to a jsonValue.
|
protected static JsonValue |
JWK.toJsonValue(String json)
Converts a String into a JsonValue.
|
Modifier and Type | Method and Description |
---|---|
static RsaJWK |
RsaJWK.parse(JsonValue json)
Parses a RsaJWK from a jsonValue Object.
|
static OctJWK |
OctJWK.parse(JsonValue json)
Parses a OctJWK object from a jsonValue object.
|
static JWKSet |
JWKSet.parse(JsonValue json)
Parses a JWKSet object from a jsonValue object.
|
static JWK |
JWK.parse(JsonValue jwk)
Parses a JsonValue into the proper JWK type.
|
static EcJWK |
EcJWK.parse(JsonValue json)
Parses a JWK from a JsonValue json object.
|
Constructor and Description |
---|
JWKSet(JsonValue jwk)
Construct a JWKSet from a single JWK.
|
Modifier and Type | Method and Description |
---|---|
JsonValue |
JWObject.get(String key)
Returns the specified item value.
|
Modifier and Type | Method and 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 |
UpdateRequest.getContent()
Returns the content of the JSON resource to be replaced.
|
JsonValue |
ResourceResponse.getContent()
Returns the JSON content of this resource.
|
JsonValue |
CreateRequest.getContent()
Returns the content of the JSON resource to be created.
|
JsonValue |
ActionRequest.getContent()
Returns the content of this action request.
|
JsonValue |
ResourceException.getDetail()
Returns the additional detail which can be evaluated by applications.
|
JsonValue |
ActionResponse.getJsonContent()
Gets the
JsonValue content contained in the Response . |
JsonValue |
PatchOperation.getValue()
Returns the value for the patch operation.
|
JsonValue |
UpdateRequest.toJsonValue() |
JsonValue |
ResourceException.toJsonValue()
Returns the exception in a JSON object structure, suitable for inclusion
in the entity of an HTTP error response.
|
JsonValue |
Request.toJsonValue()
Return a JsonValue representation of this request.
|
JsonValue |
ReadRequest.toJsonValue() |
JsonValue |
QueryRequest.toJsonValue() |
JsonValue |
PatchRequest.toJsonValue() |
JsonValue |
PatchOperation.toJsonValue()
Returns a JSON value representation of this patch operation.
|
JsonValue |
DeleteRequest.toJsonValue() |
JsonValue |
CreateRequest.toJsonValue() |
JsonValue |
ActionRequest.toJsonValue() |
Modifier and Type | Method and Description |
---|---|
PatchRequest |
PatchRequest.addPatchOperation(String operation,
String field,
JsonValue value)
Adds a single patch operation which should be performed against the targeted resource.
|
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 new
JsonValue response with the provided JSON content. |
static CreateRequest |
Requests.newCreateRequest(ResourcePath 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(String resourceContainer,
JsonValue content)
Returns a new create request with the provided resource path, and 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 ResourceResponse |
Responses.newResourceResponse(String id,
String revision,
JsonValue content)
Returns a new
Resource response with the provided Resource as
content. |
static UpdateRequest |
Requests.newUpdateRequest(ResourcePath 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(String resourcePath,
JsonValue newContent)
Returns a new update request with the provided resource path and new JSON
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.
|
UpdateRequest |
UpdateRequest.setContent(JsonValue content)
Sets the content of the JSON resource to be replaced.
|
CreateRequest |
CreateRequest.setContent(JsonValue content)
Sets the content of the JSON resource to be created.
|
ActionRequest |
ActionRequest.setContent(JsonValue content)
Sets the content of this action request.
|
ResourceException |
ResourceException.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.
|
Constructor and Description |
---|
AdviceContext(JsonValue savedContext,
ClassLoader classLoader)
Restore from JSON representation.
|
Constructor and Description |
---|
HttpContext(JsonValue savedContext,
ClassLoader classLoader)
Restore from JSON representation.
|
Modifier and Type | Method and Description |
---|---|
protected Filter |
AuditDecorator.decorateFilter(Filter delegate,
JsonValue decoratorConfig,
Context context)
Deprecated.
|
protected Handler |
AuditDecorator.decorateHandler(Handler delegate,
JsonValue decoratorConfig,
Context context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
JsonValue |
Context.getConfig()
Returns the heap object being decorated configuration.
|
Modifier and Type | Method and Description |
---|---|
Object |
Decorator.decorate(Object delegate,
JsonValue decoratorConfig,
Context context)
Decorates the provided
delegate instance with the provided decoratorConfig configuration. |
Modifier and Type | Method and Description |
---|---|
protected Filter |
BaseUriDecorator.decorateFilter(Filter delegate,
JsonValue decoratorConfig,
Context context) |
protected Handler |
BaseUriDecorator.decorateHandler(Handler delegate,
JsonValue decoratorConfig,
Context context) |
Modifier and Type | Method and Description |
---|---|
protected Filter |
CaptureDecorator.decorateFilter(Filter delegate,
JsonValue decoratorConfig,
Context context) |
protected Handler |
CaptureDecorator.decorateHandler(Handler delegate,
JsonValue decoratorConfig,
Context context) |
Modifier and Type | Method and Description |
---|---|
Object |
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.
|
Constructor and Description |
---|
GlobalDecorator(Decorator parent,
JsonValue config,
String... reservedFieldNames)
Builds a new GlobalDecorator using given decorators JSON object element.
|
Modifier and Type | Field and Description |
---|---|
protected JsonValue |
DecoratorHeaplet.config
The heaplet's object configuration object.
|
Modifier and Type | Method and Description |
---|---|
Object |
DecoratorHeaplet.create(Name name,
JsonValue config,
Heap heap) |
Object |
AbstractHandlerAndFilterDecorator.decorate(Object delegate,
JsonValue decoratorConfig,
Context context) |
protected abstract Filter |
AbstractHandlerAndFilterDecorator.decorateFilter(Filter delegate,
JsonValue decoratorConfig,
Context context)
|
protected abstract Handler |
AbstractHandlerAndFilterDecorator.decorateHandler(Handler delegate,
JsonValue decoratorConfig,
Context context)
|
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 type type
from the given heap . |
Modifier and Type | Method and Description |
---|---|
protected Filter |
TimerDecorator.decorateFilter(Filter delegate,
JsonValue decoratorConfig,
Context context) |
protected Handler |
TimerDecorator.decorateHandler(Handler delegate,
JsonValue decoratorConfig,
Context context) |
Modifier and Type | Method and Description |
---|---|
JsonValue |
AccessToken.asJsonValue()
Returns the raw JSON as returned by the tokeninfo endpoint.
|
Modifier and Type | Method and Description |
---|---|
JsonValue |
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.
|
JsonValue |
ClientRegistration.getUserInfo(Context context,
org.forgerock.openig.filter.oauth2.client.OAuth2Session session)
Returns 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.
|
JsonValue |
ClientRegistration.refreshAccessToken(Context context,
org.forgerock.openig.filter.oauth2.client.OAuth2Session session)
Refreshes the actual access token, making a refresh request to the token
end-point.
|
Constructor and Description |
---|
ClientRegistration(String name,
JsonValue config,
Issuer issuer,
Handler registrationHandler)
Creates a Client Registration.
|
ClientRegistrationFilter(Handler registrationHandler,
JsonValue config,
Heap heap,
String suffix)
Creates a new dynamic registration filter.
|
Issuer(String name,
JsonValue config)
Creates an issuer with the specified name and configuration.
|
OAuth2ClientFilter(TimeService time,
Heap heap,
JsonValue metadata,
String name,
Handler discoveryHandler,
Expression<String> clientEndpoint)
Constructs an
OAuth2ClientFilter . |
Modifier and Type | Method and Description |
---|---|
JsonValue |
OpenAmAccessToken.asJsonValue() |
Modifier and Type | Method and Description |
---|---|
OpenAmAccessToken |
OpenAmAccessToken.Builder.build(JsonValue raw)
Builds a
OpenAmAccessToken from a raw JSON response returned by the /oauth2/tokeninfo
endpoint. |
Constructor and Description |
---|
OpenAmAccessToken(JsonValue rawInfo,
String token,
Set<String> scopes,
long expiresAt)
Builds a
AccessToken with the result of a call to the tokeninfo endpoint. |
Modifier and Type | Field and Description |
---|---|
protected JsonValue |
GenericHeaplet.config
The heaplet's object configuration object.
|
Modifier and Type | Method and Description |
---|---|
void |
HeapImpl.addDefaultDeclaration(JsonValue object)
Add a default JsonValue object declaration in this heap.
|
Object |
Heaplet.create(Name name,
JsonValue config,
Heap heap)
Called to request the heaplet to create an object.
|
Object |
GenericHeaplet.create(Name name,
JsonValue config,
Heap heap) |
void |
HeapImpl.init(JsonValue config,
String... reservedFieldNames)
Initializes the heap using the given configuration.
|
static String |
HeapImpl.name(JsonValue declaration)
Infer a locally unique name for the given object declaration.
|
<T> T |
HeapImpl.resolve(JsonValue reference,
Class<T> type) |
<T> T |
Heap.resolve(JsonValue reference,
Class<T> type)
Resolves a mandatory object with the specified reference.
|
<T> T |
HeapImpl.resolve(JsonValue reference,
Class<T> type,
boolean optional) |
<T> T |
Heap.resolve(JsonValue reference,
Class<T> type,
boolean optional)
Resolves an object with the specified reference, optionally or not.
|
Modifier and Type | Method and Description |
---|---|
void |
PolicyEnforcementFilter.setCache(ThreadSafeCache<String,Promise<JsonValue,ResourceException>> cache)
Sets the cache for the policy decisions.
|
Modifier and Type | Method and Description |
---|---|
static JsonValue |
JsonValues.evaluate(JsonValue value,
Logger logger)
Evaluates the given JSON value object, applying a
JsonTransformer
that will evaluate all String nodes. |
static JsonValue |
JsonValues.evaluateJsonStaticExpression(JsonValue value)
Evaluates the given JSON value using an Expression and wraps the returned value as a new JsonValue.
|
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,
Logger logger,
String name,
String... deprecatedNames)
Returns the named property from the provided JSON object, falling back to
zero or more deprecated property names.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Enum<T>> |
JsonValues.ofEnum(Class<T> enumType)
|
static Function<JsonValue,Expression<String>,HeapException> |
JsonValues.ofExpression()
Returns a function for transforming JsonValues to expressions.
|
static <T> Function<JsonValue,T,HeapException> |
JsonValues.ofRequiredHeapObject(Heap heap,
Class<T> type)
|
Modifier and Type | Method and 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 <T> Expression<T> |
JsonValues.asExpression(JsonValue value,
Class<T> expectedType)
Returns a JSON value string value as an expression.
|
static <T> T |
JsonValues.asNewInstance(JsonValue value,
Class<T> type)
Creates a new instance of a named class.
|
static String |
JsonValues.evaluate(JsonValue value)
Evaluates the given JSON value string as an
Expression . |
static JsonValue |
JsonValues.evaluate(JsonValue value,
Logger logger)
Evaluates the given JSON value object, applying a
JsonTransformer
that will evaluate all String nodes. |
static JsonValue |
JsonValues.evaluateJsonStaticExpression(JsonValue value)
Evaluates the given JSON value using an Expression and wraps the returned value as a new JsonValue.
|
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,
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,
Logger logger,
String name,
String deprecatedName)
Issues a warning that the configuration property
oldName is
deprecated and that the property newName should be used instead. |
Modifier and Type | Method and Description |
---|---|
JsonValue |
TransactionId.toJson()
Returns a representation of this TransactionId as a JsonValue.
|
Modifier and Type | Method and Description |
---|---|
static TransactionId |
TransactionId.valueOf(JsonValue value)
Creates a TransactionId from a JsonValue.
|
Modifier and Type | Field and Description |
---|---|
protected JsonValue |
AbstractContext.data
The Context data.
|
Modifier and Type | Method and Description |
---|---|
JsonValue |
TransactionIdContext.toJsonValue()
Updates the data object to have the current transactionId state.
|
JsonValue |
Context.toJsonValue()
Return this Context as a JsonValue (for persistence).
|
JsonValue |
AbstractContext.toJsonValue() |
Constructor and 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.
|
Copyright 2011-2015 ForgeRock AS.