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.
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 |
JarVerifier
public JarVerifier()
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