org.dvb.media
Class DripFeedPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DripFeedPermission

public DripFeedPermission(java.lang.String name)
Create a new DripFeedPermission.

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.

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.

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.

Parameters:
name - The name string is currently unused and should be empty
actions - The actions string is currently unused and should be null.
Method Detail

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.