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 withPdfSigningIdentity.generateCa) so the identities it vouches for validate against this store.factory
Properties
Methods
-
addCertificate(
X509Certificate certificate, {String? source}) → void -
Adds
certificateas an anchor.sourcenames 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
anchorwas 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