public final class SelectPermission extends Permission implements Serializable
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 and Description |
|---|
SelectPermission(Locator locator,
String actions)
Creates a new SelectPermission object for the specified locator.
|
SelectPermission(String locator,
String actions)
Creates a new SelectPermission object for a locator with the
given external form.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Checks two SelectPermission objects for equality.
|
String |
getActions()
Returns the canonical string representation of the actions.
|
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(Permission p)
Checks if this SelectPermission object "implies" the specified
permission.
|
checkGuard, getName, newPermissionCollection, toStringpublic SelectPermission(Locator locator, 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(String locator, 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.public boolean implies(Permission p)
implies in class Permissionp - The permission against which to check.true if the specified permission is
implied by this object, false if not.public boolean equals(Object other)
SelectPermission and has the
same Locator and actions string as this
object.equals in class Permissionother - 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()
hashCode in class Permissionpublic String getActions()
getActions in class PermissionCopyright © 2012 code4tv.com. All Rights Reserved.