pub struct Broker { /* private fields */ }Expand description
The brokered secrets of one proxy run. Broker::default holds none.
Implementations§
Source§impl Broker
impl Broker
Sourcepub fn new(
secrets: Vec<(Secret, Zeroizing<String>)>,
) -> Result<Self, BrokerError>
pub fn new( secrets: Vec<(Secret, Zeroizing<String>)>, ) -> Result<Self, BrokerError>
A broker for secrets, each with its value. The policy has already
validated the entries; this checks the values.
Sourcepub fn with_decoys(
self,
values: impl IntoIterator<Item = Zeroizing<String>>,
) -> Self
pub fn with_decoys( self, values: impl IntoIterator<Item = Zeroizing<String>>, ) -> Self
This broker, also refusing any request that carries one of values
(the decoy keys of ADR-106), whatever its host. A value shorter than
openmoat_core::canary::MIN_VALUE_LEN is not looked for: it would
occur in ordinary traffic.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Broker
impl Freeze for Broker
impl Move for Broker
impl RefUnwindSafe for Broker
impl Send for Broker
impl Sync for Broker
impl Unpin for Broker
impl UnsafeUnpin for Broker
impl UnwindSafe for Broker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more