Class AccountVerifiableCredentialResource
java.lang.Object
org.keycloak.services.resources.account.AccountVerifiableCredentialResource
-
Constructor Summary
ConstructorsConstructorDescriptionAccountVerifiableCredentialResource(KeycloakSession session, Auth auth, UserModel user) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseGet list of verifiable credentials for the authenticated userjakarta.ws.rs.core.ResponserevokeCredential(String credentialScopeName) Revoke a specific verifiable credential for the authenticated user
-
Constructor Details
-
AccountVerifiableCredentialResource
-
-
Method Details
-
getCredentials
@GET @Path("/") @Produces("application/json") public jakarta.ws.rs.core.Response getCredentials()Get list of verifiable credentials for the authenticated user- Returns:
- list of user's verifiable credentials
-
revokeCredential
@DELETE @Path("/{credentialScopeName}") public jakarta.ws.rs.core.Response revokeCredential(@PathParam("credentialScopeName") String credentialScopeName) Revoke a specific verifiable credential for the authenticated user- Parameters:
credentialScopeName- the credential scope name to revoke- Returns:
- 204 No Content on success
-