authorized_clients
Module: authorized_clients
Section titled “Module: authorized_clients”Contents
Section titled “Contents”Structs
AuthorizedClientSet- In-memory set of authorized client identities (CN or DNS SAN strings).
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 frompath.fn contains(self: &Self, identity: &str) -> bool- Returntrueifidentity(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-truewhen 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