Class OID4VCClientRegistrationProvider

java.lang.Object
org.keycloak.services.clientregistration.AbstractClientRegistrationProvider
org.keycloak.protocol.oid4vc.OID4VCClientRegistrationProvider
All Implemented Interfaces:
Provider, ClientRegistrationProvider

public class OID4VCClientRegistrationProvider extends AbstractClientRegistrationProvider
Provides the client-registration functionality for OID4VC-clients.
Author:
Stefan Wiedemann
  • Constructor Details

    • OID4VCClientRegistrationProvider

      public OID4VCClientRegistrationProvider(KeycloakSession session)
  • Method Details

    • createOID4VCClient

      @POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response createOID4VCClient(OID4VCClient client)
    • updateOID4VCClient

      @PUT @Path("{clientId}") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response updateOID4VCClient(@PathParam("clientId") String clientDid, OID4VCClient client)
    • deleteOID4VCClient

      @DELETE @Path("{clientId}") public jakarta.ws.rs.core.Response deleteOID4VCClient(@PathParam("clientId") String clientDid)
    • validate

      public static void validate(ClientRepresentation client)
      Validates the clientRepresentation to fulfill the requirement of an OID4VC client
    • toClientRepresentation

      protected static ClientRepresentation toClientRepresentation(OID4VCClient oid4VCClient)
      Translate an incoming OID4VCClient into a keycloak native ClientRepresentation.
      Parameters:
      oid4VCClient - pojo, containing the oid4vc client parameters
      Returns:
      a clientRepresentation
    • fromClientAttributes

      public static OID4VCClient fromClientAttributes(String clientId, Map<String,String> clientAttributes)