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 Details

    • verbose

      private boolean verbose
      See options.
    • keystore

      private String keystore
      See options.
    • storetype

      private String storetype
      See options.
    • storepass

      private String storepass
      See options.
    • alias

      private String alias
      See options.
    • providerName

      private String providerName
      See options.
    • providerClass

      private String providerClass
      See options.
    • providerArg

      private String providerArg
      See options.
    • maxMemory

      private String maxMemory
      The maximum memory available to the JAR signer, e.g. 256M. See -Xmx for more details.
    • arguments

      private String[] arguments
      List of additional arguments to append to the jarsigner command line.
    • workingDirectory

      private File workingDirectory
      Location of the working directory.
    • archive

      private File archive
      Archive to treat.
    • protectedAuthenticationPath

      protected boolean protectedAuthenticationPath
      See options.
  • Constructor Details

    • AbstractJarSignerRequest

      public AbstractJarSignerRequest()
  • Method Details

    • isVerbose

      public boolean isVerbose()
      Gets the value of the verbose field.
      Specified by:
      isVerbose in interface JarSignerRequest
      Returns:
      the value of the verbose field.
    • getKeystore

      public String getKeystore()
      Gets the value of the keystore field.
      Specified by:
      getKeystore in interface JarSignerRequest
      Returns:
      the value of the keystore field.
    • getStoretype

      public String getStoretype()
      Gets the value of the storetype field.
      Specified by:
      getStoretype in interface JarSignerRequest
      Returns:
      the value of the storetype field.
    • getStorepass

      public String getStorepass()
      Gets the value of the storepass field.
      Specified by:
      getStorepass in interface JarSignerRequest
      Returns:
      the value of the storepass field.
    • getAlias

      public String getAlias()
      Gets the value of the alias field.
      Specified by:
      getAlias in interface JarSignerRequest
      Returns:
      the value of the alias field.
    • getProviderName

      public String getProviderName()
      Gets the value of the providerName field.
      Specified by:
      getProviderName in interface JarSignerRequest
      Returns:
      the value of the providerName field.
    • getProviderClass

      public String getProviderClass()
      Gets the value of the providerClass field.
      Specified by:
      getProviderClass in interface JarSignerRequest
      Returns:
      the value of the providerClass field.
    • getProviderArg

      public String getProviderArg()
      Gets the value of the providerArg field.
      Specified by:
      getProviderArg in interface JarSignerRequest
      Returns:
      the value of the providerArg field.
    • getMaxMemory

      public String getMaxMemory()
      Gets the value of the maxMemory field.
      Specified by:
      getMaxMemory in interface JarSignerRequest
      Returns:
      the value of the maxMemory field.
    • getArguments

      public String[] getArguments()
      Gets the value of the maxMemory field.
      Specified by:
      getArguments in interface JarSignerRequest
      Returns:
      the value of the maxMemory field.
    • getWorkingDirectory

      public File getWorkingDirectory()
      Gets the value of the workingDirectory field.
      Specified by:
      getWorkingDirectory in interface JarSignerRequest
      Returns:
      the value of the workingDirectory field.
    • getArchive

      public File getArchive()
      Gets the value of the archive field.

      The archive field is in fact the file on which the jarsigner request will be executed.

      Specified by:
      getArchive in interface JarSignerRequest
      Returns:
      the value of the archive field.
    • isProtectedAuthenticationPath

      public boolean isProtectedAuthenticationPath()
      Gets the value of the command line tool parameter
      protected
      Specified by:
      isProtectedAuthenticationPath in interface JarSignerRequest
      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 field verbose of the request.
      Specified by:
      setVerbose in interface JarSignerRequest
      Parameters:
      verbose - the new value of the field verbose.
    • setKeystore

      public void setKeystore(String keystore)
      Sets the new given value to the field keystore of the request.
      Specified by:
      setKeystore in interface JarSignerRequest
      Parameters:
      keystore - the new value of the field keystore.
    • setStoretype

      public void setStoretype(String storetype)
      Sets the new given value to the field storetype of the request.
      Specified by:
      setStoretype in interface JarSignerRequest
      Parameters:
      storetype - the new value of the field storetype.
    • setStorepass

      public void setStorepass(String storepass)
      Sets the new given value to the field storepass of the request.
      Specified by:
      setStorepass in interface JarSignerRequest
      Parameters:
      storepass - the new value of the field storepass.
    • setProviderName

      public void setProviderName(String providerName)
      Sets the new given value to the field providerName of the request.
      Specified by:
      setProviderName in interface JarSignerRequest
      Parameters:
      providerName - the new value of the field providerName.
    • setProviderClass

      public void setProviderClass(String providerClass)
      Sets the new given value to the field providerClass of the request.
      Specified by:
      setProviderClass in interface JarSignerRequest
      Parameters:
      providerClass - the new value of the field providerClass.
    • setProviderArg

      public void setProviderArg(String providerArg)
      Sets the new given value to the field providerArg of the request.
      Specified by:
      setProviderArg in interface JarSignerRequest
      Parameters:
      providerArg - the new value of the field providerArg.
    • setAlias

      public void setAlias(String alias)
      Sets the new given value to the field alias of the request.
      Specified by:
      setAlias in interface JarSignerRequest
      Parameters:
      alias - the new value of the field alias.
    • setMaxMemory

      public void setMaxMemory(String maxMemory)
      Sets the new given value to the field maxMemory of the request.
      Specified by:
      setMaxMemory in interface JarSignerRequest
      Parameters:
      maxMemory - the new value of the field maxMemory.
    • setArguments

      public void setArguments(String... arguments)
      Sets the new given value to the field arguments of the request.
      Specified by:
      setArguments in interface JarSignerRequest
      Parameters:
      arguments - the new value of the field arguments.
    • setWorkingDirectory

      public void setWorkingDirectory(File workingDirectory)
      Sets the new given value to the field workingDirectory of the request.
      Specified by:
      setWorkingDirectory in interface JarSignerRequest
      Parameters:
      workingDirectory - the new value of the field workingDirectory.
    • setArchive

      public void setArchive(File archive)
      Sets the new given value to the field archive of the request.
      Specified by:
      setArchive in interface JarSignerRequest
      Parameters:
      archive - the new value of the field archive.
    • setProtectedAuthenticationPath

      public void setProtectedAuthenticationPath(boolean protect)
      Sets the value of the command line tool parameter
      protected
      Specified by:
      setProtectedAuthenticationPath in interface JarSignerRequest
      Parameters:
      protect - iff the password must be given via a protected authentication path such as a dedicated PIN reader