class X509Bundle implements BundleSource<X509Bundle> {

    public static X509Bundle parse(@NonNull final TrustDomain trustDomain, @NonNull final byte[] bundleBytes) throws X509BundleException {
        val x509Certificates = generateX509Certificates(bundleBytes);
        val x509CertificateSet = new HashSet<>(x509Certificates);
        return new X509Bundle(trustDomain, x509CertificateSet);
    }

    public  X509Bundle(@NonNull final TrustDomain trustDomain);
    public  X509Bundle(@NonNull final TrustDomain trustDomain, @NonNull final Set<X509Certificate> x509Authorities);

}