I have an application that already has a config file that specifies
expected hosts and ports for various operations.
I don't want to duplicate this information in a .policy file as I know
this would cause some extra support calls :), but would
rather create a new SecurityManager using the settings from my existing
configuration file.
I cant seem to find a nice howto document on building up a Security
Manager. Do I sub-class it? OR pass a PermissionCollection of
SocketPermission's to an empty
Security Manager or what? Any pointers would be nice. Documentation
looks disjointed at the moment...
Cheers,
Lordy
EJP - 18 Jul 2006 02:27 GMT
> I have an application that already has a config file that specifies
> expected hosts and ports for various operations.
You would probably be better off creating a Policy class that
understands your config file and doing setPolicy() with that, using a
standard SecurityManager.