Class OID4VCIssuerEndpoint

java.lang.Object
org.keycloak.protocol.oid4vc.issuance.OID4VCIssuerEndpoint

public class OID4VCIssuerEndpoint extends Object
Provides the (REST-)endpoints required for the OID4VCI protocol.

Author:
Stefan Wiedemann
  • Field Details

  • Constructor Details

  • Method Details

    • getCredentialOfferURI

      @GET @Produces({"application/json","image/png"}) @Path("credential-offer-uri") public jakarta.ws.rs.core.Response getCredentialOfferURI(@QueryParam("credential_configuration_id") String vcId, @QueryParam("type") @DefaultValue("uri") OfferUriType type, @QueryParam("width") @DefaultValue("200") int width, @QueryParam("height") @DefaultValue("200") int height)
      Provides the URI to the OID4VCI compliant credentials offer
    • getCredentialOffer

      @GET @Produces("application/json") @Path("credential-offer/{sessionCode}") public jakarta.ws.rs.core.Response getCredentialOffer(@PathParam("sessionCode") String sessionCode)
      Provides an OID4VCI compliant credentials offer
    • requestCredential

      @POST @Consumes("application/json") @Produces("application/json") @Path("credential") public jakarta.ws.rs.core.Response requestCredential(CredentialRequest credentialRequestVO)
      Returns a verifiable credential