| java.lang.Object com.sun.midp.security.SecurityToken
SecurityToken | final public class SecurityToken (Code) | | Contains methods to get various security state information of the currently
running MIDlet suite.
|
Field Summary | |
final public static String | STD_EX_MSG The standard security exception message. |
Constructor Summary | |
| SecurityToken(SecurityToken securityToken, byte[][] ApiPermissions) Creates a security domain with a list of permitted actions or no list
to indicate all actions. |
Method Summary | |
public void | checkIfPermissionAllowed(int permission) Check to see the suite has the ALLOW level for specific permission. | public void | checkIfPermissionAllowed(int permission, String exceptionMsg) Check to see the suite has the ALLOW level for specific permission. |
STD_EX_MSG | final public static String STD_EX_MSG(Code) | | The standard security exception message.
|
SecurityToken | SecurityToken(SecurityToken securityToken, byte[][] ApiPermissions)(Code) | | Creates a security domain with a list of permitted actions or no list
to indicate all actions. The caller must be have permission for
Permissions.MIDP or be the first caller of
the method for this instance of the VM.
Parameters: securityToken - security token of the caller, can be null forthe first caller Parameters: ApiPermissions - for the token exception: SecurityException - if caller is not permitted to call thismethod |
checkIfPermissionAllowed | public void checkIfPermissionAllowed(int permission)(Code) | | 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.
Parameters: permission - permission ID from com.sun.midp.security.Permissions exception: SecurityException - if the permission is notallowed by this token |
checkIfPermissionAllowed | public void checkIfPermissionAllowed(int permission, String exceptionMsg)(Code) | | 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.
Parameters: permission - permission ID from com.sun.midp.security.Permissions Parameters: exceptionMsg - message if a security exception is thrown exception: SecurityException - if the permission is notallowed by this token |
|
|