Class BaseCredentialIssuerMetadataEndpoint
- java.lang.Object
-
- com.authlete.jaxrs.BaseEndpoint
-
- com.authlete.jaxrs.BaseCredentialIssuerMetadataEndpoint
-
public class BaseCredentialIssuerMetadataEndpoint extends BaseEndpoint
A base class for the credential issuer metadata endpoint (/.well-known/openid-credential-issuer
) defined in OpenID for Verifiable Credential Issuance.A credential issuer that supports OpenID for Verifiable Credential Issuance must provide an endpoint that returns its credential issuer metadata in the JSON format. The URL of the endpoint is defined as follows:
Credential Issuer Identifier +
/.well-known/openid-credential-issuer
Credential Issuer Identifier is a URL that identifies a credential issuer.
- Since:
- 2.57, Authlete 3.0
- See Also:
- OpenID for Verifiable Credential Issuance
-
-
Constructor Summary
Constructors Constructor Description BaseCredentialIssuerMetadataEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
handle(com.authlete.common.api.AuthleteApi api)
Handle a request to the credential issuer metadata endpoint.javax.ws.rs.core.Response
handle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.CredentialIssuerMetadataRequest request)
Handle a request to the credential issuer metadata endpoint.-
Methods inherited from class com.authlete.jaxrs.BaseEndpoint
extractClientCertificate, extractClientCertificateChain, extractHeadersAsPairs, onError, takeAttribute
-
-
-
-
Method Detail
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.CredentialIssuerMetadataRequest request)
Handle a request to the credential issuer metadata endpoint.This method internally creates a
CredentialIssuerMetadataRequestHandler
instance and calls itshandle
(
method. Then, this method uses the value returned from the handler's method as a response from this method.CredentialIssuerMetadataRequest
)When the handler's method raises a
WebApplicationException
, this method callsonError(WebApplicationException)
method with the exception. The default implementation ofonError()
does nothing. You can override the method as necessary. After callingonError()
method, this method callsgetResponse()
method of the exception and uses the returned value as a response from this method.- Parameters:
api
- An implementation ofAuthleteApi
.- Returns:
- A response that should be returned from the credential issuer metadata endpoint.
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api)
Handle a request to the credential issuer metadata endpoint.This method is an alias of
handle
(api, new CredentialIssuerMetadataRequest())
- Parameters:
api
- An implementation ofAuthleteApi
.- Returns:
- A response that should be returned from the credential issuer metadata endpoint.
-
-