This content has been marked as final.
Show 3 replies
-
1. Re: programmatic access to current security domain
juha Dec 1, 2003 6:22 AM (in response to doomsday)What information do you exactly mean when you say 'security context' ?
-- Juha -
2. Re: programmatic access to current security domain
doomsday Dec 1, 2003 6:27 AM (in response to doomsday)I meant the security context specified in file "WEB-INF\jboss-web.xml".
Example:
<jboss-web>
<security-domain>java:/jaas/testdomain</security-domain>
</jboss-web>
I want to access the name of the security domain, named here "testdomain".
TIA,
Doomsday -
3. Re: programmatic access to current security domain
lekkim Dec 1, 2003 4:51 PM (in response to doomsday)I don't think it is possible with the security manager mbean as it is now since the security is a setting declared at deployment.
An idear as to how you could find out could be, as the security managers are located in JNDI under java:/jaas/<security manager name> - loop the contexts looking for the active user to extract the information from there.
lekkim