Class BasePushedAuthReqEndpoint

    • Constructor Detail

      • BasePushedAuthReqEndpoint

        public BasePushedAuthReqEndpoint()
    • Method Detail

      • handle

        protected javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api,
                                                   javax.ws.rs.core.MultivaluedMap<String,​String> parameters,
                                                   String authorization,
                                                   String[] clientCertificates)
        Handle a pushed authorization request.

        This method internally creates a PushedAuthReqHandler instance and calls its PushedAuthReqHandler.handle(MultivaluedMap, String, String[]) method. Then, this method uses the value returned from the handle() method as a response from this method.

        When PushedAuthReqHandler.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 the pushed authorization request.
        authorization - The value of Authorization header of the pushed authorization request.
        clientCertificates - The certificate path used in mutual TLS authentication, in PEM format. The client's own certificate is the first in this array. Can be null.
        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,
                                                PushedAuthReqHandler.Params params)
        Handle a PAR request.

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

        When PushedAuthReqHandler.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 PAR request.
        Returns:
        A response that should be returned to the client application.
        Since:
        2.70