combine static method

PdfTrustStore combine(
  1. Iterable<PdfTrustStore> stores
)

One store holding every anchor of stores.

Implementation

static PdfTrustStore combine(Iterable<PdfTrustStore> stores) {
  final combined = PdfTrustStore();
  for (final store in stores) {
    for (final anchor in store.anchors) {
      combined.addCertificate(anchor, source: store.sourceOf(anchor));
    }
  }
  return combined;
}