From 6f2b840fc4ab19c5130d5906f5eb5cff707314b4 Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Mon, 9 Jan 2023 13:52:08 +0100 Subject: [PATCH] Renamed method --- .../src/main/java/org/oneedtech/inspect/vc/W3CVCHolder.java | 2 +- .../java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/W3CVCHolder.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/W3CVCHolder.java index e8b986b..36a3849 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/W3CVCHolder.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/W3CVCHolder.java @@ -29,7 +29,7 @@ public class W3CVCHolder { * returns a list of all proofs defined in the credential. * @return proofs defined in the credential */ - public List getLdProofs() { + public List getProofs() { return JsonLDObjectUtils.getListFromJsonLDObject(LdProof.class, credential); } diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java index e8e35af..4a90cec 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java @@ -43,7 +43,7 @@ public class EmbeddedProofProbe extends Probe { W3CVCHolder credentiaHolder = new W3CVCHolder(com.danubetech.verifiablecredentials.VerifiableCredential.fromJson(new StringReader(crd.getJson().toString()))); - List proofs = credentiaHolder.getLdProofs(); + List proofs = credentiaHolder.getProofs(); if (proofs == null || proofs.size() == 0) { return error("The verifiable credential is missing a proof.", ctx); }