Class BcSigner

public class BcSigner extends AbstractGpgSigner
A signer implementation that uses pure Java Bouncy Castle implementation to sign.
  • Field Details

  • Constructor Details

    • BcSigner

      public BcSigner(org.eclipse.aether.RepositorySystemSession session, String keyEnvName, String keyFingerprintEnvName, String agentSocketLocations, String keyFilePath, String keyFingerprint)
  • Method Details

    • signerName

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

      public void prepare() throws org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractGpgSigner
      Must be invoked BEFORE signing!
      prepare 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
      Description copied from class: AbstractGpgSigner
      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