Skip to content

basic

Structs


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 new BasicCredentialInjector from a pre-built map
  • fn 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 previous
  • fn len(self: &Self) -> usize - Returns the number of configured connectors.
  • fn is_empty(self: &Self) -> bool - Returns true if 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