Methods Summary |
---|
public void | checkForPermission(int permission, java.lang.String resource, java.lang.String extraValue)Checks for permission and throw an exception if not allowed.
May block to ask the user a question.
suite.checkForPermission(permission, resource, extraValue);
|
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.
suite.checkForPermission(permission, resource);
|
public void | checkIfPermissionAllowed(int permission)
return; // trusted, don't throw SecurityException.
|
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.
return suite.checkPermission(permission);
|
public void | close()Close the opened MIDletSuite
suite.close();
|
public int | getID()Gets the unique ID of the suite.
return suite.getID();
|
public java.lang.String | getMIDletName(java.lang.String className)Get the name of a MIDlet to display to the user.
return suite.getMIDletName(className);
|
public byte[] | getPermissions()Gets list of permissions for this suite.
return suite.getPermissions();
|
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.
return suite.getProperty(key);
|
public byte | getPushInterruptSetting()Gets push setting for interrupting other MIDlets.
Reuses the Permissions.
return suite.getPushInterruptSetting();
|
public int | getPushOptions()Gets push options for this suite.
return suite.getPushOptions();
|
public boolean | isEnabled()Determine if the a MIDlet from this suite can be run. Note that
disable suites can still have their settings changed and their
install info displayed.
return suite.isEnabled();
|
public boolean | isRegistered(java.lang.String midletClassName)Indicates if the named MIDlet is registered in the suite
with MIDlet-<n> record in the manifest or
application descriptor.
return suite.isRegistered(midletClassName);
|
public boolean | isTrusted()Indicates if this suite is trusted.
(not to be confused with a domain named "trusted",
this is used for extra checks beyond permission checking)
return suite.isTrusted();
|
public boolean | isVerified()Check whether the suite classes are preverified and
the suite content hasn't been changed since installation
return suite.isVerified();
|
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.
return suite.permissionToInterrupt(connection);
|
public void | setTempProperty(com.sun.midp.security.SecurityToken token, java.lang.String key, java.lang.String value)Replace or add a property to the suite for this run only.
suite.setTempProperty(token, key, value);
|