org.dvb.application.storage
Class ApplicationStoragePermission

java.lang.Object
  |
  +--java.security.Permission
        |
        +--java.security.BasicPermission
              |
              +--org.dvb.application.storage.ApplicationStoragePermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public class ApplicationStoragePermission
extends java.security.BasicPermission

This class represents a permission to manage applications stored in the MHP terminal. An ApplicationStoragePermission contains a name representing the organisation_id whose applications can be managed and an actions list representing the permitted actions, i.e. store and/or remove applications.

The name of the permission contains the organisation_id represented in hexadecimal form without any "0x" prefix. When the application possesses this permission, it is able to initiate storage or removal of applications signalled with this organisation_id. If the application does not have the ApplicationStoragePermission granted with the same organisation_id as the application is signalled with when it tries to initiate either storing or removal of an application, the methods to store/remove will throw a SecurityException.

The actions string shall be one of the following :-

Since:
MHP1.1
See Also:
Serialized Form

Constructor Summary
ApplicationStoragePermission(java.lang.String name)
          Creates a new ApplicationStoragePermission with the specified name.
ApplicationStoragePermission(java.lang.String name, java.lang.String actions)
          Creates a new ApplicationStoragePermission 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

ApplicationStoragePermission

public ApplicationStoragePermission(java.lang.String name)
Creates a new ApplicationStoragePermission with the specified name. Permissions created with this constructor implicitly have the actions string set to "*".
Parameters:
name - the organisation_id whose applications can be managed. This is encoded in hexadecimal representation without any preceding "0x" prefix.

ApplicationStoragePermission

public ApplicationStoragePermission(java.lang.String name,
                                    java.lang.String actions)
Creates a new ApplicationStoragePermission object with the specified name. The name contains the organisation_id of the applications that can be managed and the actions String shall be either "store", "remove" or "*". Permission objects constructed with incorrectly encoded parameters do not represent any permission and are ignored by the platform.
Parameters:
name - the organisation_id whose applications can be managed. This is encoded in hexadecimal representation without any preceding "0x" prefix.
actions - Shall contain "store", "remove" or "*"