Package org.springframework.boot.ssl
Interface SslBundles
- All Known Implementing Classes:
DefaultSslBundleRegistry
public interface SslBundles
A managed set of
SslBundle
instances that can be retrieved by name.- Since:
- 3.1.0
- Author:
- Scott Frederick, Moritz Halbritter, Jonatan Ivanov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBundleUpdateHandler
(String name, Consumer<SslBundle> updateHandler) Add a handler that will be called each time the named bundle is updated.Return anSslBundle
with the provided name.Return the names of all bundles managed by this instance.
-
Method Details
-
getBundle
Return anSslBundle
with the provided name.- Parameters:
name
- the bundle name- Returns:
- the bundle
- Throws:
NoSuchSslBundleException
- if a bundle with the provided name does not exist
-
addBundleUpdateHandler
void addBundleUpdateHandler(String name, Consumer<SslBundle> updateHandler) throws NoSuchSslBundleException Add a handler that will be called each time the named bundle is updated.- Parameters:
name
- the bundle nameupdateHandler
- the handler that should be called- Throws:
NoSuchSslBundleException
- if a bundle with the provided name does not exist- Since:
- 3.2.0
-
getBundleNames
Return the names of all bundles managed by this instance.- Returns:
- the bundle names
- Since:
- 3.4.0
-