Class InstallableComponentSupport
java.lang.Object
net.shibboleth.profile.installablecomponent.InstallableComponentSupport
Useful methods for supporting Installable Components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumValue for support level pointed to bySUPPORT_LEVEL_INTERFIX. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty Name suffix for available versions insidePlugin.getUpdateURLs().static final StringProperty Name for download namePlugin.getUpdateURLs().static final StringProperty Name for Download directoryPlugin.getUpdateURLs().private static org.slf4j.LoggerClass logger.static final StringProperty Name for max supported IdP version inside insidePlugin.getUpdateURLs().static final StringProperty Name for minimum supported IdP version inside insidePlugin.getUpdateURLs().static final StringProperty Name for support level inside insidePlugin.getUpdateURLs().static final StringUsed for specifying templated keynames.static final StringUsed for specifying templated results. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstallableComponentVersiongetBestVersion(InstallableComponentVersion installIntoVersion, InstallableComponentVersion instaleeVersion, InstallableComponentInfo instaleeInfo) Find the best update version (plugin or IdP - call it the instalee).static PropertiesloadInfo(List<URL> updateURLs, org.apache.hc.client5.http.classic.HttpClient client, HttpClientSecurityParameters securityParameters) Load the property file describing all the plugin we know about from a known location.
-
Field Details
-
AVAILABLE_VERSIONS_PROPERTY_SUFFIX
Property Name suffix for available versions insidePlugin.getUpdateURLs().- See Also:
-
DOWNLOAD_URL_INTERFIX
Property Name for Download directoryPlugin.getUpdateURLs().- See Also:
-
BASE_NAME_INTERFIX
Property Name for download namePlugin.getUpdateURLs().- See Also:
-
MAX_IDP_VERSION_INTERFIX
Property Name for max supported IdP version inside insidePlugin.getUpdateURLs().- See Also:
-
MIN_IDP_VERSION_INTERFIX
Property Name for minimum supported IdP version inside insidePlugin.getUpdateURLs().- See Also:
-
SUPPORT_LEVEL_INTERFIX
Property Name for support level inside insidePlugin.getUpdateURLs().- See Also:
-
VERSION_PATTERN
Used for specifying templated keynames.- See Also:
-
VERSION_PATTERN_REGEX
Used for specifying templated results.- See Also:
-
log
@Nonnull private static org.slf4j.Logger logClass logger.
-
-
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 versioninstaleeInfo- 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 lookclient- the http client to usesecurityParameters- the HttpClientSecurityParameters, if any- Returns:
- the property files for the component.
-