Package io.jenkins.plugins.wiz
Class PGPVerifier
java.lang.Object
io.jenkins.plugins.wiz.PGPVerifier
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Custom exception for PGP verification errors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
verifySignatureFromFiles
(String dataPath, String signaturePath, String publicKeyPath) Verifies a PGP signature using file paths.
-
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 datasignaturePath
- Path to the signature filepublicKeyPath
- 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
-