Class GpgSigner

public class GpgSigner extends AbstractGpgSigner
A signer implementation that uses the GnuPG command line executable.
  • Field Details

  • Constructor Details

    • GpgSigner

      public GpgSigner(String executable)
  • Method Details

    • signerName

      public String signerName()
      Specified by:
      signerName in class AbstractGpgSigner
    • getKeyInfo

      public String getKeyInfo()
      Description copied from class: AbstractGpgSigner
      Should return some identification about the used key for logging purposes. Can be invoked only AFTER AbstractGpgSigner.prepare() was invoked.
      Specified by:
      getKeyInfo in class AbstractGpgSigner
    • generateSignatureForFile

      protected void generateSignatureForFile(File file, File signature) throws org.apache.maven.plugin.MojoExecutionException
      Generate the detached signature file for the provided file.
      Specified by:
      generateSignatureForFile in class AbstractGpgSigner
      file - The file to sign
      signature - The file in which the generate signature will be put
      org.apache.maven.plugin.MojoExecutionException - if signature generation fails