org.dvb.spi
Class ProviderPermission

java.lang.Object
  extended byjava.security.Permission
      extended byjava.security.BasicPermission
          extended byorg.dvb.spi.ProviderPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public class ProviderPermission
extends java.security.BasicPermission

This class is for applications which wish to be able to install providers. A ProviderPermission contains a name and an action string.

The permission name is the fully qualified class name of the provider class to be installed. Hence applications which can install more than one provider will have multiple instances of this permission.

The actions list shall either be "xlet" or "system". "xlet" means the right to install the provider as an xlet bound provider and "system" as a system bound provider. No checking shall be performed on whether the specified class name is consistent with the action.

See Also:
Serialized Form

Constructor Summary
ProviderPermission(java.lang.String name)
          Creates a new ProviderPermission with the specified name.
ProviderPermission(java.lang.String name, java.lang.String actions)
          Creates a new ProviderPermission object with the specified name.
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, 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

ProviderPermission

public ProviderPermission(java.lang.String name)
Creates a new ProviderPermission with the specified name. The name is the symbolic name of the ProviderPermission.

Parameters:
name - the name of the ProviderPermission

ProviderPermission

public ProviderPermission(java.lang.String name,
                          java.lang.String actions)
Creates a new ProviderPermission object with the specified name. The name is the symbolic name of the ProviderPermission. The actions string should be either "xlet" or "system". This constructor exists for use by the Policy object to instantiate new Permission objects.

Parameters:
name - the name of the ProviderPermission
actions - the requested actions