From d3ea0cde22fe11ce56ac988a2fdb1cc6b520ed76 Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Sun, 12 Nov 2023 10:54:08 +0100 Subject: [PATCH] Use Cached document loader --- .../main/java/org/oneedtech/inspect/vc/W3CVCHolder.java | 7 ++----- 1 file changed, 2 insertions(+), 5 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 36a3849..e6e2b34 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 @@ -3,10 +3,10 @@ package org.oneedtech.inspect.vc; import java.util.List; import org.oneedtech.inspect.vc.jsonld.JsonLDObjectUtils; +import org.oneedtech.inspect.vc.util.CachingDocumentLoader; import com.danubetech.verifiablecredentials.VerifiableCredential; -import foundation.identity.jsonld.ConfigurableDocumentLoader; import info.weboftrust.ldsignatures.LdProof; /** @@ -17,10 +17,7 @@ public class W3CVCHolder { public W3CVCHolder(VerifiableCredential credential) { this.credential = credential; - ConfigurableDocumentLoader documentLoader = new ConfigurableDocumentLoader(); - documentLoader.setEnableHttp(true); - documentLoader.setEnableHttps(true); - credential.setDocumentLoader(documentLoader); + credential.setDocumentLoader(new CachingDocumentLoader()); } /**