pub struct ConfigWebOfTrustMode {
flow_amount: Option<TrustAmountFlow>,
partial_amount: Option<TrustAmountPartial>,
roots: Option<HashSet<ConfigWebOfTrustRoot>>,
artifact_verifier_identity_domain_matches: Option<HashSet<DomainName>>,
}Expand description
Settings for the “Web of Trust” model.
Fields§
§flow_amount: Option<TrustAmountFlow>The required flow amount for authentication for a target identity.
partial_amount: Option<TrustAmountPartial>The numerical trust amount of a partially trusted introducer.
roots: Option<HashSet<ConfigWebOfTrustRoot>>The trust roots for the “Web of Trust”.
If a trust root defined in this list cannot be found in the set of trust anchors, a warning is emitted.
§Note
If this list is empty, all trust-anchors found for a specific context are considered to be trust roots. If this list is empty and no trust-anchors are found, no artifact verifiers will be trusted.
artifact_verifier_identity_domain_matches: Option<HashSet<DomainName>>The identity of an artifact verifier must match one of the domains.
Implementations§
Source§impl ConfigWebOfTrustMode
impl ConfigWebOfTrustMode
Sourcepub(crate) fn new(
flow_amount: Option<TrustAmountFlow>,
partial_amount: Option<TrustAmountPartial>,
roots: Option<HashSet<ConfigWebOfTrustRoot>>,
artifact_verifier_identity_domain_matches: Option<HashSet<DomainName>>,
) -> Self
pub(crate) fn new( flow_amount: Option<TrustAmountFlow>, partial_amount: Option<TrustAmountPartial>, roots: Option<HashSet<ConfigWebOfTrustRoot>>, artifact_verifier_identity_domain_matches: Option<HashSet<DomainName>>, ) -> Self
Creates a new ConfigWebOfTrustMode.
Sourcepub fn flow_amount(&self) -> Option<TrustAmountFlow>
pub fn flow_amount(&self) -> Option<TrustAmountFlow>
Returns the optional TrustAmountFlow.
Sourcepub fn partial_amount(&self) -> Option<TrustAmountPartial>
pub fn partial_amount(&self) -> Option<TrustAmountPartial>
Returns the optional TrustAmountPartial.
Sourcepub(crate) fn roots(&self) -> Option<&HashSet<ConfigWebOfTrustRoot>>
pub(crate) fn roots(&self) -> Option<&HashSet<ConfigWebOfTrustRoot>>
Returns a reference to the list of trust roots.
Sourcepub fn artifact_verifier_identity_domain_matches(
&self,
) -> Option<&HashSet<DomainName>>
pub fn artifact_verifier_identity_domain_matches( &self, ) -> Option<&HashSet<DomainName>>
Returns a reference to the list of DomainName entries.
Trait Implementations§
Source§impl Clone for ConfigWebOfTrustMode
impl Clone for ConfigWebOfTrustMode
Source§fn clone(&self) -> ConfigWebOfTrustMode
fn clone(&self) -> ConfigWebOfTrustMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more