Class CredentialIssuerMetadataRequestHandler


  • public class CredentialIssuerMetadataRequestHandler
    extends Object
    Handler for requests to the credential issuer metadata endpoint.

    This class can be used to implement the credential issuer metadata endpoint (/.well-known/openid-credential-issuer) of the service.

    Since:
    2.57, Authlete 3.0
    See Also:
    OpenID for Verifiable Credential Issuance
    • Constructor Detail

      • CredentialIssuerMetadataRequestHandler

        public CredentialIssuerMetadataRequestHandler​(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.CredentialIssuerMetadataRequest request)
                                           throws jakarta.ws.rs.WebApplicationException
        Handle a request to the credential issuer metadata endpoint. This method is an alias of the handle(request, null).
        Parameters:
        request - A credential issuer metadata request.
        Returns:
        A response that should be returned from the credential issuer metadata endpoint.
        Throws:
        jakarta.ws.rs.WebApplicationException
      • handle

        public jakarta.ws.rs.core.Response handle​(com.authlete.common.dto.CredentialIssuerMetadataRequest request,
                                                  com.authlete.common.api.Options options)
                                           throws jakarta.ws.rs.WebApplicationException
        Handle a request to the credential issuer metadata endpoint.
        Parameters:
        request - A credential issuer metadata request.
        options - The request options for the /api/vci/metadata API.
        Returns:
        A response that should be returned from the credential issuer metadata 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)