goon = handleSignatureValidationFailed(valContext, signature);
}
if (goon) {
LOG.debug("XML signature {} verified", i + 1);
} else {
throw new XmlSignatureInvalidException("XML signature validation failed");
}
collectedObjects.addAll((List<XMLObject>) signature.getObjects());
collectedReferences.addAll((List<Reference>) signature.getSignedInfo().getReferences());
}
map2Message(collectedReferences, collectedObjects, out, doc);