Skip to content

authorized_clients

Structs


firma_authority::authorized_clients::AuthorizedClientSet

Section titled “firma_authority::authorized_clients::AuthorizedClientSet”

Struct

In-memory set of authorized client identities (CN or DNS SAN strings).

Populated from [AuthorizedClientsFile] at startup. Look-ups are O(1) and require no locking — the set is immutable after construction.

Methods:

  • fn load(path: &Path) -> Result<Self, ConfigError> - Load the allow-list from path.
  • fn contains(self: &Self, identity: &str) -> bool - Return true if identity (a CN or DNS SAN) is in the allow-list.
  • fn len(self: &Self) -> usize - Number of entries in the allow-list.
  • fn is_empty(self: &Self) -> bool - true when the allow-list is empty (no clients are authorized).

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Clone
    • fn clone(self: &Self) -> AuthorizedClientSet