public class JWSACCMain extends Object implements Runnable
This class assigns security permissions needed by the app server code and by the app client code, then starts the regular app client container.
Note that any logic this class executes that requires privileged access must occur either: - from a class in the signed jar containing this class, or - after setPermissions has been invoked. This is because Java Web Start grants elevated permissions only to the classes in the appserv-jwsacc-signed.jar at the beginning. Only after setPermissions has been invoked can other app server-provided code run with all permissions.
Constructor and Description |
---|
JWSACCMain(String[] args)
Creates a new instance of JWSMain
|
Modifier and Type | Method and Description |
---|---|
static int |
firstFreePolicyIndex()
Locates the first free policy.url.x setting.
|
static ClassPathManager |
getClassPathManager()
Return the class path manager appropriate to the current version.
|
static void |
main(String[] args) |
static void |
refreshPolicy(File policyFile)
Refreshes the current policy object using the contents of the specified file
as additional policy.
|
void |
run() |
public JWSACCMain(String[] args)
public static void main(String[] args)
args
- the command line argumentspublic static int firstFreePolicyIndex()
public static void refreshPolicy(File policyFile)
policyFile
- the file containing additional policypublic static ClassPathManager getClassPathManager() throws ClassNotFoundException, NoSuchMethodException
ClassNotFoundException
NoSuchMethodException
Copyright © 2020. All rights reserved.