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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringaliasSee options.private java.io.FilearchiveArchive to treat.private java.lang.String[]argumentsList of additional arguments to append to the jarsigner command line.private java.lang.StringkeystoreSee options.private java.lang.StringmaxMemoryThe maximum memory available to the JAR signer, e.g.protected booleanprotectedAuthenticationPathSee options.private java.lang.StringproviderArgSee options.private java.lang.StringproviderClassSee options.private java.lang.StringproviderNameSee options.private java.lang.StringstorepassSee options.private java.lang.StringstoretypeSee options.private booleanverboseSee options.private java.io.FileworkingDirectoryLocation of the working directory.
-
Constructor Summary
Constructors Constructor Description AbstractJarSignerRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlias()Gets the value of thealiasfield.java.io.FilegetArchive()Gets the value of thearchivefield.java.lang.String[]getArguments()Gets the value of themaxMemoryfield.java.lang.StringgetKeystore()Gets the value of thekeystorefield.java.lang.StringgetMaxMemory()Gets the value of themaxMemoryfield.java.lang.StringgetProviderArg()Gets the value of theproviderArgfield.java.lang.StringgetProviderClass()Gets the value of theproviderClassfield.java.lang.StringgetProviderName()Gets the value of theproviderNamefield.java.lang.StringgetStorepass()Gets the value of thestorepassfield.java.lang.StringgetStoretype()Gets the value of thestoretypefield.java.io.FilegetWorkingDirectory()Gets the value of theworkingDirectoryfield.booleanisProtectedAuthenticationPath()Gets the value of the command line tool parameterbooleanisVerbose()Gets the value of theverbosefield.voidsetAlias(java.lang.String alias)Sets the new given value to the fieldaliasof the request.voidsetArchive(java.io.File archive)Sets the new given value to the fieldarchiveof the request.voidsetArguments(java.lang.String... arguments)Sets the new given value to the fieldargumentsof the request.voidsetKeystore(java.lang.String keystore)Sets the new given value to the fieldkeystoreof the request.voidsetMaxMemory(java.lang.String maxMemory)Sets the new given value to the fieldmaxMemoryof the request.voidsetProtectedAuthenticationPath(boolean protect)Sets the value of the command line tool parametervoidsetProviderArg(java.lang.String providerArg)Sets the new given value to the fieldproviderArgof the request.voidsetProviderClass(java.lang.String providerClass)Sets the new given value to the fieldproviderClassof the request.voidsetProviderName(java.lang.String providerName)Sets the new given value to the fieldproviderNameof the request.voidsetStorepass(java.lang.String storepass)Sets the new given value to the fieldstorepassof the request.voidsetStoretype(java.lang.String storetype)Sets the new given value to the fieldstoretypeof the request.voidsetVerbose(boolean verbose)Sets the new given value to the fieldverboseof the request.voidsetWorkingDirectory(java.io.File workingDirectory)Sets the new given value to the fieldworkingDirectoryof the request.-
Methods inherited from class org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
getSystemErrorStreamConsumer, getSystemOutStreamConsumer, setSystemErrorStreamConsumer, setSystemOutStreamConsumer
-
-
-
-
Field Detail
-
verbose
private boolean verbose
See options.
-
keystore
private java.lang.String keystore
See options.
-
storetype
private java.lang.String storetype
See options.
-
storepass
private java.lang.String storepass
See options.
-
alias
private java.lang.String alias
See options.
-
providerName
private java.lang.String providerName
See options.
-
providerClass
private java.lang.String providerClass
See options.
-
providerArg
private java.lang.String providerArg
See options.
-
maxMemory
private java.lang.String maxMemory
The maximum memory available to the JAR signer, e.g.256M. See -Xmx for more details.
-
arguments
private java.lang.String[] arguments
List of additional arguments to append to the jarsigner command line.
-
workingDirectory
private java.io.File workingDirectory
Location of the working directory.
-
archive
private java.io.File archive
Archive to treat.
-
protectedAuthenticationPath
protected boolean protectedAuthenticationPath
See options.
-
-
Method Detail
-
isVerbose
public boolean isVerbose()
Gets the value of theverbosefield.- Specified by:
isVerbosein interfaceJarSignerRequest- Returns:
- the value of the
verbosefield.
-
getKeystore
public java.lang.String getKeystore()
Gets the value of thekeystorefield.- Specified by:
getKeystorein interfaceJarSignerRequest- Returns:
- the value of the
keystorefield.
-
getStoretype
public java.lang.String getStoretype()
Gets the value of thestoretypefield.- Specified by:
getStoretypein interfaceJarSignerRequest- Returns:
- the value of the
storetypefield.
-
getStorepass
public java.lang.String getStorepass()
Gets the value of thestorepassfield.- Specified by:
getStorepassin interfaceJarSignerRequest- Returns:
- the value of the
storepassfield.
-
getAlias
public java.lang.String getAlias()
Gets the value of thealiasfield.- Specified by:
getAliasin interfaceJarSignerRequest- Returns:
- the value of the
aliasfield.
-
getProviderName
public java.lang.String getProviderName()
Gets the value of theproviderNamefield.- Specified by:
getProviderNamein interfaceJarSignerRequest- Returns:
- the value of the
providerNamefield.
-
getProviderClass
public java.lang.String getProviderClass()
Gets the value of theproviderClassfield.- Specified by:
getProviderClassin interfaceJarSignerRequest- Returns:
- the value of the
providerClassfield.
-
getProviderArg
public java.lang.String getProviderArg()
Gets the value of theproviderArgfield.- Specified by:
getProviderArgin interfaceJarSignerRequest- Returns:
- the value of the
providerArgfield.
-
getMaxMemory
public java.lang.String getMaxMemory()
Gets the value of themaxMemoryfield.- Specified by:
getMaxMemoryin interfaceJarSignerRequest- Returns:
- the value of the
maxMemoryfield.
-
getArguments
public java.lang.String[] getArguments()
Gets the value of themaxMemoryfield.- Specified by:
getArgumentsin interfaceJarSignerRequest- Returns:
- the value of the
maxMemoryfield.
-
getWorkingDirectory
public java.io.File getWorkingDirectory()
Gets the value of theworkingDirectoryfield.- Specified by:
getWorkingDirectoryin interfaceJarSignerRequest- Returns:
- the value of the
workingDirectoryfield.
-
getArchive
public java.io.File getArchive()
Gets the value of thearchivefield.The archive field is in fact the file on which the jarsigner request will be executed.
- Specified by:
getArchivein interfaceJarSignerRequest- Returns:
- the value of the
archivefield.
-
isProtectedAuthenticationPath
public boolean isProtectedAuthenticationPath()
Gets the value of the command line tool parameterprotected
- Specified by:
isProtectedAuthenticationPathin 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 fieldverboseof the request.- Specified by:
setVerbosein interfaceJarSignerRequest- Parameters:
verbose- the new value of the fieldverbose.
-
setKeystore
public void setKeystore(java.lang.String keystore)
Sets the new given value to the fieldkeystoreof the request.- Specified by:
setKeystorein interfaceJarSignerRequest- Parameters:
keystore- the new value of the fieldkeystore.
-
setStoretype
public void setStoretype(java.lang.String storetype)
Sets the new given value to the fieldstoretypeof the request.- Specified by:
setStoretypein interfaceJarSignerRequest- Parameters:
storetype- the new value of the fieldstoretype.
-
setStorepass
public void setStorepass(java.lang.String storepass)
Sets the new given value to the fieldstorepassof the request.- Specified by:
setStorepassin interfaceJarSignerRequest- Parameters:
storepass- the new value of the fieldstorepass.
-
setProviderName
public void setProviderName(java.lang.String providerName)
Sets the new given value to the fieldproviderNameof the request.- Specified by:
setProviderNamein interfaceJarSignerRequest- Parameters:
providerName- the new value of the fieldproviderName.
-
setProviderClass
public void setProviderClass(java.lang.String providerClass)
Sets the new given value to the fieldproviderClassof the request.- Specified by:
setProviderClassin interfaceJarSignerRequest- Parameters:
providerClass- the new value of the fieldproviderClass.
-
setProviderArg
public void setProviderArg(java.lang.String providerArg)
Sets the new given value to the fieldproviderArgof the request.- Specified by:
setProviderArgin interfaceJarSignerRequest- Parameters:
providerArg- the new value of the fieldproviderArg.
-
setAlias
public void setAlias(java.lang.String alias)
Sets the new given value to the fieldaliasof the request.- Specified by:
setAliasin interfaceJarSignerRequest- Parameters:
alias- the new value of the fieldalias.
-
setMaxMemory
public void setMaxMemory(java.lang.String maxMemory)
Sets the new given value to the fieldmaxMemoryof the request.- Specified by:
setMaxMemoryin interfaceJarSignerRequest- Parameters:
maxMemory- the new value of the fieldmaxMemory.
-
setArguments
public void setArguments(java.lang.String... arguments)
Sets the new given value to the fieldargumentsof the request.- Specified by:
setArgumentsin interfaceJarSignerRequest- Parameters:
arguments- the new value of the fieldarguments.
-
setWorkingDirectory
public void setWorkingDirectory(java.io.File workingDirectory)
Sets the new given value to the fieldworkingDirectoryof the request.- Specified by:
setWorkingDirectoryin interfaceJarSignerRequest- Parameters:
workingDirectory- the new value of the fieldworkingDirectory.
-
setArchive
public void setArchive(java.io.File archive)
Sets the new given value to the fieldarchiveof the request.- Specified by:
setArchivein 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:
setProtectedAuthenticationPathin interfaceJarSignerRequest- Parameters:
protect- iff the password must be given via a protected authentication path such as a dedicated PIN reader
-
-