ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Programmatically Signing JAR Files
Subject:   Programmatically Verifying JAR Files
Date:   2003-05-12 04:49:01
From:   atar_arad
Response to: Programmatically Verifying JAR Files

You can use Class java.util.jar.JarFile. First instantiate it with file name and a boolean set to true shows that it must verify the signature. Now you must read every jarEntry contains in jar file. It throws a securityException when signature fails.
I have also written a code that in addition to above do a verification on the certificate contains in the jar file.
Behrooz Shahin
shahinb@creative.com.au

1 to 1 of 1
  1. Programmatically Verifying JAR Files
    2003-07-21 22:24:41  David Dossot [View]

1 to 1 of 1