Methods Summary |
---|
public void | addProperty(java.lang.String key, java.lang.String value)Add a property to the suite.
|
public void | checkForPermission(int permission, java.lang.String resource)Check for permission and throw an exception if not allowed.
May block to ask the user a question.
|
public void | checkIfPermissionAllowed(int permission)Check to see the suite has the ALLOW level for specific permission.
This is used for by internal APIs that only provide access to
trusted system applications.
Only trust this method if the object has been obtained from the
Scheduler of the suite.
|
public int | checkPermission(java.lang.String permission)Get the status of the specified permission.
If no API on the device defines the specific permission
requested then it must be reported as denied.
If the status of the permission is not known because it might
require a user interaction then it should be reported as unknown.
|
public java.lang.String | getCA()Gets the name of Certificate Authority (CA) that authorized this suite.
|
public java.lang.String | getDownloadUrl()The URL that the suite was downloaded from.
|
public java.lang.String | getInitialMIDletClassname()Get the classname of the initial MIDlet to run.
|
public java.lang.String | getJadUrl()The JAD URL of the suite. This is only for the installer.
|
public java.lang.String | getJarUrl()The JAR URL of the suite. This is only for the installer.
|
public int | getNumberOfMIDlets()Provides the number of of MIDlets in this suite.
|
public byte[][] | getPermissions()Gets list of permissions for this suite.
|
public java.lang.String | getProperty(java.lang.String key)Get a property of the suite. A property is an attribute from
either the application descriptor or JAR Manifest.
|
public int | getPushInterruptSetting()Gets push setting for interrupting other MIDlets.
Reuses the Permissions.
|
public byte[] | getResource(java.lang.String name)Get a named resource out of the JAR of this MIDlet suite.
|
public java.lang.String | getStorageName()Gets the unique name of vendor and suite.
|
public java.lang.String | getStorageRoot()Gets the path root of any file this suite.
Has any needed file separators appended.
|
public int | getStorageUsed()Get the amount of storage on the device that this suite is using.
This includes the JAD, JAR, management data, and RMS.
|
public boolean | isRegistered(java.lang.String midletName)Indicates if the named MIDlet is registered in the suite
with MIDlet-<n> record in the manifest or
application descriptor.
|
public boolean | isTrusted()Indicates if this suite is trusted.
(not to be confused with a domain named "trusted",
this used to determine if a trusted symbol should be displayed
to the user and not used for permissions)
|
public boolean | permissionToInterrupt(java.lang.String connection)Ask the user want to interrupt the current MIDlet with
a new MIDlet that has received network data.
|
public void | saveSettings()Save any the settings (security or others) that the user may have
changed. Normally called by the scheduler after
the last running MIDlet in the suite is destoryed.
However it could be call during a suspend of the VM so
that persisent settings of the suite can be perserved.
|