Methods Summary |
---|
public static native boolean | checkJarHash(java.lang.String jarPath, byte[] hashValue)Compare hash value of the JAR with provided hash value.
|
public static native byte[] | getJarHash(java.lang.String jarPath)Evaluate hash value for the JAR package
|
static native void | useClassVerifier(boolean verifier)Disable or enable class verifier for the current VM
|
static boolean | verifyJar(java.lang.String jarPath)Verify classes within JAR
return false;
|
public static byte[] | verifySuiteClasses(int suiteId, com.sun.midp.midletsuite.MIDletSuiteStorage suiteStorage)Schedule suite classes verification to be done by a new VM started
as soon as the current VM will be terminated.
if (Logging.REPORT_LEVEL <= Logging.INFORMATION) {
Logging.report(Logging.INFORMATION, LogChannels.LC_AMS,
"Queue start of the suite verifier MIDlet");
}
String jarPath = suiteStorage.getMidletSuiteJarPath(suiteId);
MIDletSuiteUtils.executeWithArgs(
MIDletSuite.INTERNAL_SUITE_ID,
Constants.SUITE_VERIFIER_MIDLET,
Resource.getString(
ResourceConstants.CLASS_VERIFIER_APPLICATION),
String.valueOf(suiteId), jarPath, null
);
return null;
|