Skip to main content

Signer

Struct Signer 

Source
pub struct Signer<'r, 'm, 'd, 'p, 'v, 's, S: RangeSource> { /* private fields */ }
Expand description

The actual existing CAdES binding, privately linked to the ASiC input pass. Exposing the inner immutable receipt does not permit replacing that receipt.

Implementations§

Source§

impl<'r, 'm, 'd, 'p, S: RangeSource> Signer<'r, 'm, 'd, 'p, '_, '_, S>

Source

pub fn inner(&self) -> &SignerBinding<'r, 'm, 'd, 'p>

Build ordinary shared Basic/Timed/LongTerm/Archives from this exact immutable signer. No duplicate CAdES stage or crypto implementation exists.

Source

pub fn assess<'e, E>( &'e self, evidence: Evidence<'e, 'm, 'd, E>, operation: &Reader<'_>, ) -> LevelResult<'e, 'm, 'd, E, S>

Composes the existing complete CAdES stages after requiring their ACTUAL root binding, not merely an equal original signer or a requested level.

Auto Trait Implementations§

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> !RefUnwindSafe for Signer<'r, 'm, 'd, 'p, 'v, 's, S>

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> !Send for Signer<'r, 'm, 'd, 'p, 'v, 's, S>

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> !Sync for Signer<'r, 'm, 'd, 'p, 'v, 's, S>

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> !UnwindSafe for Signer<'r, 'm, 'd, 'p, 'v, 's, S>

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> Forget for Signer<'r, 'm, 'd, 'p, 'v, 's, S>

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> Freeze for Signer<'r, 'm, 'd, 'p, 'v, 's, S>
where Member<'v, 's, S>: Freeze, MemberId<<S as RangeSource>::Document, <S as RangeSource>::Generation>: Freeze,

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> Unpin for Signer<'r, 'm, 'd, 'p, 'v, 's, S>
where Member<'v, 's, S>: Unpin, MemberId<<S as RangeSource>::Document, <S as RangeSource>::Generation>: Unpin,

§

impl<'r, 'm, 'd, 'p, 'v, 's, S> UnsafeUnpin for Signer<'r, 'm, 'd, 'p, 'v, 's, S>

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.