@Test void provide_test() throws Exception { target = new CertFileTrustAnchorsProvider(); Path path = Paths.get(ClassLoader.getSystemResource("com/webauthn4j/anchor/CertFileTrustAnchorsProviderTest/test.crt").toURI()); target.setCertificates(Collections.singletonList(path)); Map<AAGUID, Set<TrustAnchor>> trustAnchors = target.provide(); assertThat(trustAnchors.keySet()).containsExactly(AAGUID.NULL); assertThat(trustAnchors).isNotEmpty(); }
public void setCertificates(List<Path> certificates) { this.certificates = certificates; }
CertFileTrustAnchorsProvider extends CachingTrustAnchorsProviderBase { public void setCertificates(List<Path> certificates) { this.certificates = certificates; } }
CertFileTrustAnchorsProvider extends CachingTrustAnchorsProviderBase { public void setCertificates(List<Path> certificates) { this.certificates = certificates; } CertFileTrustAnchorsProvider();  CertFileTrustAnchorsProvider(List<Path> certificates); }
CertFileTrustAnchorsProvider extends CachingTrustAnchorsProviderBase { public void setCertificates(List<Path> certificates) { this.certificates = certificates; } CertFileTrustAnchorsProvider();  CertFileTrustAnchorsProvider(List<Path> certificates); List<Path> getCertificates(); void setCertificates(List<Path> certificates); }
CertFileTrustAnchorsProvider extends CachingTrustAnchorsProviderBase { public void setCertificates(List<Path> certificates) { this.certificates = certificates; } CertFileTrustAnchorsProvider();  CertFileTrustAnchorsProvider(List<Path> certificates); List<Path> getCertificates(); void setCertificates(List<Path> certificates);  }