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();