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.

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::FalsePositiveRate

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

Struct

A bloom filter’s target false positive rate, in the open interval (0.0, 1.0).

Tuple Struct: ()

Traits: Copy

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • PartialEq
    • fn eq(self: &Self, other: &Self) -> bool
  • PartialOrd
    • fn partial_cmp(self: &Self, other: &Self) -> $crate::option::Option<$crate::cmp::Ordering>
  • Clone
    • fn clone(self: &Self) -> Self

firma_sidecar::enforcement::revocation::RevocationConfig

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

Struct

Configuration for [BloomLruRevocationStore].

Traits: Copy

Trait Implementations:

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