Package org.apache.maven.plugins.gpg
Class BcSigner
java.lang.Object
org.apache.maven.plugins.gpg.AbstractGpgSigner
org.apache.maven.plugins.gpg.BcSigner
A signer implementation that uses pure Java Bouncy Castle implementation to sign.
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
final class
final class
static interface
-
Field Summary
Fields inherited from class org.apache.maven.plugins.gpg.AbstractGpgSigner
args, defaultKeyring, homeDir, isInteractive, keyname, lockMode, passphrase, publicKeyring, secretKeyring, SIGNATURE_EXTENSION, useAgent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateSignatureForFile
(File file, File signature) Generate the detached signature file for the provided file.void
prepare()
Methods inherited from class org.apache.maven.plugins.gpg.AbstractGpgSigner
generateSignatureForArtifact, getLog, setArgs, setBaseDirectory, setBuildDirectory, setDefaultKeyring, setHomeDirectory, setInteractive, setKeyName, setLockMode, setLog, setOutputDirectory, setPassPhrase, setPublicKeyring, setSecretKeyring, setUseAgent
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
BcSigner
-
-
Method Details
-
signerName
- Specified by:
signerName
in classAbstractGpgSigner
-
prepare
public void prepare() throws org.apache.maven.plugin.MojoFailureException- Overrides:
prepare
in classAbstractGpgSigner
- Throws:
org.apache.maven.plugin.MojoFailureException
-
generateSignatureForFile
protected void generateSignatureForFile(File file, File signature) throws org.apache.maven.plugin.MojoExecutionException Description copied from class:AbstractGpgSigner
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
- if signature generation fails
-