FileDocCategorySizeDatePackage
InstallInfo.javaAPI DocphoneME MR2 API (J2ME)5376Wed May 02 18:00:06 BST 2007com.sun.midp.midletsuite

InstallInfo

public class InstallInfo extends Object
Information about a MIDlet that is to be installed.

Fields Summary
public int
id
What ID the installed suite is stored by.
public String
jadUrl
URL of the JAD.
public String
jarUrl
URL of the JAR.
public String
jarFilename
Name of the downloaded MIDlet suite jar file.
public int
expectedJarSize
How big the JAD says the JAR is.
public String
suiteName
Name of the suite.
public String
suiteVendor
Vendor of the suite.
public String
suiteVersion
Version of the suite.
public String
description
Description of the suite.
public String[]
authPath
Authorization path, staring with the most trusted CA authorizing the suite, for secure installing.
public String
domain
Security domain of the suite, for secure installing.
public boolean
trusted
Flag for trusted suites. If true the system trust icon is displayed.
public byte[]
verifyHash
Hash value of the suite with preverified classes
Constructors Summary
public InstallInfo(int theId)
Constructor for InstallInfo to be called when storing a new suite.

        id = theId;
    
Methods Summary
public java.lang.String[]getAuthPath()
Gets the authoriztion path of this suite. The path starts with the most trusted CA that authorized this suite.

return
array of CA names or null if the suite was not signed

        if (authPath == null) {
            return authPath;
        }

        String[] result = new String[authPath.length];

        System.arraycopy(authPath, 0, result, 0, authPath.length);

        return result;
    
public java.lang.StringgetCA()
Gets the name of CA that authorized this suite.

return
name of a CA or null if the suite was not signed

        if (authPath == null || authPath.length == 0) {
            return null;
        }

        return authPath[0];
    
public java.lang.StringgetDownloadUrl()
Gets the URL that the suite was downloaded from.

return
URL of the JAD, or JAR for a JAR only suite, never null, even in development environments

        String url = getJadUrl();

        if (url != null) {
            return url;
        }

        return getJarUrl();
    
public intgetID()
Gets the unique ID of the suite.

return
suite ID

        return id;
    
public java.lang.StringgetJadUrl()
Gets the JAD URL of the suite. This is only for the installer.

return
URL of the JAD can be null

        return jadUrl;
    
public java.lang.StringgetJarUrl()
Gets the JAR URL of the suite. This is only for the installer.

return
URL of the JAR, never null, even in development environments

        return jarUrl;
    
public java.lang.StringgetSecurityDomain()
Gets the security domain of this suite.

return
name of a security domain

        return domain;
    
public final byte[]getVerifyHash()
Gets hash value for the suite with all classes successfully verified during the suite installation, otherwise null value will be returned

return
suite hash value

        return verifyHash;
    
public booleanisTrusted()
Indicates if this suite is trusted. (not to be confused with a domain named "trusted", this is used to determine if a trusted symbol should be displayed to the user and not used for permissions)

return
true if the suite is trusted false if not

        return trusted;
    
native voidload()
Populates this InstallInfo instance from persistent store.

throws
IOException if the information cannot be read