diff --git a/extensions/common/crypto/ldp-verifiable-credentials/src/main/java/org/eclipse/edc/verifiablecredentials/linkeddata/LdpVerifier.java b/extensions/common/crypto/ldp-verifiable-credentials/src/main/java/org/eclipse/edc/verifiablecredentials/linkeddata/LdpVerifier.java index d1d9dec69e2..a87b7f1b86f 100644 --- a/extensions/common/crypto/ldp-verifiable-credentials/src/main/java/org/eclipse/edc/verifiablecredentials/linkeddata/LdpVerifier.java +++ b/extensions/common/crypto/ldp-verifiable-credentials/src/main/java/org/eclipse/edc/verifiablecredentials/linkeddata/LdpVerifier.java @@ -28,13 +28,11 @@ import com.apicatalog.ld.signature.key.VerificationKey; import com.apicatalog.vc.Presentation; import com.apicatalog.vc.VcVocab; -import com.apicatalog.vc.Verifiable; import com.apicatalog.vc.method.resolver.HttpMethodResolver; import com.apicatalog.vc.method.resolver.MethodResolver; import com.apicatalog.vc.proof.EmbeddedProof; import com.apicatalog.vc.proof.Proof; import com.apicatalog.vc.suite.SignatureSuite; -import com.apicatalog.vc.verifier.Verifier; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import jakarta.json.JsonObject; @@ -43,7 +41,6 @@ import org.eclipse.edc.iam.identitytrust.spi.verification.SignatureSuiteRegistry; import org.eclipse.edc.iam.identitytrust.spi.verification.VerifierContext; import org.eclipse.edc.jsonld.spi.JsonLd; -import org.eclipse.edc.security.signature.jws2020.Jws2020SignatureSuite; import org.eclipse.edc.spi.result.Result; import org.eclipse.edc.util.uri.UriUtils; @@ -121,14 +118,6 @@ public URI getBase() { return base; } - private Verifiable getVerify(JsonObject jo) { - try { - return Verifier.with(new Jws2020SignatureSuite(jsonLdMapper)).loader(loader).verify(jo); - } catch (VerificationError | DocumentError e) { - throw new RuntimeException(e); - } - } - private VerificationMethod resolveMethod(URI id, Proof proof, DocumentLoader loader) throws DocumentError { if (id == null) { @@ -224,8 +213,6 @@ private Result verifyProofs(JsonObject expanded, JsonStructure context) th return failure("%s: %s".formatted(ErrorType.Invalid, VcVocab.PROOF)); } - var proofObject = expandedProof.asJsonObject(); - var proofTypes = LdType.strings(expandedProof); if (proofTypes == null || proofTypes.isEmpty()) {