com.sun.jini.tool.envcheck.plugins
Class CheckJsseProps
java.lang.Object
  
com.sun.jini.tool.envcheck.AbstractPlugin
      
com.sun.jini.tool.envcheck.plugins.CheckJsseProps
- All Implemented Interfaces: 
 - Plugin
 
public class CheckJsseProps
- extends AbstractPlugin
 
Checks whether various security oriented configuration files exist and are
 accessible.  content verification is done only for the login configuration,
 and is limited to verifying that
 javax.security.auth.login.Configuration.getConfiguration() can
 be called successfully. The -security must be included on the
 command line for these checks to be done. The checks performed include:
 
 - verify that the security provider used is an instance of 
     
DynamicPolicyProvider
  - verify that the property 
javax.net.ssl.trustStore is defined
     and its value is the name of a readable non-directory file
  - check whether 
com.sun.jini.discovery.x500.trustStore is
     defined, and if so that its value is the name of a readable non-directory
     file
  - check whether 
javax.net.ssl.keyStore is defined, and if
     so that its value is the name of a readable non-directory file
  - obtain the list of login configuration files which the system will will
     attempt to load (the value of the
     
java.security.auth.login.config system property and the
     login.config.url.[n] entries in the security properties, or
     the users .java.login.config file if no other source is
     defined).  Verify that at least one such entry exists. Verify that all
     defined configuration files exists, are readable, and are not
     directories.  Verify that
     javax.security.auth.login.Configuration.getConfiguration()
     can be called successfully.
  
 These checks are performed for the command line being analyzed and
 for the activation group if one exists.
 
 
| 
Method Summary | 
 boolean | 
isPluginOption(String opt)
 
          Determine whether arg is a plugin-specific command-line
 option for this plugin and save any necessary state. | 
 void | 
run(EnvCheck envCheck)
 
          Check the security files for the current VM and for the group
 VM if there is a SharedActivationGroupDescriptor. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CheckJsseProps
public CheckJsseProps()
isPluginOption
public boolean isPluginOption(String opt)
- Description copied from interface: 
Plugin 
- Determine whether 
arg is a plugin-specific command-line
 option for this plugin and save any necessary state. State should
 be saved in static fields since plugin instances may not be cached.
- Specified by:
 isPluginOption in interface Plugin- Overrides:
 isPluginOption in class AbstractPlugin
 
- Parameters:
 opt - the command-line option to examine
- Returns:
 - true if the plugin supports this option
 
 
 
run
public void run(EnvCheck envCheck)
- Check the security files for the current VM and for the group
 VM if there is a 
SharedActivationGroupDescriptor.
- Parameters:
 envCheck - a reference to the plugin container
 
 
Copyright © GigaSpaces.