public class CheckJSKPolicy extends AbstractPlugin
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
Modifier and Type | Class and Description |
---|---|
static class |
CheckJSKPolicy.JSKPolicyTask
The task which checks the group VM.
|
Modifier and Type | Field and Description |
---|---|
private String |
codebase |
private EnvCheck |
envCheck |
private static String |
provider |
Constructor and Description |
---|
CheckJSKPolicy() |
Modifier and Type | Method and Description |
---|---|
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. |
getBundle, getString, getString, getString, getString, handleUnexpectedSubtaskReturn, isPluginOption, taskName
private EnvCheck envCheck
private String codebase
private static String provider
public void run(EnvCheck envCheck)
SharedActivationGroupDescriptor
is available from the plugin
container.envCheck
- a reference to the driver instance.private void checkPolicy(SharedActivationGroupDescriptor gd)
gd
is null
, the policy of the command line being analyzed
is checked.gd
- the group descriptor, or null
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.