org.ocap.system.MonitorAppPermission Maven / Gradle / Ivy
package org.ocap.system;
/**
* The MonitorAppPermission class represents permission to execute privileged
* operations only Monitor Application should be granted.
*
* A MonitorAppPermission consists of a permission name, representing
* a single privileged operation.
* The name given in the constructor may end in ".*" to represent
* all permissions beginning with the given string, such as "*"
* to allow all MonitorAppPermission operations, or
* "handler.*"
to only allow setting any handler.
*
* The following table lists all MonitorAppPermission permission names.
*
*
* Permission Name
* What the Permission Allows
* Description
*
*
*
* registrar
* Provides access to the Application Database by way of the AppRegistrar
* This permission allows the caller to add or remove applications from
* the Application Database.
*
*
*
* service
* Allows creation of an AbstactService
* Applications with this permission can create and manage their own service
* contexts and the services running in those service contexts.
*
*
*
* servicemanager
* Allows management of all services
* Applications with this permission can create their own service contexts
* and manage both their own and other service contexts and services.
*
*
* security
* Allows setting the {@link org.ocap.application.SecurityPolicyHandler}
* used by the AppManager
* This permission allows the application to register a SecurityPolicyHandler
* with the AppManager to determine the PermissionCollection granted to
* applications before they are run.
*
*
*
* reboot
* Initiates a system to reboot itself
* This permission allows the caller to request for a system reboot.
*
*
*
* systemevent
* Allows setting the error, resource depletion, or reboot handlers
* This permission allows the Monitor Application to be alerted upon
* system reboot, resource depletion, and error events.
*
*
*
* handler.appFilter
* Set a new black and white list to the system
* This permission allows the application to set a new black and
* white list, which the system uses to determine whether to accept or
* reject broadcasted applications on the receiver. Such control should
* only be granted to a monitor application.
*
*
*
* handler.resource
* Set a Resource Contention Handler
* Set a handler to resolve resource contention between two or more apps
* see {@link org.ocap.resource.ResourceContentionManager#setResourceContentionHandler}.
*
*
*
* handler.closedCaptioning
* Set closed-captioning preferences and control captioning.
* Allows monitor application to get a
* {@link org.ocap.media.ClosedCaptioningAttribute}
* and call methods in a
* {@link org.ocap.media.ClosedCaptioningControl}.
*
*
*
* filterUserEvents
* Filter user events
* This permission allows the user to filter user events.
*
*
*
* handler.eas
* Set preferences of Emergency Alert System (EAS) message
* representation.
* Allows monitor application to set preferences of EAS message
* representation and add a new EAShandler by calling
* {@link org.ocap.system.EASModuleRegistrar#registerEASHandler}.
*
*
*
* setVideoPort
* Allows enabling and disabling video port
* Allows monitor to call org.ocap.hardware.VideoOutputPort.enable() and
* org.ocap.hardware.VideoOutputPort.disable().
*
*
*
* podApplication
* Allows access to Specific Application Support Resource
* Allows Monitor Application to call org.ocap.system.SystemModuleRegistrar.
*
*
*
* signal.configured
* Allows monitor to signal implementation to resume boot processing after
* handlers have been set
* Allows monitor to call org.ocap.OcapSystem.monitorConfiguredSignal().
*
*
*
* storage
* Provides control of persistent storage devices and content stored therein
* Allows monitor to delete volumes it does not own, initialize
* {@link org.ocap.storage.StorageProxy} associated devices, make detachable devices ready
* for detaching or ready for use, and set file access permissions for
* any application accessible file or directory.
*
*
*
* properties
* Allows monitor to access ocap system properties
* Allows monitor to call read ocap properties that require monitor application permission.
*
*
*
* registeredapi.manager
* Provides access to network specific APIs
* Gives monitor ability to register and remove a registered API.
*
*
*
* vbifiltering
* Allows monitor application to filter VBI data.
* Allows monitor application to call a VBIFilterGroup constructor.
*
*
*
* codeDownload
* Allows monitor application to initiate a download, generally following
* a CVT signaling a deferred download
* Allow monitor application to call Host.codeDownload method.
*
*
*
* mediaAccess
* Allows monitor application to register MediaAccessHandler.
* Allows monitor application to call a
* MediaAccessHandlerRegistrar.setExternalTriggers(). Allows monitor
* application to call a
* MediaAccessConditionControl.conditionHasChanged().
*
*
*
* powerMode
* Allows an application to set the power mode.
* Applications with this permission can programmatically control the
* power mode of the device.
*
*
*
* environment.selection
* Allows monitor application to request the cable environment to become
* selected or deselected
* Allows monitor application to request the cable environment
* to become selected or deselected by calling Environment.select or
* Environment.deselect
*
*
*
* Other permissions may be added as necessary.
*/
public final class MonitorAppPermission extends java.security.BasicPermission
{
/**
* Constructor for the MonitorAppPermission
*
* @param name the name of this permission (see table in class description)
*/
public MonitorAppPermission (String name)
{
super(name);
}
}