Class InstallableComponentSupport

java.lang.Object
net.shibboleth.profile.installablecomponent.InstallableComponentSupport

public final class InstallableComponentSupport extends Object
Useful methods for supporting Installable Components.
  • Field Details

  • Constructor Details

    • InstallableComponentSupport

      private InstallableComponentSupport()
      Constructor.
  • Method Details

    • getBestVersion

      @Nullable public static InstallableComponentVersion getBestVersion(@Nonnull InstallableComponentVersion installIntoVersion, @Nonnull InstallableComponentVersion instaleeVersion, @Nonnull InstallableComponentInfo instaleeInfo)
      Find the best update version (plugin or IdP - call it the instalee).
      Parameters:
      installIntoVersion - The IdP version to check.
      instaleeVersion - The instalee version
      instaleeInfo - all about the instalee
      Returns:
      the best version (or null)
    • loadInfo

      @Nullable public static Properties loadInfo(@Nonnull List<URL> updateURLs, @Nonnull org.apache.hc.client5.http.classic.HttpClient client, @Nullable HttpClientSecurityParameters securityParameters)
      Load the property file describing all the plugin we know about from a known location.
      Parameters:
      updateURLs - where to look
      client - the http client to use
      securityParameters - the HttpClientSecurityParameters, if any
      Returns:
      the property files for the component.
    • getAllComponents

      @Nonnull public static List<String> getAllComponents(@Nullable Properties properties)
      What are the names of the InstallableComponents in the provided Properties.
      Parameters:
      properties - the input, usually parsed fron plugin.properties
      Returns:
      the component's names