io.spiffe.bundle.BundleSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-spiffe-core Show documentation
Show all versions of java-spiffe-core Show documentation
Core functionality to fetch, process and validate X.509 and JWT SVIDs and Bundles from the Workload API.
package io.spiffe.bundle;
import io.spiffe.exception.BundleNotFoundException;
import io.spiffe.spiffeid.TrustDomain;
import lombok.NonNull;
/**
* Represents a source of bundles of type T keyed by trust domain.
*/
public interface BundleSource {
/**
* Returns the bundle of type T associated to the given trust domain.
*
* @param trustDomain an instance of a {@link TrustDomain}
* @return the a bundle of type T for the given trust domain
* @throws BundleNotFoundException if no bundle is found for the given trust domain
*/
T getBundleForTrustDomain(@NonNull final TrustDomain trustDomain) throws BundleNotFoundException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy