Package com.sun.jini.start
Class SharedActivationPolicyPermission
java.lang.Object
java.security.Permission
com.sun.jini.start.SharedActivationPolicyPermission
- All Implemented Interfaces:
Serializable,Guard
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:
grant codebase "file:install_dir/lib/fiddler.jar" {
permission com.sun.jini.start.SharedActivationPolicyPermission
"policy_dir${/}policy.fiddler";
};
This grant allows services using 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
starter kit and policy_dir is the pathname to the directory containing the
policy file.- Author:
- Sun Microsystems, Inc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor that creates aSharedActivationPolicyPermissionwith the specified name.SharedActivationPolicyPermission(String policy, String action) Constructor that creates aSharedActivationPolicyPermissionwith the specified name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo instances are equal if they have the same name.inthashCode()booleanMethods inherited from class java.security.Permission
checkGuard, getName, toString
-
Constructor Details
-
SharedActivationPolicyPermission
Constructor that creates aSharedActivationPolicyPermissionwith the specified name. Delegatespolicyto supertype. -
SharedActivationPolicyPermission
Constructor that creates aSharedActivationPolicyPermissionwith the specified name. This constructor exists for use by thePolicyobject to instantiate new Permission objects. Theactionargument is currently ignored.
-
-
Method Details
-
implies
- Specified by:
impliesin classPermission
-
equals
Two instances are equal if they have the same name.- Specified by:
equalsin classPermission
-
hashCode
public int hashCode()- Specified by:
hashCodein classPermission
-
getActions
- Specified by:
getActionsin classPermission
-
newPermissionCollection
- Overrides:
newPermissionCollectionin classPermission
-