public final class SharedActivationPolicyPermission extends Permission implements Serializable
Permission
class used by the
service starter
package. This class takes a policy string argument that follows the
matching semantics defined by FilePermission
. The
ActivateWrapper
class explicitly checks to see if the service's
import codebase has been granted access to service's associated policy
file in the shared VM's policy.
An example grant is:
This grant allows services usinggrant codebase "file:install_dir/lib/fiddler.jar" { permission org.apache.river.start.SharedActivationPolicyPermission "policy_dir${/}policy.fiddler"; };
install_dir/lib/fiddler.jar
for their
import codebase to use
policy_dir${/}policy.fiddler
for their
policy file, where install_dir is the installation
directory of the JGDMS release and policy_dir is the
pathname to the directory containing the policy file.Constructor and Description |
---|
SharedActivationPolicyPermission(AtomicSerial.GetArg arg) |
SharedActivationPolicyPermission(String policy)
Constructor that creates a
SharedActivationPolicyPermission with the specified name. |
SharedActivationPolicyPermission(String policy,
String action)
Constructor that creates a
SharedActivationPolicyPermission with the specified name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two instances are equal if they have the same name.
|
String |
getActions() |
int |
hashCode() |
boolean |
implies(Permission p) |
PermissionCollection |
newPermissionCollection() |
checkGuard, getName, toString
public SharedActivationPolicyPermission(String policy)
SharedActivationPolicyPermission
with the specified name.
Delegates policy
to supertype.policy
- public SharedActivationPolicyPermission(String policy, String action)
SharedActivationPolicyPermission
with the specified name.
This constructor exists for use by the Policy
object
to instantiate new Permission objects. The action
argument is currently ignored.public SharedActivationPolicyPermission(AtomicSerial.GetArg arg) throws IOException
IOException
public boolean implies(Permission p)
implies
in class Permission
public boolean equals(Object obj)
equals
in class Permission
public int hashCode()
hashCode
in class Permission
public String getActions()
getActions
in class Permission
public PermissionCollection newPermissionCollection()
newPermissionCollection
in class Permission
Copyright © 2016–2018. All rights reserved.