Security Manager HOWTO??

L

lordy

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
 
E

EJP

lordy said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,089
Members
48,773
Latest member
Kaybee

Latest Threads

Top