Skip to main content

Binding

Struct Binding 

Source
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>

Source

pub fn vri(&self) -> &Vri

Actual matching original VRI, preserving its independent TU/TS method.

Source

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>
where &'b Parsed<'v, 's, D, G>: Freeze, &'b Container<'a, 's, D, G>: Freeze,

§

impl<'b, 'v, 'a, 's, D, G> Unpin for Binding<'b, 'v, 'a, 's, D, G>
where &'b Parsed<'v, 's, D, G>: Unpin, &'b Container<'a, 's, D, G>: Unpin,

§

impl<'b, 'v, 'a, 's, D, G> UnsafeUnpin for Binding<'b, 'v, 'a, 's, D, G>
where &'b Parsed<'v, 's, D, G>: UnsafeUnpin, &'b Container<'a, 's, D, G>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.