Class UpdateIdPCLI
java.lang.Object
net.shibboleth.shared.cli.AbstractCommandLine<T>
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<UpdateIdPArguments>
net.shibboleth.idp.installer.impl.UpdateIdPCLI
Command line update cheker.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.shared.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.LoggerLogger.static final StringThe place we publish our keys.Fields inherited from class net.shibboleth.shared.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intcheckSignature(UpdateIdPArguments args, String fileName) Check the signature of the downloaded distribution.private intcheckUpdate(UpdateIdPArguments args, InstallableComponentInfo info, boolean doDownload) Check for a potential upgrade, then download if that was requested.protected intdoRun(UpdateIdPArguments args) private intdownload(UpdateIdPArguments args, InstallableComponentVersion version, InstallableComponentInfo info) Download the provided or inferred version.protected Class<UpdateIdPArguments>protected org.slf4j.Loggerprotected Stringprivate intlist(UpdateIdPArguments args, InstallableComponentInfo info) List all available versions.static voidCLI entry point.static intShim for CLI entry point: Allows the code to be run from a test.Methods inherited from class net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine
getHttpClient, getHttpClientSecurityParametersMethods inherited from class net.shibboleth.shared.cli.AbstractCommandLine
getApplicationContext, initLogging, run, setCaseSensitiveOptions, setContextInitializer
-
Field Details
-
SHIBBOLETH_SIGNING_KEYS
The place we publish our keys.- See Also:
-
log
@Nullable private org.slf4j.Logger logLogger.
-
-
Constructor Details
-
UpdateIdPCLI
public UpdateIdPCLI()
-
-
Method Details
-
getArgumentClass
- Specified by:
getArgumentClassin classAbstractCommandLine<UpdateIdPArguments>
-
getVersion
- Specified by:
getVersionin classAbstractCommandLine<UpdateIdPArguments>
-
getLogger
@Nonnull protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classAbstractCommandLine<UpdateIdPArguments>
-
getAdditionalSpringResources
- Overrides:
getAdditionalSpringResourcesin classAbstractCommandLine<UpdateIdPArguments>
-
doRun
- Overrides:
doRunin classAbstractIdPHomeAwareCommandLine<UpdateIdPArguments>
-
checkUpdate
private int checkUpdate(@Nonnull UpdateIdPArguments args, @Nonnull InstallableComponentInfo info, boolean doDownload) Check for a potential upgrade, then download if that was requested.- Parameters:
args- The command lineinfo- information about the IdP update states, digested from "plugin.properties"doDownload- whether to download the distribution- Returns:
- a "return status"
-
list
List all available versions.- Parameters:
args- The command lineinfo- information about the IdP update states, digested from "plugin.properties"- Returns:
- a "return status"
-
download
private int download(@Nonnull UpdateIdPArguments args, @Nonnull InstallableComponentVersion version, @Nonnull InstallableComponentInfo info) Download the provided or inferred version.- Parameters:
args- the command lineversion- the idp version to downloadinfo- version about all IdP release- Returns:
- a "return status"
-
checkSignature
Check the signature of the downloaded distribution.- Parameters:
args- the command linefileName- the name.- Returns:
- "status" from the operation
-
runMain
Shim for CLI entry point: Allows the code to be run from a test.- Parameters:
args- arguments- Returns:
- one of the predefines
AbstractCommandLine.RC_INIT,AbstractCommandLine.RC_IO,AbstractCommandLine.RC_OKorAbstractCommandLine.RC_UNKNOWN
-
main
CLI entry point.- Parameters:
args- arguments
-