org.dvb.media
Class DripFeedPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.dvb.media.DripFeedPermission
- All Implemented Interfaces:
- java.io.Serializable, java.security.Guard
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 |
getClass, notify, notifyAll, wait, wait, wait |
DripFeedPermission
public DripFeedPermission(java.lang.String name)
- Create a new DripFeedPermission.
- Parameters:
name
- The value of the name parameter may be ignored by
implementations, and the value passed to the superclass may be a
non-empty string even when this constructor is invoked with an
empty string for the name parameter. Therefore, the getName
method may return the same non-empty string regardless of the
value passed in the constructor.
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 value of the name parameter may be ignored by
implementations, and the value passed to the superclass may be a
non-empty string even when this constructor is invoked with an
empty string for the name parameter. Therefore, the getName
method may return the same non-empty string regardless of the
value passed in the constructor.actions
- 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.
- Overrides:
implies
in class java.security.BasicPermission
- Parameters:
p
- the permission to check against.
- Returns:
- true if the passed permission is equal to or implied by
this permission, false otherwise.