public Response handle ( AuthleteApi api , AuthorizationDecisionHandlerSpi spi , String ticket , String [ ] claimNames , String [ ] claimLocales ) { try { // Create a handler. AuthorizationDecisionHandler handler = new AuthorizationDecisionHandler ( api , spi ) ; // Delegate the task to the handler. return handler . handle ( ticket , claimNames , claimLocales ) ; } catch ( WebApplicationException e ) { // An error occurred in the handler. onError ( e ) ; // Convert the error to a Response. return e . getResponse ( ) ; } }
Handle an authorization decision request .