|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
javax.tv.media.MediaSelectPermission
public final class MediaSelectPermission
This class represents permission to select, via a
MediaSelectControl, the content that a JMF Player
presents. A caller might have permission to select content
referenced by some locators, but not others.
| Constructor Summary | |
|---|---|
MediaSelectPermission(Locator locator)
Creates a new MediaSelectPermission object for the
specified Locator. |
|
MediaSelectPermission(String locator,
String actions)
Creates a new MediaSelectPermission object for a
Locator with the given external form. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Tests two MediaSelectPermission objects for equality. |
String |
getActions()
Reports the canonical string representation of the actions. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(Permission p)
Checks if this MediaSelectPermission "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 MediaSelectPermission(Locator locator)
MediaSelectPermission object for the
specified Locator.
locator - The locator for which to create the permission.
A value of null indicates permission for all
locators.
public MediaSelectPermission(String locator,
String actions)
MediaSelectPermission object for a
Locator with the given external form. The actions
string is currently unused and should be null.
This constructor is used by the Policy class 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)
MediaSelectPermission "implies" the
specified Permission. More specifically, this method returns true if:
implies in class Permissionp - The Permission to check against.
true if the specified
Permission is implied by this object;
false otherwise.public boolean equals(Object other)
other is of type
MediaSelectPermission, and has the same
Locator as this object.
equals in class Permissionother - The object to test for equality.
true if other is a
MediaSelectPermission, and has the same
Locator as this MediaSelectPermission.Object.hashCode(),
Hashtablepublic int hashCode()
hashCode in class PermissionObject.equals(java.lang.Object),
Hashtablepublic String getActions()
MediaSelectPermission.
getActions in class Permission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||