Package org.apache.maven.plugin.gpg
Class GpgSigner
- java.lang.Object
-
- org.apache.maven.plugin.gpg.AbstractGpgSigner
-
- org.apache.maven.plugin.gpg.GpgSigner
-
public class GpgSigner extends AbstractGpgSigner
A signer implementation that uses the GnuPG command line executable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.maven.plugin.gpg.AbstractGpgSigner
AbstractGpgSigner.MaskingThread
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
executable
-
Fields inherited from class org.apache.maven.plugin.gpg.AbstractGpgSigner
args, defaultKeyring, homeDir, isInteractive, keyname, lockMode, passphrase, publicKeyring, secretKeyring, SIGNATURE_EXTENSION, useAgent
-
-
Constructor Summary
Constructors Constructor Description GpgSigner(java.lang.String executable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generateSignatureForFile(java.io.File file, java.io.File signature)
Generate the detached signature file for the provided file.-
Methods inherited from class org.apache.maven.plugin.gpg.AbstractGpgSigner
generateSignatureForArtifact, getLog, getPassphrase, setArgs, setBaseDirectory, setBuildDirectory, setDefaultKeyring, setHomeDirectory, setInteractive, setKeyName, setLockMode, setLog, setOutputDirectory, setPassPhrase, setPublicKeyring, setSecretKeyring, setUseAgent
-
-
-
-
Method Detail
-
generateSignatureForFile
protected void generateSignatureForFile(java.io.File file, java.io.File signature) throws org.apache.maven.plugin.MojoExecutionException
Generate the detached signature file for the provided file.- Specified by:
generateSignatureForFile
in classAbstractGpgSigner
- Parameters:
file
- The file to signsignature
- The file in which the generate signature will be put- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-