Package org.keycloak.protocol.oid4vc
Class OID4VCClientRegistrationProvider
java.lang.Object
org.keycloak.services.clientregistration.AbstractClientRegistrationProvider
org.keycloak.protocol.oid4vc.OID4VCClientRegistrationProvider
- All Implemented Interfaces:
Provider
,ClientRegistrationProvider
Provides the client-registration functionality for OID4VC-clients.
- Author:
- Stefan Wiedemann
-
Field Summary
Fields inherited from class org.keycloak.services.clientregistration.AbstractClientRegistrationProvider
auth, event, session
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
createOID4VCClient
(OID4VCClient client) jakarta.ws.rs.core.Response
deleteOID4VCClient
(String clientDid) static OID4VCClient
fromClientAttributes
(String clientId, Map<String, String> clientAttributes) protected static ClientRepresentation
toClientRepresentation
(OID4VCClient oid4VCClient) Translate an incomingOID4VCClient
into a keycloak nativeClientRepresentation
.jakarta.ws.rs.core.Response
updateOID4VCClient
(String clientDid, OID4VCClient client) static void
validate
(ClientRepresentation client) Validates the clientRepresentation to fulfill the requirement of an OID4VC clientMethods inherited from class org.keycloak.services.clientregistration.AbstractClientRegistrationProvider
close, create, delete, get, getAuth, getEvent, setAuth, setEvent, update, validateClient, validateClient
-
Constructor Details
-
OID4VCClientRegistrationProvider
-
-
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
Validates the clientRepresentation to fulfill the requirement of an OID4VC client -
toClientRepresentation
Translate an incomingOID4VCClient
into a keycloak nativeClientRepresentation
.- Parameters:
oid4VCClient
- pojo, containing the oid4vc client parameters- Returns:
- a clientRepresentation
-
fromClientAttributes
public static OID4VCClient fromClientAttributes(String clientId, Map<String, String> clientAttributes)
-