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
-
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.void
registerBundle
(String name, SslBundle bundle) Register a namedSslBundle
.void
updateBundle
(String name, SslBundle updatedBundle) Updates anSslBundle
.
-
Constructor Details
-
DefaultSslBundleRegistry
public DefaultSslBundleRegistry() -
DefaultSslBundleRegistry
-
-
Method Details
-
registerBundle
Description copied from interface:SslBundleRegistry
Register a namedSslBundle
.- Specified by:
registerBundle
in interfaceSslBundleRegistry
- Parameters:
name
- the bundle namebundle
- the bundle
-
updateBundle
Description copied from interface:SslBundleRegistry
Updates anSslBundle
.- Specified by:
updateBundle
in interfaceSslBundleRegistry
- Parameters:
name
- the bundle nameupdatedBundle
- the updated bundle
-
getBundle
Description copied from interface:SslBundles
Return anSslBundle
with the provided name.- Specified by:
getBundle
in interfaceSslBundles
- Parameters:
name
- the bundle name- Returns:
- the bundle
-
addBundleUpdateHandler
public void addBundleUpdateHandler(String name, Consumer<SslBundle> updateHandler) throws NoSuchSslBundleException Description copied from interface:SslBundles
Add a handler that will be called each time the named bundle is updated.- Specified by:
addBundleUpdateHandler
in interfaceSslBundles
- Parameters:
name
- the bundle nameupdateHandler
- the handler that should be called- Throws:
NoSuchSslBundleException
- if a bundle with the provided name does not exist
-