Package co.elastic.apm.attach
Interface PgpSignatureVerifier
- All Known Implementing Classes:
BouncyCastleVerifier
public interface PgpSignatureVerifier
-
Method Summary
Modifier and TypeMethodDescriptionbooleanverifyPgpSignature(InputStream toVerify, InputStream expectedPgpSignature, InputStream rawPublicKey, String keyID) Verifying the given file's PGP signature based on the given public key ID and the expected signature.
-
Method Details
-
verifyPgpSignature
boolean verifyPgpSignature(InputStream toVerify, InputStream expectedPgpSignature, InputStream rawPublicKey, String keyID) throws Exception Verifying the given file's PGP signature based on the given public key ID and the expected signature.- Parameters:
toVerify- the file to verifyexpectedPgpSignature- the expected PGP signature, based on the public key corresponding the given key IDrawPublicKey- PGP public keykeyID- PGP public key ID corresponding thepublicKeyISargument- Returns:
trueif the provided file was verified successfully,falseotherwise- Throws:
Exception- indication failure to read from any of the givenInputStreams or failure during the execution of PGP verification
-