From ec689cc1102c400a2fb80349f4dfcdf3cbee0fe1 Mon Sep 17 00:00:00 2001 From: Markus Gylling Date: Fri, 8 Jul 2022 12:25:47 +0200 Subject: [PATCH] update pom --- inspector-vc/pom.xml | 2 ++ .../src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inspector-vc/pom.xml b/inspector-vc/pom.xml index 23022ba..83979cf 100644 --- a/inspector-vc/pom.xml +++ b/inspector-vc/pom.xml @@ -28,12 +28,14 @@ java-jwt 3.10.3 + com.apicatalog iron-verifiable-credentials-jre8 0.7.0 + com.apicatalog titanium-json-ld diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java index a6518fd..15683d5 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/OB30Inspector.java @@ -138,7 +138,7 @@ public class OB30Inspector extends VCInspector { //embedded endorsements EndorsementInspector endorsementInspector = new EndorsementInspector.Builder().build(); - List endorsements = JsonNodeUtil.asNodeList(crd.getJson(), "$..endorsement", jsonPath); + List endorsements = asNodeList(crd.getJson(), "$..endorsement", jsonPath); for(JsonNode node : endorsements) { probeCount++; Credential endorsement = new Credential(resource, node); @@ -146,7 +146,7 @@ public class OB30Inspector extends VCInspector { } //embedded jwt endorsements - endorsements = JsonNodeUtil.asNodeList(crd.getJson(), "$..endorsementJwt", jsonPath); + endorsements = asNodeList(crd.getJson(), "$..endorsementJwt", jsonPath); for(JsonNode node : endorsements) { probeCount++; String jwt = node.asText();