JBoss Community

JBoss AS7 : Security Domain Model

created by Anil Saldhana in PicketBox Development - View the full document

ARTICLE In PROGRESS

 

JBoss AS 7.0 and beyond come with a new domain model where the configuration for the entire Application Server is centralized. This article will highlight the domain model settings for Security.

Locations of the domain model

Standalone Configuration

 

standalone/configuration/standalone.xml

 

Example of the security domain model

 

<subsystem xmlns="urn:jboss:domain:security:1.0">
    <security-domains>
        <security-domain name="other">
            <authentication>
                <login-module code="UsersRoles" flag="required" />
            </authentication>
        </security-domain>
    </security-domains>
    <security-properties>
      <property name="a" value="b" />
      <property name="c" value="d" />
    </security-properties>
</subsystem>

 

In the above example, we are defining a block for Security Domains.  In this case, we define a security domain "other". Underneath, we define the login module (UsersRolesLoginModule). Remember, we do not need to specify the fully qualified name of the login module.

 

We also define a block for properties that are set on java.security.Security.

Comment by going to Community

Create a new document in PicketBox Development at Community