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 SummaryNested ClassesModifier and TypeClassDescriptionfinal classfinal classfinal classstatic interface
- 
Field SummaryFieldsFields inherited from class org.apache.maven.plugins.gpg.AbstractGpgSignerargs, defaultKeyring, homeDir, isInteractive, keyname, lockMode, passphrase, publicKeyring, secretKeyring, SIGNATURE_EXTENSION, terminatePassphrase, useAgent
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidgenerateSignatureForFile(File file, File signature) Generate the detached signature file for the provided file.Should return some identification about the used key for logging purposes.voidprepare()Must be invoked BEFORE signing!Methods inherited from class org.apache.maven.plugins.gpg.AbstractGpgSignergenerateSignatureForArtifact, getLog, setArgs, setBaseDirectory, setBuildDirectory, setDefaultKeyring, setHomeDirectory, setInteractive, setKeyName, setLockMode, setLog, setOutputDirectory, setPassPhrase, setPublicKeyring, setSecretKeyring, setTerminatePassphrase, setUseAgent
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
BcSigner
 
- 
- 
Method Details- 
signerName- Specified by:
- signerNamein class- AbstractGpgSigner
 
- 
preparepublic void prepare() throws org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractGpgSignerMust be invoked BEFORE signing!- Overrides:
- preparein class- AbstractGpgSigner
- Throws:
- org.apache.maven.plugin.MojoFailureException
 
- 
getKeyInfoDescription copied from class:AbstractGpgSignerShould return some identification about the used key for logging purposes. Can be invoked only AFTERAbstractGpgSigner.prepare()was invoked.- Specified by:
- getKeyInfoin class- AbstractGpgSigner
 
- 
generateSignatureForFileprotected void generateSignatureForFile(File file, File signature) throws org.apache.maven.plugin.MojoExecutionException Description copied from class:AbstractGpgSignerGenerate the detached signature file for the provided file.- Specified by:
- generateSignatureForFilein 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
 
 
-