|
Java 2 Platform, Micro Edition Content Handler API v1.0.1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission javax.microedition.content.ContentHandlerPermission
This class is for Content Handler permissions. The ContentHandlerPermission
class must be present if the class java.security.Permission
class is present.
A ContentHandlerPermission
uses only actions.
The resource name is unused, the getName
returns null
.
The permissible actions, description and risks are listed in the table below:
Action | Description | Risks |
---|---|---|
register_static | Allows registration of a content handler in the packaging of the application. The application may be called to handle content. | There is a risk of confusion or ambiguity in the selection of the application to handle content of a particular type, suffix, or ID. |
register_dynamic | Allows registration of a content handler using
Registry.register .
The application may be called to handle content. |
There is a risk of confusion or ambiguity in the selection of the application to handle content of a particular type, suffix, or ID. |
Registry.register
,
Permission
Constructor Summary | |
ContentHandlerPermission(java.lang.String actions)
Creates a new instance of ContentHandlerPermission. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two ContentHandlerPermission objects for equality. |
java.lang.String |
getActions()
Returns the canonical string representation of the actions. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(java.security.Permission p)
Checks if the specified permission is "implied" by this object. |
Methods inherited from class java.security.Permission |
getName, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ContentHandlerPermission(java.lang.String actions)
actions
- one or more actions separated by comma (",").
Valid actions are listed in the Actions Table.
Duplicate actions are ignored.
java.lang.IllegalArgumentException
- if actions
is empty
or contains actions that are not listed in the
Actions Table.
java.lang.NullPointerException
- if actions
is
null
.Method Detail |
public java.lang.String getActions()
public int hashCode()
getActions().hashCode()
.
public boolean equals(java.lang.Object obj)
obj.getActions()
is equal to this.getActions()
and obj.getName()
is equal to this.getName()
.
obj
- the object we are testing for equality with this object.
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
p
- the object to check against.
true
if the passed permission is implied by this
permission, false
otherwise.
|
Maintenance Release September 17, 2009 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |