public final class ReadPermission extends Permission implements Serializable
Locator
.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
checkGuard, getName, newPermissionCollection, toString
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
.public boolean implies(Permission p)
More specifically, 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
Copyright © 2013 CableLabs. All Rights Reserved.