|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
javax.tv.service.ReadPermission
public final class 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(String locator,
String actions)
Creates a new ReadPermission object for a locator
with the given external form. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Checks two ReadPermission objects for equality. |
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(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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReadPermission(Locator locator)
locator
- The locator. Null indicates permission for all locators.public ReadPermission(String locator, 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(Permission p)
More specificially, this method returns true if:
implies
in class Permission
p
- The permission to check against.
true
if the specified permission is
implied by this object, false
if not.public boolean equals(Object other)
equals
in class 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.Object.hashCode()
,
Hashtable
public int hashCode()
hashCode
in class Permission
Object.equals(java.lang.Object)
,
Hashtable
public String getActions()
getActions
in class Permission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |