Class UpdateIdPArguments
java.lang.Object
net.shibboleth.shared.cli.AbstractCommandLineArguments
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLineArguments
net.shibboleth.idp.installer.impl.UpdateIdPArguments
- All Implemented Interfaces:
CommandLineArguments
Arguments for IdP "Updater" CLI.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringWhere to download.private PathThe path variant ofdownloadDir, non null if this is aUpdateIdPArguments.OperationType.DOWLOAD.private StringForce download version.private InstallableComponentVersionThe version to upgrade from as aInstallableComponentVersion.private booleanBrief info about available versions.private org.slf4j.LoggerLogger.private UpdateIdPArguments.OperationTypeWhat to do.private StringFor tests "pretend to be that version.private StringTruststore to use for signing.private Stringlocation to override the default update location.private InstallableComponentVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the download Directory.org.slf4j.LoggergetLog()Get operation to perform.get TrustStore (if specified).Return the version to update from.Return the version to update to or null.return the update URL or null.booleanisCheck()Are we checking the version or not?booleanisList()Are we doing a List?voidprintHelp(PrintStream out) voidvalidate()Methods inherited from class net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLineArguments
getHttpClientName, getHttpClientSecurityParameterstName, getIdPHome, setHttpClientNameMethods inherited from class net.shibboleth.shared.cli.AbstractCommandLineArguments
getLanguageRanges, getLoggingConfiguration, getOtherArgs, getPropertyFiles, isANSI, isHelp, isQuietOutput, isVerboseOutput, isVersion
-
Field Details
-
log
@Nullable private org.slf4j.Logger logLogger. -
list
private boolean listBrief info about available versions. -
downloadDir
Where to download. -
truststore
Truststore to use for signing. -
forceDownloadVersion
Force download version. -
updateURL
location to override the default update location. -
pretendVersion
For tests "pretend to be that version. -
updateVersion
-
fromVersion
The version to upgrade from as aInstallableComponentVersion. -
downloadDirPath
The path variant ofdownloadDir, non null if this is aUpdateIdPArguments.OperationType.DOWLOAD. -
operation
What to do.
-
-
Constructor Details
-
UpdateIdPArguments
public UpdateIdPArguments()
-
-
Method Details
-
getLog
@Nonnull public org.slf4j.Logger getLog()- Specified by:
getLogin classAbstractCommandLineArguments
-
getTruststore
get TrustStore (if specified).- Returns:
- the trust store
-
getDownloadLocation
Get the download Directory. Only valid forUpdateIdPArguments.OperationType.DOWLOAD- Returns:
- Returns the download directory
-
isList
public boolean isList()Are we doing a List?- Returns:
- whether we're doing a list
-
isCheck
public boolean isCheck()Are we checking the version or not?- Returns:
- if we are just checking
-
getUpdateToVersion
Return the version to update to or null.- Returns:
- the version or null
-
getUpdateFromVersion
Return the version to update from.- Returns:
- the version
-
getUpdateURLs
return the update URL or null.- Returns:
- null or the value supplied
-
getOperation
Get operation to perform.- Returns:
- operation
-
validate
- Specified by:
validatein interfaceCommandLineArguments- Overrides:
validatein classAbstractCommandLineArguments- Throws:
IllegalArgumentException
-
printHelp
- Specified by:
printHelpin interfaceCommandLineArguments- Overrides:
printHelpin classAbstractIdPHomeAwareCommandLineArguments
-