Evan Knowles
Evan Knowles

Reputation: 7511

Any way to retrieve current JBoss security-domain?

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

Answers (1)

Kenneth Clark
Kenneth Clark

Reputation: 1765

You can use the SecurityContextAssociation

String securityDomain = org.jboss.security.SecurityContextAssociation.getSecurityContext().getSecurityDomain()

Upvotes: 1

Related Questions