Class BaseIntrospectionEndpoint

    • Constructor Detail

      • BaseIntrospectionEndpoint

        public BaseIntrospectionEndpoint()
    • Method Detail

      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api,
                                                javax.ws.rs.core.MultivaluedMap<String,​String> parameters)
        Handle an introspection request. This method is an alias of the handle(AuthleteApi, IntrospectionRequestHandler.Params) method.
        Parameters:
        api - An implementation of AuthleteApi.
        parameters - Request parameters of an introspection request.
        Returns:
        A response that should be returned to the resource server.
      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api,
                                                IntrospectionRequestHandler.Params params)
        Handle an introspection request.

        This method internally creates an IntrospectionRequestHandler instance and calls its handle() method with the params argument. Then, this method uses the value returned from the handle() method as a response from this method.

        When IntrospectionRequestHandler.handle() method raises a WebApplicationException, this method calls onError() method with the exception. The default implementation of onError() does nothing. You can override the method as necessary. After calling onError() method, this method calls getResponse() method of the exception and uses the returned value as a response from this method.

        Parameters:
        api - An implementation of AuthleteApi.
        params - Parameters needed to handle the introspection request.
        Returns:
        A response that should be returned to the resource server.
        Since:
        2.63