Class AbstractJarSignerRequest
java.lang.Object
org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
org.apache.maven.shared.jarsigner.AbstractJarSignerRequest
- All Implemented Interfaces:
JarSignerRequest
,org.apache.maven.shared.utils.cli.javatool.JavaToolRequest
- Direct Known Subclasses:
JarSignerSignRequest
,JarSignerVerifyRequest
public abstract class AbstractJarSignerRequest
extends org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
implements JarSignerRequest
Specifies the commons parameters used to control a jar signer invocation.
- Since:
- 1.0
- Author:
- Tony Chemit
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
Gets the value of thealias
field.Gets the value of thearchive
field.String[]
Gets the value of themaxMemory
field.Gets the value of thekeystore
field.Gets the value of themaxMemory
field.Gets the value of theproviderArg
field.Gets the value of theproviderClass
field.Gets the value of theproviderName
field.Gets the value of thestorepass
field.Gets the value of thestoretype
field.Gets the value of theworkingDirectory
field.boolean
Gets the value of the command line tool parameterboolean
Gets the value of theverbose
field.void
Sets the new given value to the fieldalias
of the request.void
setArchive
(File archive) Sets the new given value to the fieldarchive
of the request.void
setArguments
(String... arguments) Sets the new given value to the fieldarguments
of the request.void
setKeystore
(String keystore) Sets the new given value to the fieldkeystore
of the request.void
setMaxMemory
(String maxMemory) Sets the new given value to the fieldmaxMemory
of the request.void
setProtectedAuthenticationPath
(boolean protect) Sets the value of the command line tool parametervoid
setProviderArg
(String providerArg) Sets the new given value to the fieldproviderArg
of the request.void
setProviderClass
(String providerClass) Sets the new given value to the fieldproviderClass
of the request.void
setProviderName
(String providerName) Sets the new given value to the fieldproviderName
of the request.void
setStorepass
(String storepass) Sets the new given value to the fieldstorepass
of the request.void
setStoretype
(String storetype) Sets the new given value to the fieldstoretype
of the request.void
setVerbose
(boolean verbose) Sets the new given value to the fieldverbose
of the request.void
setWorkingDirectory
(File workingDirectory) Sets the new given value to the fieldworkingDirectory
of the request.Methods inherited from class org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
getSystemErrorStreamConsumer, getSystemOutStreamConsumer, setSystemErrorStreamConsumer, setSystemOutStreamConsumer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.shared.utils.cli.javatool.JavaToolRequest
getSystemErrorStreamConsumer, getSystemOutStreamConsumer, setSystemErrorStreamConsumer, setSystemOutStreamConsumer
-
Field Details
-
protectedAuthenticationPath
protected boolean protectedAuthenticationPathSee options.
-
-
Constructor Details
-
AbstractJarSignerRequest
public AbstractJarSignerRequest()
-
-
Method Details
-
isVerbose
public boolean isVerbose()Gets the value of theverbose
field.- Specified by:
isVerbose
in interfaceJarSignerRequest
- Returns:
- the value of the
verbose
field.
-
getKeystore
Gets the value of thekeystore
field.- Specified by:
getKeystore
in interfaceJarSignerRequest
- Returns:
- the value of the
keystore
field.
-
getStoretype
Gets the value of thestoretype
field.- Specified by:
getStoretype
in interfaceJarSignerRequest
- Returns:
- the value of the
storetype
field.
-
getStorepass
Gets the value of thestorepass
field.- Specified by:
getStorepass
in interfaceJarSignerRequest
- Returns:
- the value of the
storepass
field.
-
getAlias
Gets the value of thealias
field.- Specified by:
getAlias
in interfaceJarSignerRequest
- Returns:
- the value of the
alias
field.
-
getProviderName
Gets the value of theproviderName
field.- Specified by:
getProviderName
in interfaceJarSignerRequest
- Returns:
- the value of the
providerName
field.
-
getProviderClass
Gets the value of theproviderClass
field.- Specified by:
getProviderClass
in interfaceJarSignerRequest
- Returns:
- the value of the
providerClass
field.
-
getProviderArg
Gets the value of theproviderArg
field.- Specified by:
getProviderArg
in interfaceJarSignerRequest
- Returns:
- the value of the
providerArg
field.
-
getMaxMemory
Gets the value of themaxMemory
field.- Specified by:
getMaxMemory
in interfaceJarSignerRequest
- Returns:
- the value of the
maxMemory
field.
-
getArguments
Gets the value of themaxMemory
field.- Specified by:
getArguments
in interfaceJarSignerRequest
- Returns:
- the value of the
maxMemory
field.
-
getWorkingDirectory
Gets the value of theworkingDirectory
field.- Specified by:
getWorkingDirectory
in interfaceJarSignerRequest
- Returns:
- the value of the
workingDirectory
field.
-
getArchive
Gets the value of thearchive
field.The archive field is in fact the file on which the jarsigner request will be executed.
- Specified by:
getArchive
in interfaceJarSignerRequest
- Returns:
- the value of the
archive
field.
-
isProtectedAuthenticationPath
public boolean isProtectedAuthenticationPath()Gets the value of the command line tool parameterprotected
- Specified by:
isProtectedAuthenticationPath
in interfaceJarSignerRequest
- Returns:
- true iff the password must be given via a protected authentication path such as a dedicated PIN reader
-
setVerbose
public void setVerbose(boolean verbose) Sets the new given value to the fieldverbose
of the request.- Specified by:
setVerbose
in interfaceJarSignerRequest
- Parameters:
verbose
- the new value of the fieldverbose
.
-
setKeystore
Sets the new given value to the fieldkeystore
of the request.- Specified by:
setKeystore
in interfaceJarSignerRequest
- Parameters:
keystore
- the new value of the fieldkeystore
.
-
setStoretype
Sets the new given value to the fieldstoretype
of the request.- Specified by:
setStoretype
in interfaceJarSignerRequest
- Parameters:
storetype
- the new value of the fieldstoretype
.
-
setStorepass
Sets the new given value to the fieldstorepass
of the request.- Specified by:
setStorepass
in interfaceJarSignerRequest
- Parameters:
storepass
- the new value of the fieldstorepass
.
-
setProviderName
Sets the new given value to the fieldproviderName
of the request.- Specified by:
setProviderName
in interfaceJarSignerRequest
- Parameters:
providerName
- the new value of the fieldproviderName
.
-
setProviderClass
Sets the new given value to the fieldproviderClass
of the request.- Specified by:
setProviderClass
in interfaceJarSignerRequest
- Parameters:
providerClass
- the new value of the fieldproviderClass
.
-
setProviderArg
Sets the new given value to the fieldproviderArg
of the request.- Specified by:
setProviderArg
in interfaceJarSignerRequest
- Parameters:
providerArg
- the new value of the fieldproviderArg
.
-
setAlias
Sets the new given value to the fieldalias
of the request.- Specified by:
setAlias
in interfaceJarSignerRequest
- Parameters:
alias
- the new value of the fieldalias
.
-
setMaxMemory
Sets the new given value to the fieldmaxMemory
of the request.- Specified by:
setMaxMemory
in interfaceJarSignerRequest
- Parameters:
maxMemory
- the new value of the fieldmaxMemory
.
-
setArguments
Sets the new given value to the fieldarguments
of the request.- Specified by:
setArguments
in interfaceJarSignerRequest
- Parameters:
arguments
- the new value of the fieldarguments
.
-
setWorkingDirectory
Sets the new given value to the fieldworkingDirectory
of the request.- Specified by:
setWorkingDirectory
in interfaceJarSignerRequest
- Parameters:
workingDirectory
- the new value of the fieldworkingDirectory
.
-
setArchive
Sets the new given value to the fieldarchive
of the request.- Specified by:
setArchive
in interfaceJarSignerRequest
- Parameters:
archive
- the new value of the fieldarchive
.
-
setProtectedAuthenticationPath
public void setProtectedAuthenticationPath(boolean protect) Sets the value of the command line tool parameterprotected
- Specified by:
setProtectedAuthenticationPath
in interfaceJarSignerRequest
- Parameters:
protect
- iff the password must be given via a protected authentication path such as a dedicated PIN reader
-