Skip to content

Commit

Permalink
fix:did resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafasalfiti committed Feb 27, 2024
1 parent ef487ec commit 6777f44
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 6777f44

Please sign in to comment.