pub struct Preparation<'p, 'm, 'd, 'a, 's, D, G> { /* private fields */ }Expand description
Immutable PAdES format preparation. The complete nested CMS participant
and token census is borrowed from its owning common preparation unchanged.
This is not a signature, authority, chronology or trust verdict.
Implementations§
Source§impl<'p, 'm, 'd, 'a, 's, D: Copy + Eq, G: Copy + Eq> Preparation<'p, 'm, 'd, 'a, 's, D, G>
impl<'p, 'm, 'd, 'a, 's, D: Copy + Eq, G: Copy + Eq> Preparation<'p, 'm, 'd, 'a, 's, D, G>
Sourcepub async fn verify<'v, S, P>(
&'v self,
document: &'v Document<'s, S>,
provider: &'v P,
key: WorkingKey<'v>,
parent: &Reader<'v>,
) -> Result<Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>, CheckError<S::Error, P::Error>>where
S: RangeSource<Document = D, Generation = G>,
P: SignatureProvider<'v>,
'm: 'v,
'd: 'v,
'a: 'v,
's: 'v,
pub async fn verify<'v, S, P>(
&'v self,
document: &'v Document<'s, S>,
provider: &'v P,
key: WorkingKey<'v>,
parent: &Reader<'v>,
) -> Result<Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>, CheckError<S::Error, P::Error>>where
S: RangeSource<Document = D, Generation = G>,
P: SignatureProvider<'v>,
'm: 'v,
'd: 'v,
'a: 'v,
's: 'v,
Resolves and verifies the original detached root through the common asynchronous CMS driver. The source is constructed here from the exact prepared PDF signature, never accepted as a replacement caller payload.
Source§impl<'p, 'm, 'd, 'a, 's, D: Copy + Eq, G: Copy + Eq> Preparation<'p, 'm, 'd, 'a, 's, D, G>
impl<'p, 'm, 'd, 'a, 's, D: Copy + Eq, G: Copy + Eq> Preparation<'p, 'm, 'd, 'a, 's, D, G>
Sourcepub async fn read<S: RangeSource<Document = D, Generation = G>, W: Work>(
document: &Document<'s, S>,
container: &'p Container<'a, 's, D, G>,
cms: &'p CmsPreparation<'m, 'd>,
requested: Level,
parent: &Reader<'d>,
operation: &W,
) -> Result<Self, PrepareError<S::Error>>
pub async fn read<S: RangeSource<Document = D, Generation = G>, W: Work>( document: &Document<'s, S>, container: &'p Container<'a, 's, D, G>, cms: &'p CmsPreparation<'m, 'd>, requested: Level, parent: &Reader<'d>, operation: &W, ) -> Result<Self, PrepareError<S::Error>>
Reads all root obligations before key resolution or payload acquisition.
EN319142-1 §§4.1/6.3 Table1 overrides CAdES’s root signing-time field;
the existing nested participant/token mechanisms are not reimplemented.
https://www.etsi.org/deliver/etsi_EN/319100_319199/31914201/01.02.01_60/en_31914201v010201p.pdf
§Panics
Panics if the inspected signature loses its original Contents member.
Sourcepub fn claimed_time(&self) -> Option<Date>
pub fn claimed_time(&self) -> Option<Date>
Parsed claimed calendar label, without an occurrence proof.
Sourcepub fn placement(&self) -> Option<&Placement>
pub fn placement(&self) -> Option<&Placement>
Actual historical signature-field and certification placement facts.
Sourcepub fn findings(&self) -> &[Finding]
pub fn findings(&self) -> &[Finding]
Every retained root preparation finding, without successful-subset filtering.
Sourcepub fn all_basic_format_requirements_met(&self) -> bool
pub fn all_basic_format_requirements_met(&self) -> bool
Only original baseline format facts, before mathematical verification.
Sourcepub fn cms(&self) -> &'p CmsPreparation<'m, 'd>
pub fn cms(&self) -> &'p CmsPreparation<'m, 'd>
Existing whole CMS/counter/token preparation, not a copied catalogue.