I want to make it so I can set my own implementation of SecurityManager to 
do a check before ALL method calls.

This way, people can plug their apps into my system and not have to make 
sure they write in those security checks themselves (and I wouldn't have to 
change the interposition classes).

Then All they have to do is set up permissions for it (in an XML file or 
smth).

So my SecurityManager would have a mapping like:

<class namespace="com.me.package" name="aClass">
     <method name="check" signature="{int, int}">
           <access level="read">
                <principal name="joe"/>
           </access>
     </method>
</class>

then i'd translate that into permissions. So on every call, i just look up 
the method (by namespace/signature or whatever) and see if they have rights.

This way, the writer of "aClass" does not have to call:
    SecurityManager sm = System.getSecurityManager();
    sm.checkXXX(....);

Anyone know if this is possible? (i.e. to have ANY call of a method to 
automatically invoke my securitymanager)

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to