FileDocCategorySizeDatePackage
VerifierImpl.javaAPI DocphoneME MR2 API (J2ME)2654Wed May 02 18:00:08 BST 2007com.sun.midp.installer

VerifierImpl

public class VerifierImpl extends Object implements Verifier
Verifier to use when the crypto code is absent. Doesn't do the real verification of suite's signature.

Fields Summary
Constructors Summary
public VerifierImpl(InstallState installState)
Constructor.

param
midletSuite midlet suite to verify

    
Methods Summary
public java.lang.StringgetSecurityDomainName(java.lang.String ca)
Gets the security domain name for this MIDlet Suite from storage.

param
ca CA of an installed suite
return
name of the security domain for the MIDlet Suite

        return Permissions.UNIDENTIFIED_DOMAIN_BINDING;
    
public booleanisJadSigned()
Checks to see if the JAD has a signature, but does not verify the signature. This is a place holder the the Secure Installer and just returns false.

return
true if the JAD has a signature

        return false;
    
public java.lang.String[]verifyJar(com.sun.midp.io.j2me.storage.RandomAccessStream jarStorage, java.lang.String jarFilename)
Verifies a Jar. Post any error back to the server.

param
jarStorage System store for applications
param
jarFilename name of the jar to read
exception
IOException if any error prevents the reading of the JAR
exception
InvalidJadException if the JAR is not valid

        return null;