@Test void TestFromAuthorities() { X509Certificate x509Cert1 = new DummyX509Certificate(); X509Certificate x509Cert2 = new DummyX509Certificate(); HashSet<X509Certificate> authorities = new HashSet<>(); authorities.add(x509Cert1); authorities.add(x509Cert2); X509Bundle x509Bundle = new X509Bundle(TrustDomain.of("example.org"), authorities); assertEquals(authorities, x509Bundle.getX509Authorities()); }
public Set<X509Certificate> getX509Authorities() { return Collections.unmodifiableSet(x509Authorities); }
X509Bundle implements BundleSource<X509Bundle> { public Set<X509Certificate> getX509Authorities() { return Collections.unmodifiableSet(x509Authorities); } }
X509Bundle implements BundleSource<X509Bundle> { public Set<X509Certificate> getX509Authorities() { return Collections.unmodifiableSet(x509Authorities); } X509Bundle(@NonNull final TrustDomain trustDomain);  X509Bundle(@NonNull final TrustDomain trustDomain, @NonNull final Set<X509Certificate> x509Authorities); }
X509Bundle implements BundleSource<X509Bundle> { public Set<X509Certificate> getX509Authorities() { return Collections.unmodifiableSet(x509Authorities); } X509Bundle(@NonNull final TrustDomain trustDomain);  X509Bundle(@NonNull final TrustDomain trustDomain, @NonNull final Set<X509Certificate> x509Authorities); static X509Bundle load(@NonNull final TrustDomain trustDomain, @NonNull final Path bundlePath); static X509Bundle parse(@NonNull final TrustDomain trustDomain, @NonNull final byte[] bundleBytes); @Override X509Bundle getBundleForTrustDomain(@NonNull final TrustDomain trustDomain); Set<X509Certificate> getX509Authorities(); boolean hasX509Authority(@NonNull final X509Certificate x509Authority); void addX509Authority(@NonNull final X509Certificate x509Authority); void removeX509Authority(@NonNull final X509Certificate x509Authority); }
X509Bundle implements BundleSource<X509Bundle> { public Set<X509Certificate> getX509Authorities() { return Collections.unmodifiableSet(x509Authorities); } X509Bundle(@NonNull final TrustDomain trustDomain);  X509Bundle(@NonNull final TrustDomain trustDomain, @NonNull final Set<X509Certificate> x509Authorities); static X509Bundle load(@NonNull final TrustDomain trustDomain, @NonNull final Path bundlePath); static X509Bundle parse(@NonNull final TrustDomain trustDomain, @NonNull final byte[] bundleBytes); @Override X509Bundle getBundleForTrustDomain(@NonNull final TrustDomain trustDomain); Set<X509Certificate> getX509Authorities(); boolean hasX509Authority(@NonNull final X509Certificate x509Authority); void addX509Authority(@NonNull final X509Certificate x509Authority); void removeX509Authority(@NonNull final X509Certificate x509Authority);  }