pub struct ScopedResponse<'r, 'a> { /* private fields */ }Expand description
Signature and issuer-scope facts. Caller trust provenance, intended recipient, pending delegate revocation, nonce, time and critical demands remain explicit.
Implementations§
Source§impl<'r, 'a> ScopedResponse<'r, 'a>
impl<'r, 'a> ScopedResponse<'r, 'a>
Sourcepub fn signed(self) -> SignedResponse<'r, 'a>
pub fn signed(self) -> SignedResponse<'r, 'a>
Original authenticated response/signing source.
Sourcepub fn issuer(self) -> &'r Certificate<'a>
pub fn issuer(self) -> &'r Certificate<'a>
Selected target issuer, never inferred from included certificates.
Sourcepub fn source(self) -> AuthoritySource
pub fn source(self) -> AuthoritySource
Explicit scope source, including unresolved delegated revocation.
Sourcepub fn find<D: Digest>(
self,
target: &Certificate<'_>,
digest: &D,
execution: &Memory,
) -> CallbackResult<Lookup<'r, 'a>, D::Error>
pub fn find<D: Digest>( self, target: &Certificate<'_>, digest: &D, execution: &Memory, ) -> CallbackResult<Lookup<'r, 'a>, D::Error>
Select a target assertion using the same issuer as the signer binding.
Source§impl<'r, 'a> ScopedResponse<'r, 'a>
impl<'r, 'a> ScopedResponse<'r, 'a>
Sourcepub fn evaluate<D: Digest>(
self,
request: &Request<'_, '_>,
time: &Evaluation<'_>,
digest: &D,
) -> CallbackResult<TargetEvidence<'r, 'a>, D::Error>
pub fn evaluate<D: Digest>( self, request: &Request<'_, '_>, time: &Evaluation<'_>, digest: &D, ) -> CallbackResult<TargetEvidence<'r, 'a>, D::Error>
Evaluate the actual request against this issuer-scoped signed response. RFC6960 §3.2 requires identity, signer, authorization and temporal checks; this operation composes mechanism facts without choosing caller policy. https://www.rfc-editor.org/rfc/rfc6960#section-3.2
Trait Implementations§
Source§impl<'r, 'a> Clone for ScopedResponse<'r, 'a>
impl<'r, 'a> Clone for ScopedResponse<'r, 'a>
impl<'r, 'a> Copy for ScopedResponse<'r, 'a>
Auto Trait Implementations§
impl<'r, 'a> !RefUnwindSafe for ScopedResponse<'r, 'a>
impl<'r, 'a> !Send for ScopedResponse<'r, 'a>
impl<'r, 'a> !Sync for ScopedResponse<'r, 'a>
impl<'r, 'a> !UnwindSafe for ScopedResponse<'r, 'a>
impl<'r, 'a> Freeze for ScopedResponse<'r, 'a>
impl<'r, 'a> Unpin for ScopedResponse<'r, 'a>
impl<'r, 'a> UnsafeUnpin for ScopedResponse<'r, 'a>
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