Class FederationConfigurationRequestHandler


  • public class FederationConfigurationRequestHandler
    extends Object
    Handler for requests to the entity configuration endpoint.

    This class can be used to implement the entity configuration endpoint (/.well-known/openid-federation) of the service.

    Since:
    2.49, Authlete 2.3
    See Also:
    OpenID Connect Federation 1.0
    • Constructor Detail

      • FederationConfigurationRequestHandler

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

      • handle

        public jakarta.ws.rs.core.Response handle​(com.authlete.common.dto.FederationConfigurationRequest request)
                                           throws jakarta.ws.rs.WebApplicationException
        Handle a request to the entity configuration endpoint. This method is an alias of handle (request, null).
        Parameters:
        request - An entity configuration request.
        Returns:
        A response that should be returned from the entity configuration endpoint.
        Throws:
        jakarta.ws.rs.WebApplicationException
      • handle

        public jakarta.ws.rs.core.Response handle​(com.authlete.common.dto.FederationConfigurationRequest request,
                                                  com.authlete.common.api.Options options)
                                           throws jakarta.ws.rs.WebApplicationException
        Handle a request to the entity configuration endpoint.
        Parameters:
        request - An entity configuration request.
        options - The request options for the /api/federation/configuration API.
        Returns:
        A response that should be returned from the entity configuration endpoint.
        Throws:
        jakarta.ws.rs.WebApplicationException
        Since:
        2.82
      • getApiCaller

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

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