pub(crate) trait ArtifactVerifierValidity {
// Required methods
fn check(&self, cert: &OpenpgpCert, reference_time: SystemTime) -> bool;
fn lookup(&self) -> &VerifierLookup<'_>;
}Expand description
An interface into an OpenPGP trust model that determines if an artifact verifier is accepted, at reference time.
Objects that implement this trait hold a set of verifiers, and a trust model configuration that specifies which verifiers are valid in which context.
Required Methods§
Sourcefn check(&self, cert: &OpenpgpCert, reference_time: SystemTime) -> bool
fn check(&self, cert: &OpenpgpCert, reference_time: SystemTime) -> bool
Check if cert is acceptable as an artifact signer at reference_time, according to
the trust model
Sourcefn lookup(&self) -> &VerifierLookup<'_>
fn lookup(&self) -> &VerifierLookup<'_>
Borrow a VerifierLookup over the artifact verifiers in the trust model