|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.internet2.middleware.security.XmlSecToolCommandLineArguments
public class XmlSecToolCommandLineArguments
Command line arguments for the XmlSecTool command line tool.
| Nested Class Summary | |
|---|---|
class |
XmlSecToolCommandLineArguments.Blacklist
A blacklist of digest and signature algorithms we should not accept during signature verification. |
static class |
XmlSecToolCommandLineArguments.DigestChoice
The digest method to use in the various signature algorithms. |
| Field Summary | |
|---|---|
private jargs.gnu.CmdLineParser.Option |
BASE64_IN_ARG
|
private jargs.gnu.CmdLineParser.Option |
BASE64_OUT_ARG
|
private boolean |
base64DecodeInput
|
private boolean |
base64EncodeOutput
|
private XmlSecToolCommandLineArguments.Blacklist |
blacklist
Local blacklist of signature and digest algorithms. |
private jargs.gnu.CmdLineParser.Option |
blacklistDigestArg
Command line option indicating digests to be blacklisted. |
private Collection<XmlSecToolCommandLineArguments.DigestChoice> |
blacklistDigests
Collection of digest choices to be blacklisted. |
private String |
cert
|
private jargs.gnu.CmdLineParser.Option |
CERT_ARG
|
private boolean |
clearBlacklist
Option requesting that the signature verification blacklists be cleared. |
private jargs.gnu.CmdLineParser.Option |
clearBlacklistArg
Command line option requesting that the signature verification blacklists be cleared. |
private jargs.gnu.CmdLineParser |
cliParser
|
private jargs.gnu.CmdLineParser.Option |
DEFLATE_OUT_ARG
|
private boolean |
deflateOutput
|
private XmlSecToolCommandLineArguments.DigestChoice |
digest
Digest algorithm choice for all algorithms. |
private String |
digestAlgorithm
Digest algorithm URI directly specified on the command line. |
private jargs.gnu.CmdLineParser.Option |
digestAlgorithmArg
Command line option specifying the digest algorithm URI. |
private jargs.gnu.CmdLineParser.Option |
digestArg
Command line option specifying the digest algorithm to be used in the various signature algorithms in a convenient short form. |
private String |
digestName
Selected digest algorithm choice name for all algorithms. |
private jargs.gnu.CmdLineParser.Option |
GUNZIP_IN_ARG
|
private boolean |
gunzipInput
|
private jargs.gnu.CmdLineParser.Option |
GZIP_OUT_ARG
|
private boolean |
gzipOutput
|
private boolean |
help
|
private jargs.gnu.CmdLineParser.Option |
HELP_ARG
|
private jargs.gnu.CmdLineParser.Option |
HTTP_PROXY_ARG
|
private jargs.gnu.CmdLineParser.Option |
HTTP_PROXY_PASSWORD_ARG
|
private jargs.gnu.CmdLineParser.Option |
HTTP_PROXY_PORT_ARG
|
private jargs.gnu.CmdLineParser.Option |
HTTP_PROXY_USERNAME_ARG
|
private String |
httpProxy
|
private String |
httpProxyPassword
|
private int |
httpProxyPort
|
private String |
httpProxyUsername
|
private jargs.gnu.CmdLineParser.Option |
IN_FILE_ARG
|
private jargs.gnu.CmdLineParser.Option |
IN_URL_ARG
|
private List<String> |
inclusiveNamespacePrefixs
|
private String |
inFile
|
private jargs.gnu.CmdLineParser.Option |
INFLATE_IN_ARG
|
private boolean |
inflateInput
|
private String |
inUrl
|
private String |
key
|
private jargs.gnu.CmdLineParser.Option |
KEY_ARG
|
private jargs.gnu.CmdLineParser.Option |
KEY_PASSWORD_ARG
|
private String |
keyPassword
|
private String |
keystore
|
private jargs.gnu.CmdLineParser.Option |
KEYSTORE_ARG
|
private jargs.gnu.CmdLineParser.Option |
KEYSTORE_PASSWORD_ARG
|
private jargs.gnu.CmdLineParser.Option |
KEYSTORE_PROVIDER_ARG
|
private jargs.gnu.CmdLineParser.Option |
KEYSTORE_TYPE_ARG
|
private String |
keystorePassword
|
private String |
keystoreProvider
|
private String |
keystoreType
|
private jargs.gnu.CmdLineParser.Option |
KI_CRL_ARG
|
private jargs.gnu.CmdLineParser.Option |
KI_KEY_NAME_ARG
|
private List<String> |
kiCrls
|
private List<String> |
kiKeyNames
|
private boolean |
listBlacklist
Option requesting that the signature verification blacklists be listed. |
private jargs.gnu.CmdLineParser.Option |
listBlacklistArg
Command line option requesting that the signature verification blacklists be listed. |
private jargs.gnu.CmdLineParser.Option |
LOG_CONFIG_ARG
|
private String |
logConfig
|
private jargs.gnu.CmdLineParser.Option |
OUT_FILE_ARG
|
private String |
outFile
|
private jargs.gnu.CmdLineParser.Option |
PKCS11_CONFIG_ARG
|
private String |
pkcs11Config
|
private boolean |
quiet
|
private jargs.gnu.CmdLineParser.Option |
QUIET_ARG
|
private String |
refIdAttributeName
|
private boolean |
rngSchema
|
private jargs.gnu.CmdLineParser.Option |
SCHEMA_DIR_ARG
|
private jargs.gnu.CmdLineParser.Option |
SCHEMA_RNG_LANG_ARG
|
private jargs.gnu.CmdLineParser.Option |
SCHEMA_XSD_LANG_ARG
|
private String |
schemaDirectory
|
private boolean |
schemaValidate
|
private jargs.gnu.CmdLineParser.Option |
SIG_INC_PREFIX_ARG
|
private jargs.gnu.CmdLineParser.Option |
SIG_POS_ARG
|
private jargs.gnu.CmdLineParser.Option |
SIG_REF_ID_ATT_ARG
|
private jargs.gnu.CmdLineParser.Option |
SIG_REQUIRED_ARG
|
private boolean |
sign
|
private jargs.gnu.CmdLineParser.Option |
SIGN_ARG
|
private String |
signatureAlgorithm
Signature algorithm URI directly specified on the command line. |
private jargs.gnu.CmdLineParser.Option |
signatureAlgorithmArg
Command line option specifying the signature algorithm URI. |
private String |
signaturePosition
|
private boolean |
signatureRequired
|
private boolean |
signatureVerify
|
private jargs.gnu.CmdLineParser.Option |
V_SCHEMA_ARG
|
private jargs.gnu.CmdLineParser.Option |
V_SIG_ARG
|
private boolean |
verbose
|
private jargs.gnu.CmdLineParser.Option |
VERBOSE_ARG
|
private boolean |
xsdSchema
|
| Constructor Summary | |
|---|---|
XmlSecToolCommandLineArguments(String[] args)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean sign
private jargs.gnu.CmdLineParser.Option SIGN_ARG
private boolean schemaValidate
private jargs.gnu.CmdLineParser.Option V_SCHEMA_ARG
private boolean signatureVerify
private jargs.gnu.CmdLineParser.Option V_SIG_ARG
private String inFile
private jargs.gnu.CmdLineParser.Option IN_FILE_ARG
private String inUrl
private jargs.gnu.CmdLineParser.Option IN_URL_ARG
private boolean base64DecodeInput
private jargs.gnu.CmdLineParser.Option BASE64_IN_ARG
private boolean inflateInput
private jargs.gnu.CmdLineParser.Option INFLATE_IN_ARG
private boolean gunzipInput
private jargs.gnu.CmdLineParser.Option GUNZIP_IN_ARG
private String httpProxy
private jargs.gnu.CmdLineParser.Option HTTP_PROXY_ARG
private int httpProxyPort
private jargs.gnu.CmdLineParser.Option HTTP_PROXY_PORT_ARG
private String httpProxyUsername
private jargs.gnu.CmdLineParser.Option HTTP_PROXY_USERNAME_ARG
private String httpProxyPassword
private jargs.gnu.CmdLineParser.Option HTTP_PROXY_PASSWORD_ARG
private String schemaDirectory
private jargs.gnu.CmdLineParser.Option SCHEMA_DIR_ARG
private boolean xsdSchema
private jargs.gnu.CmdLineParser.Option SCHEMA_XSD_LANG_ARG
private boolean rngSchema
private jargs.gnu.CmdLineParser.Option SCHEMA_RNG_LANG_ARG
private boolean signatureRequired
private jargs.gnu.CmdLineParser.Option SIG_REQUIRED_ARG
private String refIdAttributeName
private jargs.gnu.CmdLineParser.Option SIG_REF_ID_ATT_ARG
private String signaturePosition
private jargs.gnu.CmdLineParser.Option SIG_POS_ARG
private List<String> inclusiveNamespacePrefixs
private jargs.gnu.CmdLineParser.Option SIG_INC_PREFIX_ARG
private XmlSecToolCommandLineArguments.DigestChoice digest
private String digestName
private jargs.gnu.CmdLineParser.Option digestArg
private String digestAlgorithm
private jargs.gnu.CmdLineParser.Option digestAlgorithmArg
private String signatureAlgorithm
private jargs.gnu.CmdLineParser.Option signatureAlgorithmArg
private List<String> kiKeyNames
private jargs.gnu.CmdLineParser.Option KI_KEY_NAME_ARG
private List<String> kiCrls
private jargs.gnu.CmdLineParser.Option KI_CRL_ARG
private String outFile
private jargs.gnu.CmdLineParser.Option OUT_FILE_ARG
private boolean base64EncodeOutput
private jargs.gnu.CmdLineParser.Option BASE64_OUT_ARG
private boolean deflateOutput
private jargs.gnu.CmdLineParser.Option DEFLATE_OUT_ARG
private boolean gzipOutput
private jargs.gnu.CmdLineParser.Option GZIP_OUT_ARG
private String cert
private jargs.gnu.CmdLineParser.Option CERT_ARG
private String key
private jargs.gnu.CmdLineParser.Option KEY_ARG
private String keyPassword
private jargs.gnu.CmdLineParser.Option KEY_PASSWORD_ARG
private String keystore
private jargs.gnu.CmdLineParser.Option KEYSTORE_ARG
private String keystorePassword
private jargs.gnu.CmdLineParser.Option KEYSTORE_PASSWORD_ARG
private String keystoreType
private jargs.gnu.CmdLineParser.Option KEYSTORE_TYPE_ARG
private String keystoreProvider
private jargs.gnu.CmdLineParser.Option KEYSTORE_PROVIDER_ARG
private String pkcs11Config
private jargs.gnu.CmdLineParser.Option PKCS11_CONFIG_ARG
private final XmlSecToolCommandLineArguments.Blacklist blacklist
private boolean clearBlacklist
private jargs.gnu.CmdLineParser.Option clearBlacklistArg
private boolean listBlacklist
private jargs.gnu.CmdLineParser.Option listBlacklistArg
private final Collection<XmlSecToolCommandLineArguments.DigestChoice> blacklistDigests
private jargs.gnu.CmdLineParser.Option blacklistDigestArg
private boolean verbose
private jargs.gnu.CmdLineParser.Option VERBOSE_ARG
private boolean quiet
private jargs.gnu.CmdLineParser.Option QUIET_ARG
private String logConfig
private jargs.gnu.CmdLineParser.Option LOG_CONFIG_ARG
private boolean help
private jargs.gnu.CmdLineParser.Option HELP_ARG
private jargs.gnu.CmdLineParser cliParser
| Constructor Detail |
|---|
public XmlSecToolCommandLineArguments(String[] args)
| Method Detail |
|---|
public void parseCommandLineArguments(String[] args)
public String getHttpProxy()
public int getHttpProxyPort()
public String getHttpProxyUsername()
public String getHttpProxyPassword()
public boolean doSign()
public boolean doSchemaValidation()
public boolean doSignatureVerify()
public boolean isSignatureRequired()
public String getReferenceIdAttributeName()
public String getSignaturePosition()
public List<String> getInclusiveNamespacePrefixs()
public XmlSecToolCommandLineArguments.DigestChoice getDigest()
public String getDigestAlgorithm()
null.public String getSignatureAlgorithm()
null.public List<String> getKeyInfoKeyNames()
public List<String> getKeyInfoCrls()
public String getInputFile()
public String getInputUrl()
public boolean isBase64DecodeInput()
public boolean isInflateInput()
public boolean isGunzipInput()
public String getSchemaDirectory()
public boolean isXsdSchema()
public boolean isRngSchema()
public String getOutputFile()
public boolean isBase64EncodedOutput()
public boolean isDeflateOutput()
public boolean isGzipOutput()
public String getCertificate()
public String getKey()
public String getKeyPassword()
public String getKeystore()
public String getKeystorePassword()
public String getKeystoreType()
public String getKeystoreProvider()
public String getPkcs11Config()
public XmlSecToolCommandLineArguments.Blacklist getBlacklist()
public boolean doClearBlacklist()
true if option selectedpublic boolean doListBlacklist()
true if option selectedpublic Collection<XmlSecToolCommandLineArguments.DigestChoice> getBlacklistDigests()
XmlSecToolCommandLineArguments.DigestChoices to be blacklistedpublic boolean doVerboseOutput()
public boolean doQuietOutput()
public String getLoggingConfiguration()
public boolean doHelp()
private void validateCommandLineArguments()
public void printHelp(PrintStream out)
out - location where to print the outputprivate void errorAndExit(String error)
error - the error message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||