Trait AsyncDpopReplayStore

Source
pub trait AsyncDpopReplayStore: Send + Sync {
    // Required method
    fn check_and_record<'life0, 'life1, 'async_trait>(
        &'life0 self,
        jti: &'life1 [u8; 16],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Async replay-state port for stores that perform remote I/O.

Implementations have the same atomicity, expiry, and fail-closed requirements as DpopReplayStore, but can perform I/O without blocking a Tokio worker. Use DpopVerifier::new_async with this port.

Required Methods§

Source

fn check_and_record<'life0, 'life1, 'async_trait>( &'life0 self, jti: &'life1 [u8; 16], ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§