org.dvb.media
Class DripFeedPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.dvb.media.DripFeedPermission
- All Implemented Interfaces:
- java.security.Guard, java.io.Serializable
- public class DripFeedPermission
- extends java.security.BasicPermission
This class represents a permission to access the drip feed mode.
- See Also:
- Serialized Form
Constructor Summary |
DripFeedPermission(java.lang.String name)
Create a new DripFeedPermission. |
DripFeedPermission(java.lang.String name,
java.lang.String actions)
Create a new DripFeedPermission. |
Method Summary |
boolean |
implies(java.security.Permission p)
Checks if the specified permission is "implied" by this object.
|
Methods inherited from class java.security.BasicPermission |
equals, getActions, hashCode, newPermissionCollection |
Methods inherited from class java.security.Permission |
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DripFeedPermission
public DripFeedPermission(java.lang.String name)
- Create a new DripFeedPermission.
- Parameters:
name
- the name string is currently unused and should be empty
DripFeedPermission
public DripFeedPermission(java.lang.String name,
java.lang.String actions)
- Create a new DripFeedPermission. This constructor is used by the policy class
to instantiate new permission objects.
- Parameters:
name
- The name string is currently unused and should be emptyactions
- The actions string is currently unused
and should be null.
implies
public boolean implies(java.security.Permission p)
- Checks if the specified permission is "implied" by this object.
Since name and actions are not used, the only check needed is
whether p is also a DripFeedPermission.
- Parameters:
p
- the permission to check against.
- Returns:
- true if the passed permission is equal to or implied by
this permission, false otherwise.