@Test public void wrongPivotKeystoreTest() throws IOException { updatePivotUrl("src/test/resources/lotlCache/tl_pivot_247_mp_with-spaces.xml"); lotlSource.setCertificateSource(new KeyStoreCertificateSource(new File("src/test/resources/keystore_corrupted.p12"), "PKCS12", "dss-password")); TLValidationJobSummary summary = getLOTLValidationJob().getSummary(); List<LOTLInfo> tlInfos = summary.getLOTLInfos(); LOTLInfo lotlInfo = tlInfos.get(0); assertEquals(4, lotlInfo.getPivotInfos().size()); for (PivotInfo pivotInfo : lotlInfo.getPivotInfos()) { assertTrue(pivotInfo.getDownloadCacheInfo().isResultExist()); assertNull(pivotInfo.getDownloadCacheInfo().getExceptionMessage()); assertNull(pivotInfo.getDownloadCacheInfo().getExceptionStackTrace()); assertTrue(pivotInfo.getParsingCacheInfo().isResultExist()); assertNull(pivotInfo.getParsingCacheInfo().getExceptionMessage()); assertNull(pivotInfo.getParsingCacheInfo().getExceptionStackTrace()); assertTrue(pivotInfo.getValidationCacheInfo().isResultExist()); assertNull(pivotInfo.getValidationCacheInfo().getExceptionMessage()); assertNull(pivotInfo.getValidationCacheInfo().getExceptionStackTrace()); assertEquals(Indication.INDETERMINATE, pivotInfo.getValidationCacheInfo().getIndication()); assertEquals(SubIndication.NO_CERTIFICATE_CHAIN_FOUND, pivotInfo.getValidationCacheInfo().getSubIndication()); assertNotNull(pivotInfo.getValidationCacheInfo().getSigningTime()); assertNotNull(pivotInfo.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();  }