|
Java TV(tm) API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.Permission | +--javax.tv.service.ReadPermission
This class represents permission to read the data referenced by a given
Locator
.
Constructor Summary | |
ReadPermission(Locator locator)
Creates a new ReadPermission object for the specified locator. |
|
ReadPermission(java.lang.String locator,
java.lang.String actions)
Creates a new ReadPermission object for a locator
with the given external form. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Checks two ReadPermission objects for equality. |
java.lang.String |
getActions()
Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for a ReadPermission. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(java.security.Permission p)
Checks if this ReadPermission 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 ReadPermission(Locator locator)
locator
- The locator. Null indicates permission for all locators.public ReadPermission(java.lang.String locator, java.lang.String actions)
ReadPermission
object for a locator
with the given external form. The actions
string
is currently unused and should be null
. This
constructor exists for use by the Policy
object to
instantiate new Permission
objects.locator
- The external form of the locator. The string
"*" indicates all locators.actions
- Should be null
.Method Detail |
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
implies
in class java.security.Permission
p
- The permission to check against.true
if the specified permission is
implied by this object, false
if not.public boolean equals(java.lang.Object other)
equals
in class java.security.Permission
other
- the object we are testing for equality with this
object.true
if other
is of
type ReadPermission
and has the same locator as
this ReadPermission
object.public int hashCode()
hashCode
in class java.security.Permission
public java.lang.String getActions()
getActions
in class java.security.Permission
|
Java TV(tm) API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |