pub struct InventoryVerificationResolver<'a> { /* private fields */ }Expand description
Policy-aware verification adapter over a caller-owned inventory.
Trait Implementations§
Source§impl<'a> KeyResolver for InventoryVerificationResolver<'a>
impl<'a> KeyResolver for InventoryVerificationResolver<'a>
Source§fn resolve<'k>(
&'k self,
key_info: Option<&KeyInfo>,
algorithm: SignatureAlgorithm,
) -> Result<Option<Box<dyn VerifyingKey + 'k>>, DsigError>
fn resolve<'k>( &'k self, key_info: Option<&KeyInfo>, algorithm: SignatureAlgorithm, ) -> Result<Option<Box<dyn VerifyingKey + 'k>>, DsigError>
Resolve a verification key from parsed
<KeyInfo> sources. Read moreSource§fn resolve_with_policy<'k>(
&'k self,
key_info: Option<&KeyInfo>,
algorithm: SignatureAlgorithm,
policy: &VerificationPolicy,
) -> Result<Option<Box<dyn VerifyingKey + 'k>>, DsigError>
fn resolve_with_policy<'k>( &'k self, key_info: Option<&KeyInfo>, algorithm: SignatureAlgorithm, policy: &VerificationPolicy, ) -> Result<Option<Box<dyn VerifyingKey + 'k>>, DsigError>
Resolve under the operation’s immutable policy snapshot. Read more
Source§fn resolve_with_policy_and_provider<'k>(
&'k self,
key_info: Option<&KeyInfo>,
algorithm: SignatureAlgorithm,
policy: &VerificationPolicy,
provider: &dyn CryptoProvider,
) -> Result<Option<Box<dyn VerifyingKey + 'k>>, DsigError>
fn resolve_with_policy_and_provider<'k>( &'k self, key_info: Option<&KeyInfo>, algorithm: SignatureAlgorithm, policy: &VerificationPolicy, provider: &dyn CryptoProvider, ) -> Result<Option<Box<dyn VerifyingKey + 'k>>, DsigError>
Resolve under both the operation policy and cryptographic provider. Read more
Source§fn resolve_for_verification<'k>(
&'k self,
key_info: Option<&KeyInfo>,
algorithm: SignatureAlgorithm,
policy: &VerificationPolicy,
provider: &dyn CryptoProvider,
) -> Result<Option<ResolvedVerificationKey<'k>>, DsigError>
fn resolve_for_verification<'k>( &'k self, key_info: Option<&KeyInfo>, algorithm: SignatureAlgorithm, policy: &VerificationPolicy, provider: &dyn CryptoProvider, ) -> Result<Option<ResolvedVerificationKey<'k>>, DsigError>
Discover and explicitly authorize a key for an end-to-end operation.
The default preserves discovery only: applications that authorize keys
themselves return
ResolvedVerificationKey::CallerTrusted explicitly.Source§fn resolve_for_verification_with_budget<'k>(
&'k self,
key_info: Option<&KeyInfo>,
algorithm: SignatureAlgorithm,
policy: &VerificationPolicy,
provider: &dyn CryptoProvider,
inspected_candidates: &mut InspectedKeyCandidateBudget<'_>,
) -> Result<Option<ResolvedVerificationKey<'k>>, DsigError>
fn resolve_for_verification_with_budget<'k>( &'k self, key_info: Option<&KeyInfo>, algorithm: SignatureAlgorithm, policy: &VerificationPolicy, provider: &dyn CryptoProvider, inspected_candidates: &mut InspectedKeyCandidateBudget<'_>, ) -> Result<Option<ResolvedVerificationKey<'k>>, DsigError>
Resolve using the core operation’s cumulative candidate and certificate account.
The default charges one custom-resolver dispatch. Implementations searching
multiple candidates override this method, charging each inspection through
budget and using its execution account for certificate mechanism work.Source§fn consumes_document_key_info(&self) -> bool
fn consumes_document_key_info(&self) -> bool
Auto Trait Implementations§
impl<'a> Freeze for InventoryVerificationResolver<'a>
impl<'a> RefUnwindSafe for InventoryVerificationResolver<'a>
impl<'a> Send for InventoryVerificationResolver<'a>
impl<'a> Sync for InventoryVerificationResolver<'a>
impl<'a> Unpin for InventoryVerificationResolver<'a>
impl<'a> UnsafeUnpin for InventoryVerificationResolver<'a>
impl<'a> UnwindSafe for InventoryVerificationResolver<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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