com.sun.jini.tool.envcheck.plugins
Class CheckJSKPolicy
java.lang.Object
com.sun.jini.tool.envcheck.AbstractPlugin
com.sun.jini.tool.envcheck.plugins.CheckJSKPolicy
- All Implemented Interfaces:
- Plugin
public class CheckJSKPolicy
- extends AbstractPlugin
Check whether jsk-policy.jar
is installed in the extensions
directory. For both the current VM and for the group VM (if any) load
net.jini.security.policy.DynamicPolicyProvider
and verify that
it was loaded with the extension classloader by verifying that the parent
loader is the bootstrap loader (null
). The group VM is checked
only if the descriptors getServerCommand()
method returns
non-null
Method Summary |
private void |
checkPolicy(SharedActivationGroupDescriptor gd)
Check the policy for the command line or group. |
void |
run(EnvCheck envCheck)
Perform the check both for the current VM, and for the group VM if a
SharedActivationGroupDescriptor is available from the plugin
container. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
envCheck
private EnvCheck envCheck
codebase
private String codebase
provider
private static String provider
CheckJSKPolicy
public CheckJSKPolicy()
run
public void run(EnvCheck envCheck)
- Perform the check both for the current VM, and for the group VM if a
SharedActivationGroupDescriptor
is available from the plugin
container.
- Parameters:
envCheck
- a reference to the driver instance.
checkPolicy
private void checkPolicy(SharedActivationGroupDescriptor gd)
- Check the policy for the command line or group. If
gd
is null
, the policy of the command line being analyzed
is checked.
- Parameters:
gd
- the group descriptor, or null
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.