pub struct DeferredSignCountUpdate {
pub current: u32,
pub proposed: u32,
}Expand description
A sign-count advance held back until the host’s own checks have passed.
L3 §7.2: “If the Relying Party performs additional security checks beyond these WebAuthn authentication ceremony steps, the above state updates SHOULD be deferred to after those additional checks are completed successfully.” Applying the counter early means a later check that fails has already advanced the stored value — the credential now looks stale to every subsequent assertion.
Fields§
§current: u32The counter the credential is believed to hold now.
proposed: u32The counter the assertion reported.
Implementations§
Source§impl DeferredSignCountUpdate
impl DeferredSignCountUpdate
Sourcepub fn stage(current: u32, new: u32) -> Self
pub fn stage(current: u32, new: u32) -> Self
Stage an update. Takes no effect until Self::commit.
Trait Implementations§
Source§impl Clone for DeferredSignCountUpdate
impl Clone for DeferredSignCountUpdate
impl Copy for DeferredSignCountUpdate
Source§impl Debug for DeferredSignCountUpdate
impl Debug for DeferredSignCountUpdate
impl Eq for DeferredSignCountUpdate
Source§impl PartialEq for DeferredSignCountUpdate
impl PartialEq for DeferredSignCountUpdate
impl StructuralPartialEq for DeferredSignCountUpdate
Auto Trait Implementations§
impl Freeze for DeferredSignCountUpdate
impl RefUnwindSafe for DeferredSignCountUpdate
impl Send for DeferredSignCountUpdate
impl Sync for DeferredSignCountUpdate
impl Unpin for DeferredSignCountUpdate
impl UnsafeUnpin for DeferredSignCountUpdate
impl UnwindSafe for DeferredSignCountUpdate
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