- All Known Implementing Classes:
DefaultOciCertificatesTlsManagerProvider
public interface TlsManagerProvider
ServiceLoader service provider for TlsManager.-
Method Summary
Modifier and TypeMethodDescriptionKey this service implementation is stored under.static TlsManagerTakes a configuration and looks for a suitableTlsManagerinstance based upon that configuration.Create a new instance from the configuration located on the provided node.static <T> TlsManagergetOrCreate(T configBean, Function<T, TlsManager> creator) Provides the ability to have a uniqueTlsManagerper uniqueConfiginstance provided.
-
Method Details
-
configKey
String configKey()Key this service implementation is stored under. This is also considered the service "type" when used in a list in configuration, to allow the same service defined more than once.- Returns:
- key of this implementation
-
create
Create a new instance from the configuration located on the provided node.- Parameters:
config- located atconfigKey()nodename- name of the configured implementation- Returns:
- a new instance created from this config node
-
getOrCreate
Provides the ability to have a uniqueTlsManagerper uniqueConfiginstance provided.- Type Parameters:
T- the type of the config bean- Parameters:
configBean- the config bean instancecreator- the creator to apply if not already in cache, which takes the config bean instance- Returns:
- the tls manager instance from cache, defaulting to creation from the
creatorif not in cache
-
create
Takes a configuration and looks for a suitableTlsManagerinstance based upon that configuration.- Parameters:
config- the configuration- Returns:
- a TLS manager instance
- Throws:
IllegalStateException- if the configuration is invalid or if the named provider is not found
-