/** * Verifies the signature and the fingerprint. * @return * @throws GeneralSecurityException */ public boolean verify() throws GeneralSecurityException { if (signature==null || fingerprint==null) return false; CryptoImplementation cryptoImpl = destination.getCryptoImpl(); PublicKey key = destination.getPublicSigningKey(); boolean valid = cryptoImpl.verify(getDataToSign(), signature, key); valid &= fingerprint.isValid(); return valid; }