Package org.springframework.boot.ssl
Class DefaultSslBundleRegistry
java.lang.Object
org.springframework.boot.ssl.DefaultSslBundleRegistry
- All Implemented Interfaces:
SslBundleRegistry,SslBundles
Default
SslBundleRegistry implementation.- Since:
- 3.1.0
- Author:
- Scott Frederick, Moritz Halbritter, Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBundleUpdateHandler(String name, Consumer<SslBundle> updateHandler) Add a handler that will be called each time the named bundle is updated.Return anSslBundlewith the provided name.voidregisterBundle(String name, SslBundle bundle) Register a namedSslBundle.voidupdateBundle(String name, SslBundle updatedBundle) Updates anSslBundle.
-
Constructor Details
-
DefaultSslBundleRegistry
public DefaultSslBundleRegistry() -
DefaultSslBundleRegistry
-
-
Method Details
-
registerBundle
Description copied from interface:SslBundleRegistryRegister a namedSslBundle.- Specified by:
registerBundlein interfaceSslBundleRegistry- Parameters:
name- the bundle namebundle- the bundle
-
updateBundle
Description copied from interface:SslBundleRegistryUpdates anSslBundle.- Specified by:
updateBundlein interfaceSslBundleRegistry- Parameters:
name- the bundle nameupdatedBundle- the updated bundle
-
getBundle
Description copied from interface:SslBundlesReturn anSslBundlewith the provided name.- Specified by:
getBundlein interfaceSslBundles- Parameters:
name- the bundle name- Returns:
- the bundle
-
addBundleUpdateHandler
public void addBundleUpdateHandler(String name, Consumer<SslBundle> updateHandler) throws NoSuchSslBundleException Description copied from interface:SslBundlesAdd a handler that will be called each time the named bundle is updated.- Specified by:
addBundleUpdateHandlerin interfaceSslBundles- Parameters:
name- the bundle nameupdateHandler- the handler that should be called- Throws:
NoSuchSslBundleException- if a bundle with the provided name does not exist
-