pub struct SnapshotIssuer { /* private fields */ }Expand description
Mints membership snapshots under the issuer key.
kid must be published in the JWKS with the issuer role; edges refuse
any other. Like a standing binding, a snapshot has no exp, so a kid that
has signed snapshots stays published until every one of them is superseded
(see cheers_verify::standing, “Key rotation rule”).
Implementations§
Source§impl SnapshotIssuer
impl SnapshotIssuer
Sourcepub const DEFAULT_REFRESH_AFTER_SECONDS: i64
pub const DEFAULT_REFRESH_AFTER_SECONDS: i64
7 days, like StandingBinder. Advisory: how
long until a holder that can reach the issuer fetches a fresher
snapshot. It never bounds how long one is valid.
Sourcepub const MINT_ATTEMPTS: usize = 5
pub const MINT_ATTEMPTS: usize = 5
How many times mint re-walks when a write lands under
it before giving up with Error::SnapshotContended.
pub fn new( store: impl OwnershipStore + 'static, schema: Arc<SchemaRegistry>, minter: PasetoV4SecretMinter, issuer: impl Into<String>, kid: impl Into<String>, ) -> Self
pub fn with_refresh_after(self, seconds: i64) -> Self
pub fn issuer(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotIssuer
impl !UnwindSafe for SnapshotIssuer
impl Freeze for SnapshotIssuer
impl Send for SnapshotIssuer
impl Sync for SnapshotIssuer
impl Unpin for SnapshotIssuer
impl UnsafeUnpin for SnapshotIssuer
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