Class GpgSigner


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

      • GpgSigner

        public GpgSigner​(String executable)
    • Method Detail

      • 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
        Parameters:
        file - The file to sign
        signature - The file in which the generate signature will be put
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if signature generation fails