Skip to content

revocation

Structs


firma_sidecar::enforcement::revocation::BloomLruRevocationStore

Section titled “firma_sidecar::enforcement::revocation::BloomLruRevocationStore”

Struct

Two-layer revocation store: atomic bloom filter + LRU cache.

Methods:

  • fn new(cfg: RevocationConfig) -> Self - Construct a new revocation store with the given configuration.
  • fn metrics(self: &Self) -> RevocationMetricsSnapshot - Snapshot of metrics counters.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • RevocationStore
    • fn is_revoked(self: &Self, token_id: &TokenId) -> Result<bool, TokenError>
    • fn add_revocation(self: &Self, token_id: &TokenId) -> Result<(), TokenError>

firma_sidecar::enforcement::revocation::RevocationConfig

Section titled “firma_sidecar::enforcement::revocation::RevocationConfig”

Struct

Configuration for [BloomLruRevocationStore].

Fields:

  • capacity: usize - Expected distinct revoked tokens the bloom is sized for.
  • fpr: f64 - Target false positive rate. Must be 0.0 < fpr < 1.0.
  • lru_capacity: usize - Capacity of the confirmed-positive LRU cache.

Traits: Copy

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> RevocationConfig
  • Default
    • fn default() -> Self
  • From
    • fn from(config: RevocationConfig) -> Self
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result