Class OID4VCIssuerEndpoint
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.OID4VCIssuerEndpoint
Provides the (REST-)endpoints required for the OID4VCI protocol.
- Author:
- Stefan Wiedemann
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOID4VCIssuerEndpoint
(KeycloakSession keycloakSession) OID4VCIssuerEndpoint
(KeycloakSession session, String issuerDid, Map<String, VerifiableCredentialsSigningService> signingServices, AppAuthManager.BearerTokenAuthenticator authenticator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, TimeProvider timeProvider, int preAuthorizedCodeLifeSpan) OID4VCIssuerEndpoint
(KeycloakSession session, String issuerDid, Map<String, VerifiableCredentialsSigningService> signingServices, AppAuthManager.BearerTokenAuthenticator authenticator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, TimeProvider timeProvider, int preAuthorizedCodeLifeSpan, boolean isIgnoreScopeCheck) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
getCredentialOffer
(String sessionCode) Provides an OID4VCI compliant credentials offerjakarta.ws.rs.core.Response
getCredentialOfferURI
(String vcId, OfferUriType type, int width, int height) Provides the URI to the OID4VCI compliant credentials offerjakarta.ws.rs.core.Response
requestCredential
(CredentialRequest credentialRequestVO) Returns a verifiable credential
-
Field Details
-
CREDENTIAL_PATH
- See Also:
-
CREDENTIAL_OFFER_PATH
- See Also:
-
RESPONSE_TYPE_IMG_PNG
- See Also:
-
CREDENTIAL_OFFER_URI_CODE_SCOPE
- See Also:
-
-
Constructor Details
-
OID4VCIssuerEndpoint
public OID4VCIssuerEndpoint(KeycloakSession session, String issuerDid, Map<String, VerifiableCredentialsSigningService> signingServices, AppAuthManager.BearerTokenAuthenticator authenticator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, TimeProvider timeProvider, int preAuthorizedCodeLifeSpan) -
OID4VCIssuerEndpoint
public OID4VCIssuerEndpoint(KeycloakSession session, String issuerDid, Map<String, VerifiableCredentialsSigningService> signingServices, AppAuthManager.BearerTokenAuthenticator authenticator, com.fasterxml.jackson.databind.ObjectMapper objectMapper, TimeProvider timeProvider, int preAuthorizedCodeLifeSpan, boolean isIgnoreScopeCheck) -
OID4VCIssuerEndpoint
-
-
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
-