com.sun.jini.phoenix
Class MonitorPermission

java.lang.Object
  extended by java.security.Permission
      extended by net.jini.security.AccessPermission
          extended by com.sun.jini.phoenix.MonitorPermission
All Implemented Interfaces:
Serializable, Guard

public final class MonitorPermission
extends AccessPermission

Represents permissions that can be used to express the access control policy for the ActivationMonitor remote object exported with BasicJeriExporter. This class can be passed to BasicInvocationDispatcher, and then used in security policy permission grants.

This permission class can also be used to grant permission to invoke the method ActivationGroup.activeObject, ActivationGroup.inactiveObject , or ActivationGroup.inactive.

An instance contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't. The convention is that the target name is the fully qualified name of the remote method being invoked. Wildcard matches are supported using the syntax specified by AccessPermission.

The possible target names for the activation monitor are:

Permission Target Name What the Permission Allows Risks of Allowing this Permission
ActivationMonitor.activeObject invoking ActivationMonitor.activeObject The caller can cause an object to be treated as active by the activation system and can inject the proxy for that object that will be returned by the activator, if it knows the activation identifier.
ActivationMonitor.inactiveGroup invoking ActivationMonitor.inactiveGroup The caller can cause an activation group to be treated as inactive by the activation system if it knows the activation group identifier and the incarnation.
ActivationMonitor.inactiveObject invoking ActivationMonitor.inactiveObject The caller can cause an active object to be treated as inactive by the activation system if it knows the activation identifier.

Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
Serialized Form

Constructor Summary
MonitorPermission(String name)
          Creates an instance with the specified name.
 
Method Summary
 
Methods inherited from class net.jini.security.AccessPermission
equals, getActions, hashCode, implies
 
Methods inherited from class java.security.Permission
checkGuard, getName, newPermissionCollection, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitorPermission

public MonitorPermission(String name)
Creates an instance with the specified name.

Parameters:
name - the target name


Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.