basic
Module: credential::provider::basic
Section titled “Module: credential::provider::basic”Contents
Section titled “Contents”Structs
BasicCredentialInjector- In-memory credential store keyed by connector ID.
firma_sidecar::credential::provider::basic::BasicCredentialInjector
Section titled “firma_sidecar::credential::provider::basic::BasicCredentialInjector”Struct
In-memory credential store keyed by connector ID.
Each connector ID maps to a set of HTTP headers that will be injected into outbound requests after enforcement passes.
Methods:
fn new(credentials: HashMap<String, HashMap<String, String>>) -> Self- Creates a newBasicCredentialInjectorfrom a pre-built mapfn empty() -> Self- Creates an empty injector with no configured connectors.fn insert(self: & mut Self, connector_id: String, headers: HashMap<String, String>)- Registers headers for a connector ID, replacing any previousfn len(self: &Self) -> usize- Returns the number of configured connectors.fn is_empty(self: &Self) -> bool- Returnstrueif no connectors are configured.
Trait Implementations:
- Clone
fn clone(self: &Self) -> BasicCredentialInjector
- CredentialInjector
fn inject(self: &'life0 Self, _envelope: &'life1 ExecutionEnvelope, connector_id: &'life2 str, _target: &'life3 str) -> ::core::pin::Pin<Box<dyn ::core::future::Future>>
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result