Class GMRequestHandler


  • public class GMRequestHandler
    extends Object
    Handler for grant management requests.

    This class can be used to implement the grant management endpoint.

    Since:
    2.37
    See Also:
    Grant Management for OAuth 2.0
    • Constructor Detail

      • GMRequestHandler

        public GMRequestHandler​(com.authlete.common.api.AuthleteApi api)
        Constructor with an implementation of AuthleteApi interface.
        Parameters:
        api - Implementation of AuthleteApi interface.
    • Method Detail

      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.dto.GMRequest request)
                                         throws javax.ws.rs.WebApplicationException
        Handle a grant management request.
        Parameters:
        request - A grant management request.
        Returns:
        A response that should be returned from the grant management endpoint to the client application.
        Throws:
        javax.ws.rs.WebApplicationException
      • getApiCaller

        protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
      • unexpected

        protected javax.ws.rs.InternalServerErrorException unexpected​(String message,
                                                                      Throwable cause)