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

The type of the bundles provided by the source.

Required methods

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

Returns the JwtBundle associated to the given TrustDomain.

Returns the X509Bundle associated to the given TrustDomain.