Interface PgpSignatureVerifier

All Known Implementing Classes:
BouncyCastleVerifier

public interface PgpSignatureVerifier
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    verifyPgpSignature(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 verify
      expectedPgpSignature - the expected PGP signature, based on the public key corresponding the given key ID
      rawPublicKey - PGP public key
      keyID - PGP public key ID corresponding the publicKeyIS argument
      Returns:
      true if the provided file was verified successfully, false otherwise
      Throws:
      Exception - indication failure to read from any of the given InputStreams or failure during the execution of PGP verification