Skip to main content

SignerBinding

Struct SignerBinding 

Source
pub struct SignerBinding<'receipt, 'model, 'document, 'path> { /* private fields */ }
Expand description

Completed root binding facts, including negative mathematical outcomes. Construction performs ESS itself; externally writable Bindings cannot manufacture a receipt. A retained path is available only for an actual fully associated signer, never from a public boolean assertion.

Implementations§

Source§

impl<'r, 'm, 'd, 'p> SignerBinding<'r, 'm, 'd, 'p>

Source

pub fn prepared(&self) -> &'r Preparation<'m, 'd>

Same original requested-level preparation.

Source

pub fn certificate(&self) -> &'p Certificate<'d>

Candidate actually compared with SID, ESS and the CMS checked key.

Source

pub fn identifier(&self) -> &CertificateAgreement

Original signer-identifier agreement, including unreadable SKI causes.

Source

pub fn ess(&self) -> Bindings

Both independently computed ESS answers. Neither absent value is success.

Source

pub fn key_matches(&self) -> bool

The supplied effective key agrees with this path’s actual target key.

Source

pub fn included(&self) -> Option<Original<'m, 'd>>

Exact original occurrence in root SignedData.certificates, if present.

Source

pub fn mathematical(&self) -> bool

CMS arithmetic and payload binding both succeeded. This alone says nothing about the root profile, certificate, path, or caller trust.

Source

pub fn restrictions(&self) -> PathRestriction

Actual path-set restriction result, independent of signer certHash.

Source

pub fn is_bound(&self) -> bool

Every currently established root binding condition holds. The complete B-B assembly additionally requires all format/attribute/counter facts.

Trait Implementations§

Source§

impl<'m, 'd, 'p> SignerReceipt<'p, 'd> for SignerBinding<'_, 'm, 'd, 'p>

Source§

type Id = Node

Original node identity.
Source§

type Document = DocumentId<'m, 'd>

Stable document identity.
Source§

type Generation = ()

Exact document generation.
Source§

fn signature(&self) -> Original<'m, 'd>

The selected signature in its exact source generation.
Source§

fn path(&self) -> Option<&'p CheckedPath<'d>>

The checked signer path, or None when the format has not established the signing certificate or its signed path restrictions.

Auto Trait Implementations§

§

impl<'receipt, 'model, 'document, 'path> !RefUnwindSafe for SignerBinding<'receipt, 'model, 'document, 'path>

§

impl<'receipt, 'model, 'document, 'path> !Send for SignerBinding<'receipt, 'model, 'document, 'path>

§

impl<'receipt, 'model, 'document, 'path> !Sync for SignerBinding<'receipt, 'model, 'document, 'path>

§

impl<'receipt, 'model, 'document, 'path> !UnwindSafe for SignerBinding<'receipt, 'model, 'document, 'path>

§

impl<'receipt, 'model, 'document, 'path> Forget for SignerBinding<'receipt, 'model, 'document, 'path>

§

impl<'receipt, 'model, 'document, 'path> Freeze for SignerBinding<'receipt, 'model, 'document, 'path>

§

impl<'receipt, 'model, 'document, 'path> Unpin for SignerBinding<'receipt, 'model, 'document, 'path>

§

impl<'receipt, 'model, 'document, 'path> UnsafeUnpin for SignerBinding<'receipt, 'model, 'document, 'path>

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.