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

Verifier

public interface Verifier
Interface that must be implemented by any class that is used to verify a signature of the midlet suite.

Fields Summary
public static final String
SIG_PROP
MIDlet property for the application signature
public static final String
CERT_PROP
MIDlet property for the content provider certificates
Constructors Summary
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

public booleanisJadSigned()
Checks to see if the JAD has a signature, but does not verify the signature.

return
true if the JAD has a signature

public java.lang.String[]verifyJar(com.sun.midp.io.j2me.storage.RandomAccessStream jarStorage, java.lang.String jarFilename)
Verifies a Jar. On success set the name of the domain owner in the install state. 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 or the provider certificate is missing