Trait spiffe::bundle::BundleRefSource [−][src]
pub trait BundleRefSource { type Item: Bundle; fn get_bundle_for_trust_domain(
&self,
trust_domain: &TrustDomain
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>; }
Expand description
Represents a source of bundles queryable by TrustDomain
.
Associated Types
Required methods
fn get_bundle_for_trust_domain(
&self,
trust_domain: &TrustDomain
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
[src]
fn get_bundle_for_trust_domain(
&self,
trust_domain: &TrustDomain
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
[src]Returns the reference to bundle (set of public keys authorities) associated to the TrustDomain
.
If it cannot be found a bundle associated to the trust domain, it returns Ok(None)
.
If there’s is an error in source fetching the bundle, it returns an Err<Box<dyn Error + Send + Sync + 'static>>
.
Implementors
fn get_bundle_for_trust_domain(
&self,
trust_domain: &TrustDomain
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
[src]
fn get_bundle_for_trust_domain(
&self,
trust_domain: &TrustDomain
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
[src]Returns the JwtBundle
associated to the given TrustDomain
.
fn get_bundle_for_trust_domain(
&self,
trust_domain: &TrustDomain
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
[src]
fn get_bundle_for_trust_domain(
&self,
trust_domain: &TrustDomain
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
[src]Returns the X509Bundle
associated to the given TrustDomain
.
type Item = X509Bundle