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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Gets the value of thealiasfield.Gets the value of thearchivefield.String[]Gets the value of themaxMemoryfield.Gets the value of thekeystorefield.Gets the value of themaxMemoryfield.Gets the value of theproviderArgfield.Gets the value of theproviderClassfield.Gets the value of theproviderNamefield.Gets the value of thestorepassfield.Gets the value of thestoretypefield.Gets the value of theworkingDirectoryfield.booleanGets the value of the command line tool parameterbooleanGets the value of theverbosefield.voidSets the new given value to the fieldaliasof the request.voidsetArchive(File archive) Sets the new given value to the fieldarchiveof the request.voidsetArguments(String... arguments) Sets the new given value to the fieldargumentsof the request.voidsetKeystore(String keystore) Sets the new given value to the fieldkeystoreof the request.voidsetMaxMemory(String maxMemory) Sets the new given value to the fieldmaxMemoryof the request.voidsetProtectedAuthenticationPath(boolean protect) Sets the value of the command line tool parametervoidsetProviderArg(String providerArg) Sets the new given value to the fieldproviderArgof the request.voidsetProviderClass(String providerClass) Sets the new given value to the fieldproviderClassof the request.voidsetProviderName(String providerName) Sets the new given value to the fieldproviderNameof the request.voidsetStorepass(String storepass) Sets the new given value to the fieldstorepassof the request.voidsetStoretype(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(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, setSystemOutStreamConsumerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 theverbosefield.- Specified by:
isVerbosein interfaceJarSignerRequest- Returns:
- the value of the
verbosefield.
-
getKeystore
Gets the value of thekeystorefield.- Specified by:
getKeystorein interfaceJarSignerRequest- Returns:
- the value of the
keystorefield.
-
getStoretype
Gets the value of thestoretypefield.- Specified by:
getStoretypein interfaceJarSignerRequest- Returns:
- the value of the
storetypefield.
-
getStorepass
Gets the value of thestorepassfield.- Specified by:
getStorepassin interfaceJarSignerRequest- Returns:
- the value of the
storepassfield.
-
getAlias
Gets the value of thealiasfield.- Specified by:
getAliasin interfaceJarSignerRequest- Returns:
- the value of the
aliasfield.
-
getProviderName
Gets the value of theproviderNamefield.- Specified by:
getProviderNamein interfaceJarSignerRequest- Returns:
- the value of the
providerNamefield.
-
getProviderClass
Gets the value of theproviderClassfield.- Specified by:
getProviderClassin interfaceJarSignerRequest- Returns:
- the value of the
providerClassfield.
-
getProviderArg
Gets the value of theproviderArgfield.- Specified by:
getProviderArgin interfaceJarSignerRequest- Returns:
- the value of the
providerArgfield.
-
getMaxMemory
Gets the value of themaxMemoryfield.- Specified by:
getMaxMemoryin interfaceJarSignerRequest- Returns:
- the value of the
maxMemoryfield.
-
getArguments
Gets the value of themaxMemoryfield.- Specified by:
getArgumentsin interfaceJarSignerRequest- Returns:
- the value of the
maxMemoryfield.
-
getWorkingDirectory
Gets the value of theworkingDirectoryfield.- Specified by:
getWorkingDirectoryin interfaceJarSignerRequest- Returns:
- the value of the
workingDirectoryfield.
-
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
Sets the new given value to the fieldkeystoreof the request.- Specified by:
setKeystorein interfaceJarSignerRequest- Parameters:
keystore- the new value of the fieldkeystore.
-
setStoretype
Sets the new given value to the fieldstoretypeof the request.- Specified by:
setStoretypein interfaceJarSignerRequest- Parameters:
storetype- the new value of the fieldstoretype.
-
setStorepass
Sets the new given value to the fieldstorepassof the request.- Specified by:
setStorepassin interfaceJarSignerRequest- Parameters:
storepass- the new value of the fieldstorepass.
-
setProviderName
Sets the new given value to the fieldproviderNameof the request.- Specified by:
setProviderNamein interfaceJarSignerRequest- Parameters:
providerName- the new value of the fieldproviderName.
-
setProviderClass
Sets the new given value to the fieldproviderClassof the request.- Specified by:
setProviderClassin interfaceJarSignerRequest- Parameters:
providerClass- the new value of the fieldproviderClass.
-
setProviderArg
Sets the new given value to the fieldproviderArgof the request.- Specified by:
setProviderArgin interfaceJarSignerRequest- Parameters:
providerArg- the new value of the fieldproviderArg.
-
setAlias
Sets the new given value to the fieldaliasof the request.- Specified by:
setAliasin interfaceJarSignerRequest- Parameters:
alias- the new value of the fieldalias.
-
setMaxMemory
Sets the new given value to the fieldmaxMemoryof the request.- Specified by:
setMaxMemoryin interfaceJarSignerRequest- Parameters:
maxMemory- the new value of the fieldmaxMemory.
-
setArguments
Sets the new given value to the fieldargumentsof the request.- Specified by:
setArgumentsin interfaceJarSignerRequest- Parameters:
arguments- the new value of the fieldarguments.
-
setWorkingDirectory
Sets the new given value to the fieldworkingDirectoryof the request.- Specified by:
setWorkingDirectoryin interfaceJarSignerRequest- Parameters:
workingDirectory- the new value of the fieldworkingDirectory.
-
setArchive
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
-