TrustRootsProvider step2XrdsTrustProvider = new DefaultTrustRootsProvider();
CachedCertPathValidator step2XrdsCertPathValidator = new CachedCertPathValidator(step2XrdsTrustProvider);
Verifier step2XrdsVerifier = new Verifier(step2XrdsCertPathValidator, new DefaultHttpFetcher());
CertValidator step2XrdsCertValidator = new DefaultCertValidator();
XrdDiscoveryResolver step2XrdResolver = new LegacyXrdsResolver(new DefaultHttpFetcher(), step2XrdsVerifier, step2XrdsCertValidator);
HtmlResolver step2HtmlResolver = new HtmlResolver();
YadisResolver step2YadisResolver = new YadisResolver();
XriResolver step2XriResolver = new XriDotNetProxyResolver();
Discovery2 step2Discovery = new Discovery2(step2HostMetaFetcher, step2XrdResolver, step2HtmlResolver, step2YadisResolver, step2XriResolver);
openIDStep2ConsumerManager = new ConsumerManager();
openIDStep2ConsumerManager.setDiscovery(step2Discovery);