com.sun.jini.tool.envcheck.plugins
Class CheckJSKPolicy

java.lang.Object
  extended by com.sun.jini.tool.envcheck.AbstractPlugin
      extended by 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


Nested Class Summary
static class CheckJSKPolicy.JSKPolicyTask
          The task which checks the group VM.
 
Field Summary
private  String codebase
           
private  EnvCheck envCheck
           
private static String provider
           
 
Constructor Summary
CheckJSKPolicy()
           
 
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 com.sun.jini.tool.envcheck.AbstractPlugin
getBundle, getString, getString, getString, getString, handleUnexpectedSubtaskReturn, isPluginOption, taskName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

envCheck

private EnvCheck envCheck

codebase

private String codebase

provider

private static String provider
Constructor Detail

CheckJSKPolicy

public CheckJSKPolicy()
Method Detail

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.