protected void verifyFiles(ModelProvenanceElement validHistoryElement, Map<String, File> files, Map<String, ProvenanceVerification> verificationMap) throws SerializationException, IOException, NoSuchAlgorithmException { LOGGER.info("Start validating files..."); for (Map.Entry<String, File> entry : files.entrySet()) { String fileId = entry.getKey(); LOGGER.info("Validating \"" + fileId + "\""); String checksum = HashingUtil.getChecksum(entry.getValue(), TOSCAMetaFileAttributes.HASH); ProvenanceVerification verified = verifyFileInManifest(validHistoryElement, fileId, checksum); verificationMap.put(entry.getKey(), verified); LOGGER.info("\"" + entry.getKey() + "\" " + verified); } LOGGER.info("Completed files validation."); }