gateway
Class JarVerifier

java.lang.Object
  |
  +--gateway.JarVerifier

public class JarVerifier
extends Object

Tests if a Jar is valid, i.e if it was not modified while in transit.


Constructor Summary
JarVerifier()
           
 
Method Summary
 boolean verification(String jarName)
          Makes the JAR file verification using the jarsigner tool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarVerifier

public JarVerifier()
Method Detail

verification

public boolean verification(String jarName)
                     throws InvalidJarException
Makes the JAR file verification using the jarsigner tool. NOTE: The jarsigner tool have to be placed at c:\jdk1.2.1\bin. If the JAR is successfuly verified, the certificate verification begins, otherwise, an exception is thrown.
Parameters:
jarName - - the jar path
Returns:
true if the Jar verification succeeds, false otherwise.
Throws:
InvalidJarException - if the JAR is not correctly signed.
See Also:
CertificateVerifier