Package org.forgerock.oauth2.restlet
Class OAuth2FlowFinder
- java.lang.Object
-
- org.restlet.Restlet
-
- org.restlet.resource.Finder
-
- org.forgerock.oauth2.restlet.OAuth2FlowFinder
-
- All Implemented Interfaces:
org.restlet.Uniform
- Direct Known Subclasses:
AccessTokenFlowFinder
public class OAuth2FlowFinder extends org.restlet.resource.FinderFinds the correct OAuth2 endpoint handler based on the specified grant type in the request.- Since:
- 11.0.0
-
-
Constructor Summary
Constructors Constructor Description OAuth2FlowFinder(OAuth2RequestFactory requestFactory, ExceptionHandler exceptionHandler, Map<String,org.restlet.resource.Finder> endpointClasses)Constructs a new OAuth2FlowFinder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.restlet.resource.ServerResourcecreate(org.restlet.Request request, org.restlet.Response response)Creates a new instance of the handler for the correct OAuth2 endpoint based from the grant type specified in the requests query parameters.-
Methods inherited from class org.restlet.resource.Finder
create, createFinder, find, getTargetClass, handle, setTargetClass, toString
-
Methods inherited from class org.restlet.Restlet
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner, start, stop
-
-
-
-
Constructor Detail
-
OAuth2FlowFinder
public OAuth2FlowFinder(OAuth2RequestFactory requestFactory, ExceptionHandler exceptionHandler, Map<String,org.restlet.resource.Finder> endpointClasses)
Constructs a new OAuth2FlowFinder.- Parameters:
requestFactory- An instance of the OAuth2RequestFactory.exceptionHandler- An instance of the ExceptionHandler.endpointClasses- The endpoint handlers for the OAuth2 token endpoints.
-
-
Method Detail
-
create
public org.restlet.resource.ServerResource create(org.restlet.Request request, org.restlet.Response response)Creates a new instance of the handler for the correct OAuth2 endpoint based from the grant type specified in the requests query parameters.- Overrides:
createin classorg.restlet.resource.Finder- Parameters:
request-response-- Returns:
-
-