Interface TlsManagerProvider

All Known Implementing Classes:

public interface TlsManagerProvider
ServiceLoader service provider for TlsManager.
  • 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.
      key of this implementation
    • create

      TlsManager create(Config config, String name)
      Create a new instance from the configuration located on the provided node.
      config - located at configKey() node
      name - name of the configured implementation
      a new instance created from this config node
    • getOrCreate

      static <T> TlsManager getOrCreate(T configBean, Function<T,TlsManager> creator)
      Provides the ability to have a unique TlsManager per unique Config instance provided.
      Type Parameters:
      T - the type of the config bean
      configBean - the config bean instance
      creator - the creator to apply if not already in cache, which takes the config bean instance
      the tls manager instance from cache, defaulting to creation from the creator if not in cache
    • create

      static TlsManager create(Config config)
      Takes a configuration and looks for a suitable TlsManager instance based upon that configuration.
      config - the configuration
      a TLS manager instance
      IllegalStateException - if the configuration is invalid or if the named provider is not found