Class RestrictedTokenContextFilter
- java.lang.Object
-
- org.forgerock.openam.rest.resource.RestrictedTokenContextFilter
-
- All Implemented Interfaces:
Filter
@SupportedAll public class RestrictedTokenContextFilter extends Object implements Filter
A filter that can be applied to a CREST route in order to enter the restricted token context for a request if it contains a requester token as well as subject token.- Since:
- AM 7.0.0
-
-
Constructor Summary
Constructors Constructor Description RestrictedTokenContextFilter()
-
Method Summary
-
-
-
Method Detail
-
filterAction
public Promise<ActionResponse,ResourceException> filterAction(Context context, ActionRequest request, RequestHandler next)
Description copied from interface:FilterFilters an action request.- Specified by:
filterActionin interfaceFilter- Parameters:
context- The filter chain context.request- The action request.next- A request handler representing the remainder of the filter chain.- Returns:
- A
Promisecontaining the result of the operation.
-
filterCreate
public Promise<ResourceResponse,ResourceException> filterCreate(Context context, CreateRequest request, RequestHandler next)
Description copied from interface:FilterFilters a create request.- Specified by:
filterCreatein interfaceFilter- Parameters:
context- The filter chain context.request- The create request.next- A request handler representing the remainder of the filter chain.- Returns:
- A
Promisecontaining the result of the operation.
-
filterDelete
public Promise<ResourceResponse,ResourceException> filterDelete(Context context, DeleteRequest request, RequestHandler next)
Description copied from interface:FilterFilters a delete request.- Specified by:
filterDeletein interfaceFilter- Parameters:
context- The filter chain context.request- The delete request.next- A request handler representing the remainder of the filter chain.- Returns:
- A
Promisecontaining the result of the operation.
-
filterPatch
public Promise<ResourceResponse,ResourceException> filterPatch(Context context, PatchRequest request, RequestHandler next)
Description copied from interface:FilterFilters a patch request.- Specified by:
filterPatchin interfaceFilter- Parameters:
context- The filter chain context.request- The patch request.next- A request handler representing the remainder of the filter chain.- Returns:
- A
Promisecontaining the result of the operation.
-
filterQuery
public Promise<QueryResponse,ResourceException> filterQuery(Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next)
Description copied from interface:FilterFilters a query request.Implementations which return results directly rather than forwarding the request should invoke
QueryResourceHandler.handleResource(ResourceResponse)for each resource which matches the query criteria. Once all matching resources have been returned implementations are required to return either aQueryResponseif the query has completed successfully, orResourceExceptionif the query did not complete successfully (even if some matching resources were returned).- Specified by:
filterQueryin interfaceFilter- Parameters:
context- The filter chain context.request- The query request.handler- The resource handler.next- A request handler representing the remainder of the filter chain.- Returns:
- A
Promisecontaining the result of the operation.
-
filterRead
public Promise<ResourceResponse,ResourceException> filterRead(Context context, ReadRequest request, RequestHandler next)
Description copied from interface:FilterFilters a read request.- Specified by:
filterReadin interfaceFilter- Parameters:
context- The filter chain context.request- The read request.next- A request handler representing the remainder of the filter chain.- Returns:
- A
Promisecontaining the result of the operation.
-
filterUpdate
public Promise<ResourceResponse,ResourceException> filterUpdate(Context context, UpdateRequest request, RequestHandler next)
Description copied from interface:FilterFilters an update request.- Specified by:
filterUpdatein interfaceFilter- Parameters:
context- The filter chain context.request- The update request.next- A request handler representing the remainder of the filter chain.- Returns:
- A
Promisecontaining the result of the operation.
-
-