Version 12

    This is the one stop article for security design in JBoss AS7/EAP6+.







    This architecture diagram is a rough diagram which depicts the various subsystems and interfaces used in JBossAS7/JBossEAP6.

    The "AS Platform Security Component" depicts the security integration code that exists in JBossAS7+/JBoss EAP6. This integration layer may use the security functionality provided by the PicketBox library.



    Domain Model

    JBoss AS7 : Security Domain Model


    Securing Passwords

    JBoss AS7 Securing Passwords

    Management Layer Security


    Default HTTP Interface Security

    Default Native Interface Security

    Security Realms

    Access control notes

    RBAC Usecases


    Security Domains


    The mapping of shortened names for login modules to the standard login modules available in JBoss AS is provided below.  The latest is always available in the class


    NameActual Login Module














    Using custom login module

    Just write the FQCN in the code attribute and it should work out of the box.


    To place the custom login module class files, you can place them in a jar and put it either:

    • application classpath of your web archive (war) or ejb jar or enterprise archive (ear)  OR
    • separate module under the modules directory.



    Deploying dynamic security domains


    Marcus Moyses talks about it here.  You have to use the CLI. The command is one line.


    You can add it via CLI using:

    Deploying Custom Tomcat Authenticators in AS7


    Thanks to Darran Lofthouse for the sample. Add the valve configuration into the jboss-web.xml of your web archive.



    Note that this is a general pattern to configure tomcat valves in JBoss AS7. Configure them in jboss-web.xml


    One more example:



    JCA - Datasource Security

    Historically, the JCA login modules in JBoss AS have been described here:  [This information is primarily for JBoss AS5/6] 

    But you can get an idea on the login modules.


    Here is an example of a security domain that is referenced by a data source:


     <security-domain name="DsRealm" cache-type="default">
                <login-module code="ConfiguredIdentity" flag="required">
                     <module-option name="userName" value="sa"/>
                     <module-option name="principal" value="sa"/>
                     <module-option name="password" value="sa"/>

    Remember, you can mask the password by using the vault facility in AS71.


    How would this get used?  Example security-ds.xml is below.

    <?xml version="1.0" encoding="UTF-8"?>
         <datasource jndi-name="java:jboss/datasources/securityDs"
              <new-connection-sql>select current_user()</new-connection-sql>



    Security Auditing




    JACC (JSR-115) on JBoss AS7.1



    Java Security Manager

    JBoss AS7: Security : Running under a Java Security Manager

    HornetQ (Messaging) Security


    Web Security


    Web Services Security

    JBossWS Authentication

    JBossWS Secure Transport


    JAXR Security

            Please see  for an overview of JAXR.

            JBoss AS7+/EAP do not carry any UDDI registries.  We provide JAXR Client API and Provider.  Use JSSE settings to communicate with the external UDDI registry over X509.



    Single Sign On



    Where is JaasSecurityDomain in AS7?

    It has been replaced by the jsse xml element in the security subsystem configuration.


    Additional Reference


    JBoss AS Security Subsystem Configuration




    Running JBoss AS7 under a Java Security Manager

    Choosing SSO for your JBoss Application Server