Verifying Jar Signature
Using the example below, I obtained the expected result for a correctly signed JAR (true) and an altered JAR (false). One simple way to trigger the effect for testing is to change one of the digests listed in META-INF/MANIFEST.MF. Note that this approach ignores entries that are not listed in the manifest. Using jarsigner -verify … Read more