Class OAuth2FlowFinder

  • All Implemented Interfaces:
    org.restlet.Uniform
    Direct Known Subclasses:
    AccessTokenFlowFinder

    public class OAuth2FlowFinder
    extends org.restlet.resource.Finder
    Finds the correct OAuth2 endpoint handler based on the specified grant type in the request.
    Since:
    11.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • 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:
        create in class org.restlet.resource.Finder
        Parameters:
        request -
        response -
        Returns: