PdfTrustStore class

Trust anchors for certificate-chain validation: the root (and any directly trusted) certificates the verifier chooses to rely on. The library ships no built-in roots - supply your platform's or your organization's.

Constructors

PdfTrustStore()
PdfTrustStore.trusting(Iterable<Uint8List> certificates)
A trust store seeded with certificates (DER, e.g. an org CA built with PdfSigningIdentity.generateCa) so the identities it vouches for validate against this store.
factory

Properties

anchors → List<X509Certificate>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCertificate(X509Certificate certificate, {String? source}) → void
Adds certificate as an anchor. source names the list it came from (e.g. "EU Trusted List"), reported back by sourceOf.
addDer(Uint8List der, {String? source}) → void
addPem(String pem) → void
Adds every CERTIFICATE block in pem.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sourceOf(X509Certificate anchor) → String?
The trust list anchor was added from, or null when none was named.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited