From d0522f4dc7160a8617abad26ee47b6d60aeb7644 Mon Sep 17 00:00:00 2001 From: Mustafa Alsalfiti Date: Tue, 27 Feb 2024 15:03:22 +0100 Subject: [PATCH] fix: did resolver --- .../service/DidDocumentResolverService.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/DidDocumentResolverService.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/DidDocumentResolverService.java index d84c5a6a3..f9b593245 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/DidDocumentResolverService.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/DidDocumentResolverService.java @@ -24,9 +24,6 @@ import lombok.Getter; import org.eclipse.tractusx.managedidentitywallets.config.MIWSettings; import org.eclipse.tractusx.ssi.lib.did.resolver.CompositeDidResolver; -import org.eclipse.tractusx.ssi.lib.did.resolver.DidDocumentResolverRegistry; -import org.eclipse.tractusx.ssi.lib.did.resolver.DidDocumentResolverRegistryImpl; -import org.eclipse.tractusx.ssi.lib.did.web.DidWebDocumentResolver; import org.eclipse.tractusx.ssi.lib.did.web.DidWebResolver; import org.eclipse.tractusx.ssi.lib.did.web.util.DidWebParser; import org.springframework.stereotype.Service; @@ -39,7 +36,7 @@ public class DidDocumentResolverService { final static HttpClient httpClient = HttpClient.newHttpClient(); @Getter - private final DidDocumentResolverRegistry didDocumentResolverRegistry; + private final DidWebResolver didDocumentResolverRegistry; @Getter private final CompositeDidResolver compositeDidResolver; @@ -49,9 +46,8 @@ public DidDocumentResolverService(MIWSettings miwSettings) { final boolean enforceHttps = miwSettings.enforceHttps(); final DidWebParser didParser = new DidWebParser(); - didDocumentResolverRegistry = new DidDocumentResolverRegistryImpl(); - didDocumentResolverRegistry.register( - new DidWebDocumentResolver(httpClient, didParser, enforceHttps)); + didDocumentResolverRegistry = + new DidWebResolver(httpClient, didParser, enforceHttps); compositeDidResolver = new CompositeDidResolver( new DidWebResolver(httpClient, didParser, enforceHttps)