public class CheckPolicy extends AbstractPlugin
AllPermissions
to all protection domains.Modifier and Type | Class and Description |
---|---|
static class |
CheckPolicy.AllPermissionsTask
Task the check the policy in a child VM.
|
Modifier and Type | Field and Description |
---|---|
private EnvCheck |
envCheck
the plugin container
|
Constructor and Description |
---|
CheckPolicy() |
Modifier and Type | Method and Description |
---|---|
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.
|
getBundle, getString, getString, getString, getString, handleUnexpectedSubtaskReturn, isPluginOption, taskName
private EnvCheck envCheck
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 silentprivate boolean policyAccessible(String policy, String source)
policy
- the name of the policy filesource
- source of the policy filetrue
if accessibleprivate void checkDescriptor(ServiceDescriptor d)
ServiceDescriptor
d
- the descriptorCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.