From: <sco...@jb...> - 2005-05-11 15:22:52
|
There already is multiple namespace support in JBossXB. I use it in 4.0 for a login-config.xml document: | <?xml version="1.0" encoding="UTF-8"?> | <!-- A login-config.xml example that uses the extended schema and jbossxb | to marshall non-trival module-options. | --> | <policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns="http://www.jboss.org/j2ee/schema/jaas" | targetNamespace="http://www.jboss.org/j2ee/schema/jaas" | > | | <application-policy name="testXMLLoginModule"> | <authentication> | <login-module code="org.jboss.security.auth.spi.XMLLoginModule" flag="required"> | <module-option name="userInfo"> | <lm:users xmlns:lm="http://www.jboss.org/j2ee/schemas/XMLLoginModule"> | <lm:user name="jduke" password="theduke"> | <lm:role name="Role1"/> | <lm:role name="Role2"/> | <lm:role name="Echo"/> | <lm:role name="callerJduke" group="CallerPrincipal" /> | </lm:user> | <lm:user name="scott" password="echoman"> | <lm:role name="Echo"/> | <lm:role name="ProjectUser"/> | <lm:role name="callerScott" group="CallerPrincipal" /> | </lm:user> | <lm:user name="stark" password="javaman"> | <lm:role name="Java"/> | <lm:role name="Coder"/> | <lm:role name="callerStark" group="CallerPrincipal" /> | </lm:user> | <lm:user name="jdukeman" password="anotherduke"> | <lm:role name="Role2"/> | <lm:role name="Role3"/> | <lm:role name="callerJdukeman" group="CallerPrincipal" /> | </lm:user> | <lm:user name="invoker" password="invoker"> | <lm:role name="HttpInvoker"/> | </lm:user> | <lm:user name="admin" password="admin"> | <lm:role name="JBossAdmin"/> | </lm:user> | </lm:users> | </module-option> | <module-option name="unauthenticatedIdentity">guest</module-option> | </login-module> | </authentication> | </application-policy> | | This is parsed using the org.jboss.security.auth.login.LoginConfigObjectModelFactory factory. The issue is getting to a stable xsd driven version. In terms of something is stable and usable now, we may need to simply freeze/fork an ObjectModelFactory based implementation for use. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877349#3877349 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877349 |