|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.tool.envcheck.AbstractPlugin
com.sun.jini.tool.envcheck.plugins.CheckPolicy
public class CheckPolicy
Check the security policy for existence, for valid syntax, and that it does
not grant AllPermissions
to all protection domains.
Nested Class Summary | |
---|---|
static class |
CheckPolicy.AllPermissionsTask
Task the check the policy in a child VM. |
Field Summary | |
---|---|
private EnvCheck |
envCheck
the plugin container |
Constructor Summary | |
---|---|
CheckPolicy()
|
Method Summary | |
---|---|
private void |
checkDescriptor(ServiceDescriptor d)
Check the policy file provided in any ServiceDescriptor |
private void |
checkProperty()
Check existence and accessibility of the policy file. |
private static String |
loadPolicy()
Load the policy and capture any error text generated. |
private boolean |
policyAccessible(String policy,
String source)
Check accessibility of the policy file. |
void |
run(EnvCheck envCheck)
Perform policy file checks for the current VM and all service descriptors. |
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 |
---|
private EnvCheck envCheck
Constructor Detail |
---|
public CheckPolicy()
Method Detail |
---|
public void run(EnvCheck envCheck)
envCheck
- a reference to the driver instance.private void checkProperty()
AllPermission
being granted. The syntax errors (and allpermissions) are checked
in a subtask to ensure that the policy has not already been loaded.
private static String loadPolicy()
getPolicy
must be the first one made in the
VM since subsequent calls to getPolicy
are silent
private boolean policyAccessible(String policy, String source)
policy
- the name of the policy filesource
- source of the policy file
true
if accessibleprivate void checkDescriptor(ServiceDescriptor d)
ServiceDescriptor
d
- the descriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |