@Test public void intermediatePivotBrokenSigTest() { updatePivotUrl("src/test/resources/lotlCache/tl_pivot_247_mp.xml"); urlMap.put("https: new FileDocument("src/test/resources/lotlCache/tl_pivot_191_mp_broken-sig.xml")); TLValidationJobSummary summary = getLOTLValidationJob().getSummary(); List<LOTLInfo> tlInfos = summary.getLOTLInfos(); LOTLInfo lotlInfo = tlInfos.get(0); assertEquals(4, lotlInfo.getPivotInfos().size()); assertEquals(31, lotlInfo.getTLInfos().size()); assertTrue(lotlInfo.getDownloadCacheInfo().isResultExist()); assertNull(lotlInfo.getDownloadCacheInfo().getExceptionMessage()); assertNull(lotlInfo.getDownloadCacheInfo().getExceptionStackTrace()); assertTrue(lotlInfo.getParsingCacheInfo().isResultExist()); assertNull(lotlInfo.getParsingCacheInfo().getExceptionMessage()); assertNull(lotlInfo.getParsingCacheInfo().getExceptionStackTrace()); assertTrue(lotlInfo.getValidationCacheInfo().isResultExist()); assertNull(lotlInfo.getValidationCacheInfo().getExceptionMessage()); assertNull(lotlInfo.getValidationCacheInfo().getExceptionStackTrace()); assertEquals(Indication.INDETERMINATE, lotlInfo.getValidationCacheInfo().getIndication()); assertEquals(SubIndication.NO_CERTIFICATE_CHAIN_FOUND, lotlInfo.getValidationCacheInfo().getSubIndication()); assertNotNull(lotlInfo.getValidationCacheInfo().getSigningTime()); assertNotNull(lotlInfo.getValidationCacheInfo().getSigningCertificate()); PivotInfo brokenPivotInfo = lotlInfo.getPivotInfos().get(1); assertTrue(brokenPivotInfo.getDownloadCacheInfo().isResultExist()); assertNull(brokenPivotInfo.getDownloadCacheInfo().getExceptionMessage()); assertNull(brokenPivotInfo.getDownloadCacheInfo().getExceptionStackTrace()); assertTrue(brokenPivotInfo.getParsingCacheInfo().isResultExist()); assertNull(brokenPivotInfo.getParsingCacheInfo().getExceptionMessage()); assertNull(brokenPivotInfo.getParsingCacheInfo().getExceptionStackTrace()); assertTrue(brokenPivotInfo.getValidationCacheInfo().isResultExist()); assertNull(brokenPivotInfo.getValidationCacheInfo().getExceptionMessage()); assertNull(brokenPivotInfo.getValidationCacheInfo().getExceptionStackTrace()); assertEquals(Indication.TOTAL_FAILED, brokenPivotInfo.getValidationCacheInfo().getIndication()); assertEquals(SubIndication.HASH_FAILURE, brokenPivotInfo.getValidationCacheInfo().getSubIndication()); assertNotNull(brokenPivotInfo.getValidationCacheInfo().getSigningTime()); assertNotNull(brokenPivotInfo.getValidationCacheInfo().getSigningCertificate()); PivotInfo firstpivotInfo = lotlInfo.getPivotInfos().get(0); assertTrue(firstpivotInfo.getDownloadCacheInfo().isResultExist()); assertNull(firstpivotInfo.getDownloadCacheInfo().getExceptionMessage()); assertNull(firstpivotInfo.getDownloadCacheInfo().getExceptionStackTrace()); assertTrue(firstpivotInfo.getParsingCacheInfo().isResultExist()); assertNull(firstpivotInfo.getParsingCacheInfo().getExceptionMessage()); assertNull(firstpivotInfo.getParsingCacheInfo().getExceptionStackTrace()); assertTrue(firstpivotInfo.getValidationCacheInfo().isResultExist()); assertNull(firstpivotInfo.getValidationCacheInfo().getExceptionMessage()); assertNull(firstpivotInfo.getValidationCacheInfo().getExceptionStackTrace()); assertEquals(Indication.TOTAL_PASSED, firstpivotInfo.getValidationCacheInfo().getIndication()); assertNull(firstpivotInfo.getValidationCacheInfo().getSubIndication()); assertNotNull(firstpivotInfo.getValidationCacheInfo().getSigningTime()); assertNotNull(firstpivotInfo.getValidationCacheInfo().getSigningCertificate()); }
public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); } }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }  }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }  void setTrustedListSources(TLSource... trustedListSources); void setListOfTrustedListSources(LOTLSource... listOfTrustedListSources); void setExecutorService(ExecutorService executorService); void setOfflineDataLoader(DSSFileLoader offlineLoader); void setOnlineDataLoader(DSSFileLoader onlineLoader); void setCacheCleaner(final CacheCleaner cacheCleaner); void setTrustedListCertificateSource(TrustedListsCertificateSource trustedListCertificateSource); void setSynchronizationStrategy(SynchronizationStrategy synchronizationStrategy); void setDebug(boolean debug); void setLOTLAlerts(List<Alert<LOTLInfo>> lotlAlerts); void setTLAlerts(List<Alert<TLInfo>> tlAlerts); synchronized TLValidationJobSummary getSummary(); synchronized void offlineRefresh(); synchronized void onlineRefresh(); }
TLValidationJob { public synchronized TLValidationJobSummary getSummary() { return new ValidationJobSummaryBuilder(cacheAccessFactory.getReadOnlyCacheAccess(), trustedListSources, listOfTrustedListSources) .build(); }  void setTrustedListSources(TLSource... trustedListSources); void setListOfTrustedListSources(LOTLSource... listOfTrustedListSources); void setExecutorService(ExecutorService executorService); void setOfflineDataLoader(DSSFileLoader offlineLoader); void setOnlineDataLoader(DSSFileLoader onlineLoader); void setCacheCleaner(final CacheCleaner cacheCleaner); void setTrustedListCertificateSource(TrustedListsCertificateSource trustedListCertificateSource); void setSynchronizationStrategy(SynchronizationStrategy synchronizationStrategy); void setDebug(boolean debug); void setLOTLAlerts(List<Alert<LOTLInfo>> lotlAlerts); void setTLAlerts(List<Alert<TLInfo>> tlAlerts); synchronized TLValidationJobSummary getSummary(); synchronized void offlineRefresh(); synchronized void onlineRefresh();  }