org.dvb.application
Class AppsControlPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by org.dvb.application.AppsControlPermission
All Implemented Interfaces:
java.io.Serializable, java.security.Guard

public final class AppsControlPermission
extends java.security.BasicPermission

This class represents a Permission to control the lifecycle of another application.

See Also:
Serialized Form

Constructor Summary
AppsControlPermission()
          Creates a new AppsControlPermission.
AppsControlPermission(java.lang.String name, java.lang.String actions)
          Creates a new AppsControlPermission.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks for equality against this AppsControlPermission object.
 java.lang.String getActions()
          Returns the list of actions that had been passed to the constructor - it shall return null.
 int hashCode()
          Returns the hash code value for this object.
 boolean implies(java.security.Permission permission)
          Checks if this AppsControlPermission object "implies" the specified permission.
 
Methods inherited from class java.security.BasicPermission
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

AppsControlPermission

public AppsControlPermission()
Creates a new AppsControlPermission. There is a simple mapping between the Application control Permission requests and the way the AppsControlPermission are granted. This mapping is defined in the main body of the present document.


AppsControlPermission

public AppsControlPermission(java.lang.String name,
                             java.lang.String actions)
Creates a new AppsControlPermission. There is a simple mapping between the Application control Permission requests and the way the AppsControlPermission are granted. This mapping is defined in the main body of the present document. The actions string is currently unused and should be null. The name string is currently unused and should be empty. This constructor exists for use by the java.security.Policy object to instantiate new permission objects.

Parameters:
name - the name of the permission
actions - the actions string
Method Detail

getActions

public java.lang.String getActions()
Returns the list of actions that had been passed to the constructor - it shall return null.

Overrides:
getActions in class java.security.BasicPermission
Returns:
a null String.

implies

public boolean implies(java.security.Permission permission)
Checks if this AppsControlPermission object "implies" the specified permission.

Overrides:
implies in class java.security.BasicPermission
Parameters:
permission - the specified permission to check.
Returns:
true if and only if the specified permission is an instanceof AppsControlPermission

equals

public boolean equals(java.lang.Object obj)
Checks for equality against this AppsControlPermission object.

Overrides:
equals in class java.security.BasicPermission
Parameters:
obj - the object to test for equality with this AppsControlPermission object.
Returns:
true if and only if obj is an AppsControlPermission

hashCode

public int hashCode()
Returns the hash code value for this object.

Overrides:
hashCode in class java.security.BasicPermission
Returns:
the hash code value for this object.