@Test public void testNoCert() { DSSDocument trustedList = new FileDocument("src/test/resources/eu-lotl.xml"); TLValidatorTask task = new TLValidatorTask(trustedList, getCertificateSource(Collections.emptyList())); ValidationResult result = task.get(); assertNotNull(result); assertEquals(Indication.INDETERMINATE, result.getIndication()); assertEquals(SubIndication.NO_CERTIFICATE_CHAIN_FOUND, result.getSubIndication()); assertNotNull(result.getSigningTime()); assertNotNull(result.getSigningCertificate()); }
@Override public ValidationResult get() { Reports reports = validateTL(); return fillResult(reports); }
TLValidatorTask implements Supplier<ValidationResult> { @Override public ValidationResult get() { Reports reports = validateTL(); return fillResult(reports); } }
TLValidatorTask implements Supplier<ValidationResult> { @Override public ValidationResult get() { Reports reports = validateTL(); return fillResult(reports); } TLValidatorTask(DSSDocument trustedList, CertificateSource certificateSource); }
TLValidatorTask implements Supplier<ValidationResult> { @Override public ValidationResult get() { Reports reports = validateTL(); return fillResult(reports); } TLValidatorTask(DSSDocument trustedList, CertificateSource certificateSource); @Override ValidationResult get(); }
TLValidatorTask implements Supplier<ValidationResult> { @Override public ValidationResult get() { Reports reports = validateTL(); return fillResult(reports); } TLValidatorTask(DSSDocument trustedList, CertificateSource certificateSource); @Override ValidationResult get();  }