Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Security Manager HOWTO??

Thread view: 
lordy - 17 Jul 2006 13:29 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.