pub struct Binding<'b, 'v, 'a, 's, D, G> { /* private fields */ }Expand description
One exact signature VRI selected by the normative whole-Contents name. The actual parsed historical owner and root container cannot be replaced with caller-supplied signature octets or another VRI’s timestamp.
Implementations§
Source§impl<'v, D: Copy + Eq, G: Copy + Eq> Binding<'_, 'v, '_, '_, D, G>
impl<'v, D: Copy + Eq, G: Copy + Eq> Binding<'_, 'v, '_, '_, D, G>
Sourcepub fn vri(&self) -> &Vri
pub fn vri(&self) -> &Vri
Actual matching original VRI, preserving its independent TU/TS method.
Sourcepub fn check_timestamp<'q, 'certificate, P, PE, RE>(
&'q self,
root: &'q SignedData<'_>,
parent: &'q Reader<'q>,
provider: &'q P,
context: &'q CheckContext<'certificate, 'q>,
recognizes: impl FnMut(&TokenExtension<'_>, &Execution<'_>) -> Result<bool, RE>,
) -> Result<Option<Time<'q, 'certificate, D, G>>, TimestampError<'q, PE, RE>>where
P: for<'scope> SignatureProvider<'scope, Error = PE>,
'v: 'q,
'certificate: 'q,
pub fn check_timestamp<'q, 'certificate, P, PE, RE>(
&'q self,
root: &'q SignedData<'_>,
parent: &'q Reader<'q>,
provider: &'q P,
context: &'q CheckContext<'certificate, 'q>,
recognizes: impl FnMut(&TokenExtension<'_>, &Execution<'_>) -> Result<bool, RE>,
) -> Result<Option<Time<'q, 'certificate, D, G>>, TimestampError<'q, PE, RE>>where
P: for<'scope> SignatureProvider<'scope, Error = PE>,
'v: 'q,
'certificate: 'q,
Checks the existing parsed TS over the root CMS encryptedDigest content octets, not the complete CMS value, PDF bytes or VRI name. EN319142-1 §5.4.2.3 note1 defines this exact input. A TU-only or subsequent-DTS method returns None without invoking crypto callbacks. https://www.etsi.org/deliver/etsi_en/319100_319199/31914201/01.02.01_60/en_31914201v010201p.pdf
Auto Trait Implementations§
impl<'b, 'v, 'a, 's, D, G> !RefUnwindSafe for Binding<'b, 'v, 'a, 's, D, G>
impl<'b, 'v, 'a, 's, D, G> !Send for Binding<'b, 'v, 'a, 's, D, G>
impl<'b, 'v, 'a, 's, D, G> !Sync for Binding<'b, 'v, 'a, 's, D, G>
impl<'b, 'v, 'a, 's, D, G> !UnwindSafe for Binding<'b, 'v, 'a, 's, D, G>
impl<'b, 'v, 'a, 's, D, G> Forget for Binding<'b, 'v, 'a, 's, D, G>
impl<'b, 'v, 'a, 's, D, G> Freeze for Binding<'b, 'v, 'a, 's, D, G>
impl<'b, 'v, 'a, 's, D, G> Unpin for Binding<'b, 'v, 'a, 's, D, G>
impl<'b, 'v, 'a, 's, D, G> UnsafeUnpin for Binding<'b, 'v, 'a, 's, D, G>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more