Reputation: 7511
Is there any way to retrieve the security domain that an application is running under other than by parsing the jboss-web.xml
?
That is, the value specified under:
<security-domain>java:/jaas/jboss-web-policy</security-domain>
Upvotes: 0
Views: 184
Reputation: 1765
You can use the SecurityContextAssociation
String securityDomain = org.jboss.security.SecurityContextAssociation.getSecurityContext().getSecurityDomain()
Upvotes: 1