|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission javax.tv.service.selection.SelectPermission
SelectPermission
represents permission to perform a
select()
operation on a ServiceContext
.
A caller might have permission to select some content but not
others.
The actions
string is either "own" or "*". The
string "own" means the permission applies to your own service
context, acquired via
ServiceContextFactory.createServiceContext()
or
ServiceContextFactory.getServiceContext(javax.tv.xlet.XletContext)
.
The string "*" implies permission to these, plus permission for service
contexts obtained from all other sources.
Note that undefined actions strings may be provided to the
constructors of this class, but subsequent calls to
SecurityManager.checkPermission()
with the resulting
SelectPermission
object will fail.
Constructor Summary | |
SelectPermission(Locator locator,
java.lang.String actions)
Creates a new SelectPermission object for the specified locator. |
|
SelectPermission(java.lang.String locator,
java.lang.String actions)
Creates a new SelectPermission object for a locator with the given external form. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Checks two SelectPermission 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 this SelectPermission object "implies" the specified permission. |
Methods inherited from class java.security.Permission |
checkGuard, getName, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SelectPermission(Locator locator, java.lang.String actions)
locator
- The locator. A value of null
indicates permission for all locators.actions
- The actions string, as
detailed in the class description.public SelectPermission(java.lang.String locator, java.lang.String actions)
Policy
object to instantiate new Permission objects.
locator
- The external form of the locator. The string
"*" indicates all locators.actions
- The actions string, as
detailed in the class description.Method Detail |
public boolean implies(java.security.Permission p)
p
- The permission against which to check.
true
if the specified permission is
implied by this object, false
if not.public boolean equals(java.lang.Object other)
SelectPermission
and has the
same Locator
and actions string as this
object.
other
- The object to test for equality.
true
if other is a
SelectPermission
and has the same locator and
actions string as this
SelectPermission
object; false
otherwise.public int hashCode()
public java.lang.String getActions()
|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |