Class BaseCredentialJwtIssuerMetadataEndpoint


  • public class BaseCredentialJwtIssuerMetadataEndpoint
    extends BaseEndpoint
    A base class for the JWT issuer metadata endpoint (/.well-known/jwt-issuer) defined in SD-JWT-based Verifiable Credentials (SD-JWT VC).

    A JWT issuer provides an endpoint that returns its JWT issuer metadata in the JSON format. The URL of the endpoint is defined as follows:

    JWT Issuer Identifier + /.well-known/jwt-issuer

    JWT Issuer Identifier is a URL that identifies the JWT issuer.

    Since:
    2.65, Authlete 3.0
    See Also:
    SD-JWT-based Verifiable Credentials (SD-JWT VC)
    • Constructor Detail

      • BaseCredentialJwtIssuerMetadataEndpoint

        public BaseCredentialJwtIssuerMetadataEndpoint()
    • Method Detail

      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api,
                                                com.authlete.common.dto.CredentialJwtIssuerMetadataRequest request)
        Handle a request to the JWT issuer metadata endpoint.

        This method internally creates a CredentialJwtIssuerMetadataRequestHandler instance and calls its handle(CredentialJwtIssuerMetadataRequest) method. Then, this method uses the value returned from the handler's method as a response from this method.

        When the handler's method raises a WebApplicationException, this method calls onError(WebApplicationException) 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.
        Returns:
        A response that should be returned from the JWT issuer metadata endpoint.
      • handle

        public javax.ws.rs.core.Response handle​(com.authlete.common.api.AuthleteApi api)
        Handle a request to the JWT issuer metadata endpoint.

        This method is an alias of handle(api, new CredentialJwtIssuerMetadataRequest())

        Parameters:
        api - An implementation of AuthleteApi.
        Returns:
        A response that should be returned from the JWT issuer metadata endpoint.