Class PGPVerifier

java.lang.Object
io.jenkins.plugins.wiz.PGPVerifier

public class PGPVerifier extends Object
Provides PGP signature verification functionality using the BouncyCastle library. This class handles verification of PGP signatures against provided public keys and signed data. Thread safety: This class is thread-safe as it maintains no state between operations.
  • Constructor Details

    • PGPVerifier

      public PGPVerifier()
  • Method Details

    • verifySignatureFromFiles

      public boolean verifySignatureFromFiles(String dataPath, String signaturePath, String publicKeyPath) throws PGPVerifier.PGPVerificationException
      Verifies a PGP signature using file paths.
      Parameters:
      dataPath - Path to the file containing the signed data
      signaturePath - Path to the signature file
      publicKeyPath - Path to the public key file
      Returns:
      true if signature is valid, false otherwise
      Throws:
      PGPVerifier.PGPVerificationException - if verification fails due to invalid input or processing errors