All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.spiffe.bundle.BundleSource Maven / Gradle / Ivy

Go to download

Core functionality to fetch, process and validate X.509 and JWT SVIDs and Bundles from the Workload API.

There is a newer version: 0.8.11
Show newest version
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