Class BaseRevocationEndpoint

    • Constructor Detail

      • BaseRevocationEndpoint

        public BaseRevocationEndpoint()
    • Method Detail

      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api,
                                                javax.ws.rs.core.MultivaluedMap<String,​String> parameters,
                                                String authorization)
        Handle a revocation request.

        This method internally creates a RevocationRequestHandler instance and calls its RevocationRequestHandler.handle(Params) method. Then, this method uses the value returned from the handle() method as a response from this method.

        When RevocationRequestHandler.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.
        parameters - Request parameters of a revocation request.
        authorization - The value of Authorization header.
        Returns:
        A response that should be returned to the client application.
      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api,
                                                RevocationRequestHandler.Params params)
        Handle a revocation request.
        Parameters:
        api - An implementation of AuthleteApi.
        params - Parameters for Authlete's /auth/revocation API.
        Returns:
        A response that should be returned to the client application.
        Since:
        2.79