public Response handle ( AuthleteApi api , UserInfoRequestHandlerSpi spi , String accessToken ) { try { // Create a handler. UserInfoRequestHandler handler = new UserInfoRequestHandler ( api , spi ) ; // Delegate the task to the handler. return handler . handle ( accessToken ) ; } catch ( WebApplicationException e ) { // An error occurred in the handler. onError ( e ) ; // Convert the error to a Response. return e . getResponse ( ) ; } }
Handle a userinfo request .