public abstract class AbstractCommandLineArguments extends Object implements CommandLineArguments
| Modifier and Type | Field and Description |
|---|---|
static String |
BASEURL_PROPERTY
Name of system property for overriding default URL.
|
private boolean |
disableNameChecking
Disable TLS certificate name checking.
|
private boolean |
help
Display command usage.
|
private String |
path
Path to add to base URL.
|
private String |
trustStore
Trust store for SSL connectivity.
|
private String |
trustStorePassword
Trust store password for SSL connectivity.
|
private String |
trustStoreType
Trust store type for SSL connectivity.
|
private String |
url
Base of URL to invoke.
|
| Constructor and Description |
|---|
AbstractCommandLineArguments()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
buildURL()
Compute the full URL to connect to.
|
protected StringBuilder |
doBuildURL(StringBuilder builder)
Override this method to modify the eventual URL and attach any parameters.
|
boolean |
getHelp()
Value of "help" parameter.
|
String |
getPath()
Value of "path" parameter.
|
String |
getTrustStore()
Value of "trustStore" parameter.
|
String |
getTrustStorePassword()
Value of "trustStorePassword" parameter.
|
String |
getTrustStoreType()
Value of "trustStoreType" parameter.
|
String |
getURL()
Value of "url" parameter.
|
private void |
installTrustStore()
Use the configured parameters to set global JVM trust store parameters for SSL connectivity.
|
boolean |
isDisableNameChecking()
Value of "disableNameChecking" parameter.
|
boolean |
isUsage()
Should command usage be displayed?
|
void |
validate()
Validate the parameter set.
|
@Nonnull @NotEmpty public static final String BASEURL_PROPERTY
private boolean help
private boolean disableNameChecking
public boolean getHelp()
@Nonnull public String getURL()
Defaults to http://localhost
@Nullable public String getTrustStore()
@Nullable public String getTrustStoreType()
@Nullable public String getTrustStorePassword()
public boolean isDisableNameChecking()
public boolean isUsage()
isUsage in interface CommandLineArgumentspublic void validate()
validate in interface CommandLineArguments@Nonnull public URL buildURL() throws MalformedURLException
buildURL in interface CommandLineArgumentsMalformedURLException - if the URL constructed is invalid@Nonnull protected StringBuilder doBuildURL(@Nonnull StringBuilder builder)
builder - contains the URL in a partial state of construction, possibly including query stringprivate void installTrustStore()
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.