|
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.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:
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)
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()
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 |
ing HTML relocated fr