Class X509BundleSet
java.lang.Object
io.spiffe.bundle.x509bundle.X509BundleSet
- All Implemented Interfaces:
BundleSource<X509Bundle>
Represents a set of X.509 bundles keyed by trust domain.
-
Method Summary
Modifier and TypeMethodDescriptionstatic X509BundleSetemptySet()Creates a new X.509 bundle empty.getBundleForTrustDomain(@NonNull TrustDomain trustDomain) Returns the X.509 bundle associated to the trust domain.Returns the X.509 bundles of this X.509 Bundle Set.static X509BundleSetof(@NonNull Collection<X509Bundle> bundles) Creates a new X.509 bundle set from a list of X.509 bundles.voidput(@NonNull X509Bundle x509Bundle) Adds an X.509 bundle to this Set, if the trust domain already exists, replaces the bundle.
-
Method Details
-
of
Creates a new X.509 bundle set from a list of X.509 bundles.- Parameters:
bundles- Collection ofX509Bundle- Returns:
- a
X509BundleSetinitialized with the list of bundles
-
emptySet
-
put
Adds an X.509 bundle to this Set, if the trust domain already exists, replaces the bundle.- Parameters:
x509Bundle- aX509Bundle
-
getBundleForTrustDomain
public X509Bundle getBundleForTrustDomain(@NonNull @NonNull TrustDomain trustDomain) throws BundleNotFoundException Returns the X.509 bundle associated to the trust domain.- Specified by:
getBundleForTrustDomainin interfaceBundleSource<X509Bundle>- Parameters:
trustDomain- an instance of aTrustDomain- Returns:
- the
X509Bundleassociated to the given trust domain - Throws:
BundleNotFoundException- if no bundle could be found for the given trust domain
-
getBundles
Returns the X.509 bundles of this X.509 Bundle Set.- Returns:
- the X.509 bundles of this X.509 Bundle Set
-