[jboss-cvs] JBossAS SVN: r85839 - in projects/security/security-standalone/trunk: idtrust-config-common and 25 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 13 17:05:17 EDT 2009


Author: anil.saldhana at jboss.com
Date: 2009-03-13 17:05:17 -0400 (Fri, 13 Mar 2009)
New Revision: 85839

Added:
   projects/security/security-standalone/trunk/idtrust-config-common/
   projects/security/security-standalone/trunk/idtrust-config-common/.classpath
   projects/security/security-standalone/trunk/idtrust-config-common/.project
   projects/security/security-standalone/trunk/idtrust-config-common/pom.xml
   projects/security/security-standalone/trunk/idtrust-config-common/src/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/AbstractIDTrustConfiguration.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclModule.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ApplicationPolicy.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuditInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthModuleInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationJaspiInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthorizationInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/IdentityTrustInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleStack.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingModule.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOption.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOptionFlag.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ObjectFactory.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyConfig.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyModule.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ProviderModule.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/RoleMappingInfo.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/TrustModule.java
   projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/package-info.java
   projects/security/security-standalone/trunk/idtrust-config-jbas4/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/.classpath
   projects/security/security-standalone/trunk/idtrust-config-jbas4/.project
   projects/security/security-standalone/trunk/idtrust-config-jbas4/pom.xml
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/IDTrustConfiguration.java
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/JBossSXConfigBridge.java
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java
   projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/resources/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/classes/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/IDTrustConfiguration.class
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/JBossSXConfigBridge.class
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/SecurityActions$1.class
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/SecurityActions.class
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/jboss-idtrust-config-jbas4-2.0.2.CR1-SNAPSHOT-sources.jar
   projects/security/security-standalone/trunk/idtrust-config-jbas4/target/jboss-idtrust-config-jbas4-2.0.2.CR1-SNAPSHOT.jar
Log:
update for as4

Added: projects/security/security-standalone/trunk/idtrust-config-common/.classpath
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/.classpath	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/.classpath	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar"/>
+	<classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar"/>
+	<classpathentry kind="output" path="target/eclipse-classes"/>
+</classpath>

Added: projects/security/security-standalone/trunk/idtrust-config-common/.project
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/.project	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/.project	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,13 @@
+<projectDescription>
+  <name>jboss-idtrust-config-common</name>
+  <comment>JBoss Security is a cross cutting project that handles security for the JEMS projects</comment>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>

Added: projects/security/security-standalone/trunk/idtrust-config-common/pom.xml
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/pom.xml	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/pom.xml	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,50 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <parent>
+      <groupId>org.jboss.security</groupId>
+      <artifactId>jboss-idtrust-parent</artifactId>
+      <version>2.0.2.CR1-SNAPSHOT</version>
+      <relativePath>../parent</relativePath>
+   </parent>
+   <modelVersion>4.0.0</modelVersion>
+   <artifactId>jboss-idtrust-config-common</artifactId>
+   <packaging>jar</packaging>
+   <name>JBoss Security IDTrust Config Common</name>
+   <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+   <description>JBoss Security is a cross cutting project that handles security for the JEMS projects. The IDTrust API contains the api needed by standalone projects to use IDTrust.</description>
+   <licenses>
+      <license>
+         <name>lgpl</name>
+         <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+      </license>
+   </licenses>
+   <organization>
+      <name>JBoss Inc.</name>
+      <url>http://www.jboss.org</url>
+   </organization>
+   <scm>
+      <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security-standalone/trunk/</connection>
+      <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security-standalone/trunk/</developerConnection>
+      <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security-standalone/trunk/</url>
+   </scm>
+   <dependencies>
+      <dependency>
+         <groupId>sun-jaxb</groupId>
+         <artifactId>jaxb-api</artifactId>
+        <version>2.1.4</version>
+      </dependency>
+      <dependency>
+         <groupId>sun-jaxb</groupId>
+         <artifactId>jaxb-impl</artifactId>
+         <version>2.1.4</version>
+      </dependency>
+      <dependency>
+         <groupId>stax</groupId>
+         <artifactId>stax-api</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>junit</groupId>
+         <artifactId>junit</artifactId>
+         <scope>test</scope>
+      </dependency>
+   </dependencies>
+</project>

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/AbstractIDTrustConfiguration.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/AbstractIDTrustConfiguration.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/AbstractIDTrustConfiguration.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.security.idtrust.config;
+
+import java.io.InputStream;
+import java.util.List;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Unmarshaller;
+
+import org.jboss.security.idtrust.config.jaxb.ApplicationPolicy;
+import org.jboss.security.idtrust.config.jaxb.PolicyConfig;
+
+/**
+ * Base class for IDTrustConfiguration
+ * @author Anil.Saldhana at redhat.com
+ * @since Mar 11, 2009
+ */
+public abstract class AbstractIDTrustConfiguration
+{
+   private static final String jaxbPackageName = "org.jboss.security.idtrust.config.jaxb";
+   
+   @SuppressWarnings("unchecked")
+   public void config(String configFile) throws Exception
+   {
+      ClassLoader tcl = SecurityActions.getContextClassLoader();
+      InputStream is = tcl.getResourceAsStream(configFile);
+      JAXBContext jaxbContext = JAXBContext.newInstance(jaxbPackageName);
+      Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
+      JAXBElement<PolicyConfig> jaxbElement = (JAXBElement<PolicyConfig>) unmarshaller.unmarshal(is);
+      PolicyConfig policyConfig = jaxbElement.getValue(); 
+      if(policyConfig == null)
+         throw new IllegalStateException("policy Config is null");
+      addApplicationPolicies(policyConfig.getApplicationPolicy());
+   }
+
+   protected abstract void addApplicationPolicies(List<ApplicationPolicy> appPoliciesList); 
+}
\ No newline at end of file

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.security.idtrust.config;
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+
+/**
+ * Privileged Blocks
+ * <a href="mailto:anil.saldhana at redhat.com>Anil Saldhana</a>
+ * @since May 30, 2008
+ */
+
+class SecurityActions
+{ 
+   static ClassLoader getContextClassLoader()
+   {
+      return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>()
+      {
+         public ClassLoader run()
+         {
+            return Thread.currentThread().getContextClassLoader();
+         }
+      }); 
+   }
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for aclInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="aclInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}acl-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "aclInfo", propOrder = {
+    "aclModule"
+})
+public class AclInfo {
+
+    @XmlElement(name = "acl-module", required = true)
+    protected List<AclModule> aclModule;
+
+    /**
+     * Gets the value of the aclModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the aclModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getAclModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link AclModule }
+     * 
+     * 
+     */
+    public List<AclModule> getAclModule() {
+        if (aclModule == null) {
+            aclModule = new ArrayList<AclModule>();
+        }
+        return this.aclModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclModule.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclModule.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AclModule.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,133 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}module-option" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="flag" use="required" type="{urn:jboss:security-config:5.0}module-option-flag" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "moduleOption"
+})
+ at XmlRootElement(name = "acl-module")
+public class AclModule {
+
+    @XmlElement(name = "module-option")
+    protected List<ModuleOption> moduleOption;
+    @XmlAttribute(required = true)
+    protected String code;
+    @XmlAttribute(required = true)
+    protected ModuleOptionFlag flag;
+
+    /**
+     * Gets the value of the moduleOption property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the moduleOption property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getModuleOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ModuleOption }
+     * 
+     * 
+     */
+    public List<ModuleOption> getModuleOption() {
+        if (moduleOption == null) {
+            moduleOption = new ArrayList<ModuleOption>();
+        }
+        return this.moduleOption;
+    }
+
+    /**
+     * Gets the value of the code property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * Sets the value of the code property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCode(String value) {
+        this.code = value;
+    }
+
+    /**
+     * Gets the value of the flag property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public ModuleOptionFlag getFlag() {
+        return flag;
+    }
+
+    /**
+     * Sets the value of the flag property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public void setFlag(ModuleOptionFlag value) {
+        this.flag = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ApplicationPolicy.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ApplicationPolicy.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ApplicationPolicy.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,318 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;choice>
+ *           &lt;element ref="{urn:jboss:security-config:5.0}authentication"/>
+ *           &lt;element ref="{urn:jboss:security-config:5.0}authentication-jaspi"/>
+ *         &lt;/choice>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}authorization" minOccurs="0"/>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}acl" minOccurs="0"/>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}rolemapping" minOccurs="0"/>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}mapping" minOccurs="0"/>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}audit" minOccurs="0"/>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}identity-trust" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="extends" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "authentication",
+    "authenticationJaspi",
+    "authorization",
+    "acl",
+    "rolemapping",
+    "mapping",
+    "audit",
+    "identityTrust"
+})
+ at XmlRootElement(name = "application-policy")
+public class ApplicationPolicy {
+
+    protected AuthenticationInfo authentication;
+    @XmlElement(name = "authentication-jaspi")
+    protected AuthenticationJaspiInfo authenticationJaspi;
+    protected AuthorizationInfo authorization;
+    protected AclInfo acl;
+    protected MappingInfo rolemapping;
+    protected MappingInfo mapping;
+    protected AuditInfo audit;
+    @XmlElement(name = "identity-trust")
+    protected IdentityTrustInfo identityTrust;
+    @XmlAttribute(required = true)
+    protected String name;
+    @XmlAttribute(name = "extends")
+    protected String _extends;
+
+    /**
+     * Gets the value of the authentication property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link AuthenticationInfo }
+     *     
+     */
+    public AuthenticationInfo getAuthentication() {
+        return authentication;
+    }
+
+    /**
+     * Sets the value of the authentication property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link AuthenticationInfo }
+     *     
+     */
+    public void setAuthentication(AuthenticationInfo value) {
+        this.authentication = value;
+    }
+
+    /**
+     * Gets the value of the authenticationJaspi property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link AuthenticationJaspiInfo }
+     *     
+     */
+    public AuthenticationJaspiInfo getAuthenticationJaspi() {
+        return authenticationJaspi;
+    }
+
+    /**
+     * Sets the value of the authenticationJaspi property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link AuthenticationJaspiInfo }
+     *     
+     */
+    public void setAuthenticationJaspi(AuthenticationJaspiInfo value) {
+        this.authenticationJaspi = value;
+    }
+
+    /**
+     * Gets the value of the authorization property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link AuthorizationInfo }
+     *     
+     */
+    public AuthorizationInfo getAuthorization() {
+        return authorization;
+    }
+
+    /**
+     * Sets the value of the authorization property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link AuthorizationInfo }
+     *     
+     */
+    public void setAuthorization(AuthorizationInfo value) {
+        this.authorization = value;
+    }
+
+    /**
+     * Gets the value of the acl property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link AclInfo }
+     *     
+     */
+    public AclInfo getAcl() {
+        return acl;
+    }
+
+    /**
+     * Sets the value of the acl property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link AclInfo }
+     *     
+     */
+    public void setAcl(AclInfo value) {
+        this.acl = value;
+    }
+
+    /**
+     * Gets the value of the rolemapping property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link MappingInfo }
+     *     
+     */
+    public MappingInfo getRolemapping() {
+        return rolemapping;
+    }
+
+    /**
+     * Sets the value of the rolemapping property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link MappingInfo }
+     *     
+     */
+    public void setRolemapping(MappingInfo value) {
+        this.rolemapping = value;
+    }
+
+    /**
+     * Gets the value of the mapping property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link MappingInfo }
+     *     
+     */
+    public MappingInfo getMapping() {
+        return mapping;
+    }
+
+    /**
+     * Sets the value of the mapping property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link MappingInfo }
+     *     
+     */
+    public void setMapping(MappingInfo value) {
+        this.mapping = value;
+    }
+
+    /**
+     * Gets the value of the audit property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link AuditInfo }
+     *     
+     */
+    public AuditInfo getAudit() {
+        return audit;
+    }
+
+    /**
+     * Sets the value of the audit property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link AuditInfo }
+     *     
+     */
+    public void setAudit(AuditInfo value) {
+        this.audit = value;
+    }
+
+    /**
+     * Gets the value of the identityTrust property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link IdentityTrustInfo }
+     *     
+     */
+    public IdentityTrustInfo getIdentityTrust() {
+        return identityTrust;
+    }
+
+    /**
+     * Sets the value of the identityTrust property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link IdentityTrustInfo }
+     *     
+     */
+    public void setIdentityTrust(IdentityTrustInfo value) {
+        this.identityTrust = value;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+    /**
+     * Gets the value of the extends property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getExtends() {
+        return _extends;
+    }
+
+    /**
+     * Sets the value of the extends property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setExtends(String value) {
+        this._extends = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuditInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuditInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuditInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for auditInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="auditInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}provider-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "auditInfo", propOrder = {
+    "providerModule"
+})
+public class AuditInfo {
+
+    @XmlElement(name = "provider-module", required = true)
+    protected List<ProviderModule> providerModule;
+
+    /**
+     * Gets the value of the providerModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the providerModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getProviderModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ProviderModule }
+     * 
+     * 
+     */
+    public List<ProviderModule> getProviderModule() {
+        if (providerModule == null) {
+            providerModule = new ArrayList<ProviderModule>();
+        }
+        return this.providerModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthModuleInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthModuleInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthModuleInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,131 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for authModuleInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="authModuleInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}module-option" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="login-module-stack-ref" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "authModuleInfo", propOrder = {
+    "moduleOption"
+})
+public class AuthModuleInfo {
+
+    @XmlElement(name = "module-option")
+    protected List<ModuleOption> moduleOption;
+    @XmlAttribute(required = true)
+    protected String code;
+    @XmlAttribute(name = "login-module-stack-ref")
+    protected String loginModuleStackRef;
+
+    /**
+     * Gets the value of the moduleOption property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the moduleOption property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getModuleOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ModuleOption }
+     * 
+     * 
+     */
+    public List<ModuleOption> getModuleOption() {
+        if (moduleOption == null) {
+            moduleOption = new ArrayList<ModuleOption>();
+        }
+        return this.moduleOption;
+    }
+
+    /**
+     * Gets the value of the code property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * Sets the value of the code property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCode(String value) {
+        this.code = value;
+    }
+
+    /**
+     * Gets the value of the loginModuleStackRef property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getLoginModuleStackRef() {
+        return loginModuleStackRef;
+    }
+
+    /**
+     * Sets the value of the loginModuleStackRef property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setLoginModuleStackRef(String value) {
+        this.loginModuleStackRef = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for authenticationInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="authenticationInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}login-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "authenticationInfo", propOrder = {
+    "loginModule"
+})
+public class AuthenticationInfo {
+
+    @XmlElement(name = "login-module", required = true)
+    protected List<LoginModuleInfo> loginModule;
+
+    /**
+     * Gets the value of the loginModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the loginModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getLoginModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link LoginModuleInfo }
+     * 
+     * 
+     */
+    public List<LoginModuleInfo> getLoginModule() {
+        if (loginModule == null) {
+            loginModule = new ArrayList<LoginModuleInfo>();
+        }
+        return this.loginModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationJaspiInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationJaspiInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthenticationJaspiInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,109 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for authenticationJaspiInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="authenticationJaspiInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}login-module-stack" maxOccurs="unbounded"/>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}auth-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "authenticationJaspiInfo", propOrder = {
+    "loginModuleStack",
+    "authModule"
+})
+public class AuthenticationJaspiInfo {
+
+    @XmlElement(name = "login-module-stack", required = true)
+    protected List<LoginModuleStack> loginModuleStack;
+    @XmlElement(name = "auth-module", required = true)
+    protected List<AuthModuleInfo> authModule;
+
+    /**
+     * Gets the value of the loginModuleStack property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the loginModuleStack property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getLoginModuleStack().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link LoginModuleStack }
+     * 
+     * 
+     */
+    public List<LoginModuleStack> getLoginModuleStack() {
+        if (loginModuleStack == null) {
+            loginModuleStack = new ArrayList<LoginModuleStack>();
+        }
+        return this.loginModuleStack;
+    }
+
+    /**
+     * Gets the value of the authModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the authModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getAuthModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link AuthModuleInfo }
+     * 
+     * 
+     */
+    public List<AuthModuleInfo> getAuthModule() {
+        if (authModule == null) {
+            authModule = new ArrayList<AuthModuleInfo>();
+        }
+        return this.authModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthorizationInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthorizationInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/AuthorizationInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for authorizationInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="authorizationInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}policy-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "authorizationInfo", propOrder = {
+    "policyModule"
+})
+public class AuthorizationInfo {
+
+    @XmlElement(name = "policy-module", required = true)
+    protected List<PolicyModule> policyModule;
+
+    /**
+     * Gets the value of the policyModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the policyModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getPolicyModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link PolicyModule }
+     * 
+     * 
+     */
+    public List<PolicyModule> getPolicyModule() {
+        if (policyModule == null) {
+            policyModule = new ArrayList<PolicyModule>();
+        }
+        return this.policyModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/IdentityTrustInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/IdentityTrustInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/IdentityTrustInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for identityTrustInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="identityTrustInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}trust-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "identityTrustInfo", propOrder = {
+    "trustModule"
+})
+public class IdentityTrustInfo {
+
+    @XmlElement(name = "trust-module", required = true)
+    protected List<TrustModule> trustModule;
+
+    /**
+     * Gets the value of the trustModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the trustModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getTrustModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link TrustModule }
+     * 
+     * 
+     */
+    public List<TrustModule> getTrustModule() {
+        if (trustModule == null) {
+            trustModule = new ArrayList<TrustModule>();
+        }
+        return this.trustModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,131 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for loginModuleInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="loginModuleInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}module-option" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="flag" use="required" type="{urn:jboss:security-config:5.0}module-option-flag" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "loginModuleInfo", propOrder = {
+    "moduleOption"
+})
+public class LoginModuleInfo {
+
+    @XmlElement(name = "module-option")
+    protected List<ModuleOption> moduleOption;
+    @XmlAttribute(required = true)
+    protected String code;
+    @XmlAttribute(required = true)
+    protected ModuleOptionFlag flag;
+
+    /**
+     * Gets the value of the moduleOption property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the moduleOption property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getModuleOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ModuleOption }
+     * 
+     * 
+     */
+    public List<ModuleOption> getModuleOption() {
+        if (moduleOption == null) {
+            moduleOption = new ArrayList<ModuleOption>();
+        }
+        return this.moduleOption;
+    }
+
+    /**
+     * Gets the value of the code property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * Sets the value of the code property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCode(String value) {
+        this.code = value;
+    }
+
+    /**
+     * Gets the value of the flag property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public ModuleOptionFlag getFlag() {
+        return flag;
+    }
+
+    /**
+     * Sets the value of the flag property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public void setFlag(ModuleOptionFlag value) {
+        this.flag = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleStack.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleStack.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/LoginModuleStack.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,106 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}login-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "loginModule"
+})
+ at XmlRootElement(name = "login-module-stack")
+public class LoginModuleStack {
+
+    @XmlElement(name = "login-module", required = true)
+    protected List<LoginModuleInfo> loginModule;
+    @XmlAttribute(required = true)
+    protected String name;
+
+    /**
+     * Gets the value of the loginModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the loginModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getLoginModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link LoginModuleInfo }
+     * 
+     * 
+     */
+    public List<LoginModuleInfo> getLoginModule() {
+        if (loginModule == null) {
+            loginModule = new ArrayList<LoginModuleInfo>();
+        }
+        return this.loginModule;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for mappingInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="mappingInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}mapping-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "mappingInfo", propOrder = {
+    "mappingModule"
+})
+public class MappingInfo {
+
+    @XmlElement(name = "mapping-module", required = true)
+    protected List<MappingModule> mappingModule;
+
+    /**
+     * Gets the value of the mappingModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the mappingModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getMappingModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link MappingModule }
+     * 
+     * 
+     */
+    public List<MappingModule> getMappingModule() {
+        if (mappingModule == null) {
+            mappingModule = new ArrayList<MappingModule>();
+        }
+        return this.mappingModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingModule.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingModule.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/MappingModule.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,133 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}module-option" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "moduleOption"
+})
+ at XmlRootElement(name = "mapping-module")
+public class MappingModule {
+
+    @XmlElement(name = "module-option")
+    protected List<ModuleOption> moduleOption;
+    @XmlAttribute
+    protected String type;
+    @XmlAttribute(required = true)
+    protected String code;
+
+    /**
+     * Gets the value of the moduleOption property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the moduleOption property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getModuleOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ModuleOption }
+     * 
+     * 
+     */
+    public List<ModuleOption> getModuleOption() {
+        if (moduleOption == null) {
+            moduleOption = new ArrayList<ModuleOption>();
+        }
+        return this.moduleOption;
+    }
+
+    /**
+     * Gets the value of the type property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getType() {
+        return type;
+    }
+
+    /**
+     * Sets the value of the type property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setType(String value) {
+        this.type = value;
+    }
+
+    /**
+     * Gets the value of the code property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * Sets the value of the code property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCode(String value) {
+        this.code = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOption.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOption.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOption.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,109 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;any/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "content"
+})
+ at XmlRootElement(name = "module-option")
+public class ModuleOption {
+
+    @XmlMixed
+    @XmlAnyElement(lax = true)
+    protected List<Object> content;
+    @XmlAttribute(required = true)
+    protected String name;
+
+    /**
+     * Gets the value of the content property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the content property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getContent().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link Object }
+     * {@link String }
+     * 
+     * 
+     */
+    public List<Object> getContent() {
+        if (content == null) {
+            content = new ArrayList<Object>();
+        }
+        return this.content;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOptionFlag.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOptionFlag.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ModuleOptionFlag.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,64 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for module-option-flag.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * &lt;simpleType name="module-option-flag">
+ *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     &lt;enumeration value="required"/>
+ *     &lt;enumeration value="requisite"/>
+ *     &lt;enumeration value="sufficient"/>
+ *     &lt;enumeration value="optional"/>
+ *   &lt;/restriction>
+ * &lt;/simpleType>
+ * </pre>
+ * 
+ */
+ at XmlType(name = "module-option-flag")
+ at XmlEnum
+public enum ModuleOptionFlag {
+
+    @XmlEnumValue("required")
+    REQUIRED("required"),
+    @XmlEnumValue("requisite")
+    REQUISITE("requisite"),
+    @XmlEnumValue("sufficient")
+    SUFFICIENT("sufficient"),
+    @XmlEnumValue("optional")
+    OPTIONAL("optional");
+    private final String value;
+
+    ModuleOptionFlag(String v) {
+        value = v;
+    }
+
+    public String value() {
+        return value;
+    }
+
+    public static ModuleOptionFlag fromValue(String v) {
+        for (ModuleOptionFlag c: ModuleOptionFlag.values()) {
+            if (c.value.equals(v)) {
+                return c;
+            }
+        }
+        throw new IllegalArgumentException(v);
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ObjectFactory.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ObjectFactory.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ObjectFactory.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,296 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.jboss.security.config.jaxb package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+ at XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _Policy_QNAME = new QName("urn:jboss:security-config:5.0", "policy");
+    private final static QName _Acl_QNAME = new QName("urn:jboss:security-config:5.0", "acl");
+    private final static QName _IdentityTrust_QNAME = new QName("urn:jboss:security-config:5.0", "identity-trust");
+    private final static QName _Authentication_QNAME = new QName("urn:jboss:security-config:5.0", "authentication");
+    private final static QName _Audit_QNAME = new QName("urn:jboss:security-config:5.0", "audit");
+    private final static QName _Authorization_QNAME = new QName("urn:jboss:security-config:5.0", "authorization");
+    private final static QName _Rolemapping_QNAME = new QName("urn:jboss:security-config:5.0", "rolemapping");
+    private final static QName _AuthModule_QNAME = new QName("urn:jboss:security-config:5.0", "auth-module");
+    private final static QName _AuthenticationJaspi_QNAME = new QName("urn:jboss:security-config:5.0", "authentication-jaspi");
+    private final static QName _LoginModule_QNAME = new QName("urn:jboss:security-config:5.0", "login-module");
+    private final static QName _Mapping_QNAME = new QName("urn:jboss:security-config:5.0", "mapping");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.security.config.jaxb
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link LoginModuleStack }
+     * 
+     */
+    public LoginModuleStack createLoginModuleStack() {
+        return new LoginModuleStack();
+    }
+
+    /**
+     * Create an instance of {@link AclModule }
+     * 
+     */
+    public AclModule createAclModule() {
+        return new AclModule();
+    }
+
+    /**
+     * Create an instance of {@link PolicyConfig }
+     * 
+     */
+    public PolicyConfig createPolicyConfig() {
+        return new PolicyConfig();
+    }
+
+    /**
+     * Create an instance of {@link TrustModule }
+     * 
+     */
+    public TrustModule createTrustModule() {
+        return new TrustModule();
+    }
+
+    /**
+     * Create an instance of {@link MappingModule }
+     * 
+     */
+    public MappingModule createMappingModule() {
+        return new MappingModule();
+    }
+
+    /**
+     * Create an instance of {@link ProviderModule }
+     * 
+     */
+    public ProviderModule createProviderModule() {
+        return new ProviderModule();
+    }
+
+    /**
+     * Create an instance of {@link AuthModuleInfo }
+     * 
+     */
+    public AuthModuleInfo createAuthModuleInfo() {
+        return new AuthModuleInfo();
+    }
+
+    /**
+     * Create an instance of {@link LoginModuleInfo }
+     * 
+     */
+    public LoginModuleInfo createLoginModuleInfo() {
+        return new LoginModuleInfo();
+    }
+
+    /**
+     * Create an instance of {@link AuthorizationInfo }
+     * 
+     */
+    public AuthorizationInfo createAuthorizationInfo() {
+        return new AuthorizationInfo();
+    }
+
+    /**
+     * Create an instance of {@link AuthenticationInfo }
+     * 
+     */
+    public AuthenticationInfo createAuthenticationInfo() {
+        return new AuthenticationInfo();
+    }
+
+    /**
+     * Create an instance of {@link ModuleOption }
+     * 
+     */
+    public ModuleOption createModuleOption() {
+        return new ModuleOption();
+    }
+
+    /**
+     * Create an instance of {@link AuditInfo }
+     * 
+     */
+    public AuditInfo createAuditInfo() {
+        return new AuditInfo();
+    }
+
+    /**
+     * Create an instance of {@link PolicyModule }
+     * 
+     */
+    public PolicyModule createPolicyModule() {
+        return new PolicyModule();
+    }
+
+    /**
+     * Create an instance of {@link MappingInfo }
+     * 
+     */
+    public MappingInfo createMappingInfo() {
+        return new MappingInfo();
+    }
+
+    /**
+     * Create an instance of {@link ApplicationPolicy }
+     * 
+     */
+    public ApplicationPolicy createApplicationPolicy() {
+        return new ApplicationPolicy();
+    }
+
+    /**
+     * Create an instance of {@link AuthenticationJaspiInfo }
+     * 
+     */
+    public AuthenticationJaspiInfo createAuthenticationJaspiInfo() {
+        return new AuthenticationJaspiInfo();
+    }
+
+    /**
+     * Create an instance of {@link IdentityTrustInfo }
+     * 
+     */
+    public IdentityTrustInfo createIdentityTrustInfo() {
+        return new IdentityTrustInfo();
+    }
+
+    /**
+     * Create an instance of {@link AclInfo }
+     * 
+     */
+    public AclInfo createAclInfo() {
+        return new AclInfo();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link PolicyConfig }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "policy")
+    public JAXBElement<PolicyConfig> createPolicy(PolicyConfig value) {
+        return new JAXBElement<PolicyConfig>(_Policy_QNAME, PolicyConfig.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AclInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "acl")
+    public JAXBElement<AclInfo> createAcl(AclInfo value) {
+        return new JAXBElement<AclInfo>(_Acl_QNAME, AclInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link IdentityTrustInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "identity-trust")
+    public JAXBElement<IdentityTrustInfo> createIdentityTrust(IdentityTrustInfo value) {
+        return new JAXBElement<IdentityTrustInfo>(_IdentityTrust_QNAME, IdentityTrustInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AuthenticationInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "authentication")
+    public JAXBElement<AuthenticationInfo> createAuthentication(AuthenticationInfo value) {
+        return new JAXBElement<AuthenticationInfo>(_Authentication_QNAME, AuthenticationInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AuditInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "audit")
+    public JAXBElement<AuditInfo> createAudit(AuditInfo value) {
+        return new JAXBElement<AuditInfo>(_Audit_QNAME, AuditInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "authorization")
+    public JAXBElement<AuthorizationInfo> createAuthorization(AuthorizationInfo value) {
+        return new JAXBElement<AuthorizationInfo>(_Authorization_QNAME, AuthorizationInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link MappingInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "rolemapping")
+    public JAXBElement<MappingInfo> createRolemapping(MappingInfo value) {
+        return new JAXBElement<MappingInfo>(_Rolemapping_QNAME, MappingInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AuthModuleInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "auth-module")
+    public JAXBElement<AuthModuleInfo> createAuthModule(AuthModuleInfo value) {
+        return new JAXBElement<AuthModuleInfo>(_AuthModule_QNAME, AuthModuleInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AuthenticationJaspiInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "authentication-jaspi")
+    public JAXBElement<AuthenticationJaspiInfo> createAuthenticationJaspi(AuthenticationJaspiInfo value) {
+        return new JAXBElement<AuthenticationJaspiInfo>(_AuthenticationJaspi_QNAME, AuthenticationJaspiInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link LoginModuleInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "login-module")
+    public JAXBElement<LoginModuleInfo> createLoginModule(LoginModuleInfo value) {
+        return new JAXBElement<LoginModuleInfo>(_LoginModule_QNAME, LoginModuleInfo.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link MappingInfo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "urn:jboss:security-config:5.0", name = "mapping")
+    public JAXBElement<MappingInfo> createMapping(MappingInfo value) {
+        return new JAXBElement<MappingInfo>(_Mapping_QNAME, MappingInfo.class, null, value);
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyConfig.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyConfig.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyConfig.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for PolicyConfig complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="PolicyConfig">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}application-policy" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "PolicyConfig", propOrder = {
+    "applicationPolicy"
+})
+public class PolicyConfig {
+
+    @XmlElement(name = "application-policy", required = true)
+    protected List<ApplicationPolicy> applicationPolicy;
+
+    /**
+     * Gets the value of the applicationPolicy property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the applicationPolicy property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getApplicationPolicy().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ApplicationPolicy }
+     * 
+     * 
+     */
+    public List<ApplicationPolicy> getApplicationPolicy() {
+        if (applicationPolicy == null) {
+            applicationPolicy = new ArrayList<ApplicationPolicy>();
+        }
+        return this.applicationPolicy;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyModule.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyModule.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/PolicyModule.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,133 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}module-option" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="flag" use="required" type="{urn:jboss:security-config:5.0}module-option-flag" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "moduleOption"
+})
+ at XmlRootElement(name = "policy-module")
+public class PolicyModule {
+
+    @XmlElement(name = "module-option")
+    protected List<ModuleOption> moduleOption;
+    @XmlAttribute(required = true)
+    protected String code;
+    @XmlAttribute(required = true)
+    protected ModuleOptionFlag flag;
+
+    /**
+     * Gets the value of the moduleOption property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the moduleOption property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getModuleOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ModuleOption }
+     * 
+     * 
+     */
+    public List<ModuleOption> getModuleOption() {
+        if (moduleOption == null) {
+            moduleOption = new ArrayList<ModuleOption>();
+        }
+        return this.moduleOption;
+    }
+
+    /**
+     * Gets the value of the code property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * Sets the value of the code property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCode(String value) {
+        this.code = value;
+    }
+
+    /**
+     * Gets the value of the flag property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public ModuleOptionFlag getFlag() {
+        return flag;
+    }
+
+    /**
+     * Sets the value of the flag property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public void setFlag(ModuleOptionFlag value) {
+        this.flag = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ProviderModule.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ProviderModule.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/ProviderModule.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,106 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}module-option" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "moduleOption"
+})
+ at XmlRootElement(name = "provider-module")
+public class ProviderModule {
+
+    @XmlElement(name = "module-option")
+    protected List<ModuleOption> moduleOption;
+    @XmlAttribute(required = true)
+    protected String code;
+
+    /**
+     * Gets the value of the moduleOption property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the moduleOption property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getModuleOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ModuleOption }
+     * 
+     * 
+     */
+    public List<ModuleOption> getModuleOption() {
+        if (moduleOption == null) {
+            moduleOption = new ArrayList<ModuleOption>();
+        }
+        return this.moduleOption;
+    }
+
+    /**
+     * Gets the value of the code property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * Sets the value of the code property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCode(String value) {
+        this.code = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/RoleMappingInfo.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/RoleMappingInfo.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/RoleMappingInfo.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2008.05.31 at 09:44:23 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for roleMappingInfo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="roleMappingInfo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}mapping-module" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "roleMappingInfo", propOrder = {
+    "mappingModule"
+})
+public class RoleMappingInfo {
+
+    @XmlElement(name = "mapping-module", required = true)
+    protected List<MappingModule> mappingModule;
+
+    /**
+     * Gets the value of the mappingModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the mappingModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getMappingModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link MappingModule }
+     * 
+     * 
+     */
+    public List<MappingModule> getMappingModule() {
+        if (mappingModule == null) {
+            mappingModule = new ArrayList<MappingModule>();
+        }
+        return this.mappingModule;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/TrustModule.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/TrustModule.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/TrustModule.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,133 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+
+package org.jboss.security.idtrust.config.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{urn:jboss:security-config:5.0}module-option" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="flag" use="required" type="{urn:jboss:security-config:5.0}module-option-flag" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "moduleOption"
+})
+ at XmlRootElement(name = "trust-module")
+public class TrustModule {
+
+    @XmlElement(name = "module-option")
+    protected List<ModuleOption> moduleOption;
+    @XmlAttribute(required = true)
+    protected String code;
+    @XmlAttribute(required = true)
+    protected ModuleOptionFlag flag;
+
+    /**
+     * Gets the value of the moduleOption property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the moduleOption property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getModuleOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ModuleOption }
+     * 
+     * 
+     */
+    public List<ModuleOption> getModuleOption() {
+        if (moduleOption == null) {
+            moduleOption = new ArrayList<ModuleOption>();
+        }
+        return this.moduleOption;
+    }
+
+    /**
+     * Gets the value of the code property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * Sets the value of the code property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCode(String value) {
+        this.code = value;
+    }
+
+    /**
+     * Gets the value of the flag property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public ModuleOptionFlag getFlag() {
+        return flag;
+    }
+
+    /**
+     * Sets the value of the flag property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ModuleOptionFlag }
+     *     
+     */
+    public void setFlag(ModuleOptionFlag value) {
+        this.flag = value;
+    }
+
+}

Added: projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/package-info.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/package-info.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-common/src/main/java/org/jboss/security/idtrust/config/jaxb/package-info.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.03.10 at 11:05:46 PM CDT 
+//
+
+ at javax.xml.bind.annotation.XmlSchema(namespace = "urn:jboss:security-config:5.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.security.idtrust.config.jaxb;

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/.classpath
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-jbas4/.classpath	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-jbas4/.classpath	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar"/>
+	<classpathentry kind="var" path="M2_REPO/jboss/jbossas/core-libs/jbosssx/4.0.4.GA/jbosssx-4.0.4.GA.jar"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/jboss-idtrust-config-common"/>
+	<classpathentry kind="output" path="target/eclipse-classes"/>
+</classpath>

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/.project
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-jbas4/.project	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-jbas4/.project	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,13 @@
+<projectDescription>
+  <name>jboss-idtrust-config-jbas4</name>
+  <comment>JBoss Security is a cross cutting project that handles security for the JEMS projects</comment>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/pom.xml
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-jbas4/pom.xml	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-jbas4/pom.xml	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,55 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <parent>
+      <groupId>org.jboss.security</groupId>
+      <artifactId>jboss-idtrust-parent</artifactId>
+      <version>2.0.2.CR1-SNAPSHOT</version>
+      <relativePath>../parent</relativePath>
+   </parent>
+   <modelVersion>4.0.0</modelVersion>
+   <artifactId>jboss-idtrust-config-jbas4</artifactId>
+   <packaging>jar</packaging>
+   <name>JBoss Security IDTrust Config for JBAS4.x</name>
+   <url>http://labs.jboss.org/portal/jbosssecurity/</url>
+   <description>JBoss Security is a cross cutting project that handles security for the JEMS projects. The IDTrust API contains the api needed by standalone projects to use IDTrust.</description>
+   <licenses>
+      <license>
+         <name>lgpl</name>
+         <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+      </license>
+   </licenses>
+   <organization>
+      <name>JBoss Inc.</name>
+      <url>http://www.jboss.org</url>
+   </organization>
+   <scm>
+      <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security-standalone/trunk/</connection>
+      <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/security-standalone/trunk/</developerConnection>
+      <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/security-standalone/trunk/</url>
+   </scm>
+   <dependencies>
+      <dependency>
+         <groupId>jboss.jbossas.core-libs</groupId>
+         <artifactId>jbosssx</artifactId>
+         <version>4.0.4.GA</version>
+      </dependency>
+      <dependency>
+         <groupId>sun-jaxb</groupId>
+         <artifactId>jaxb-api</artifactId>
+        <version>2.1.4</version>
+      </dependency>
+      <dependency>
+         <groupId>sun-jaxb</groupId>
+         <artifactId>jaxb-impl</artifactId>
+         <version>2.1.4</version>
+      </dependency>
+      <dependency>
+         <groupId>stax</groupId>
+         <artifactId>stax-api</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>junit</groupId>
+         <artifactId>junit</artifactId>
+         <scope>test</scope>
+      </dependency>
+   </dependencies>
+</project>

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/IDTrustConfiguration.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/IDTrustConfiguration.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/IDTrustConfiguration.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.security.idtrust.config;
+
+import java.util.List;
+
+import javax.security.auth.login.Configuration;
+
+import org.jboss.security.auth.login.XMLLoginConfigImpl;
+import org.jboss.security.idtrust.config.jaxb.ApplicationPolicy;
+
+/**
+ * IDTrust Configuration
+ * <a href="mailto:anil.saldhana at redhat.com>Anil Saldhana</a>
+ */
+public class IDTrustConfiguration extends AbstractIDTrustConfiguration
+{ 
+   private static XMLLoginConfigImpl xmlConfig = new XMLLoginConfigImpl();
+   private JBossSXConfigBridge bridge = new JBossSXConfigBridge();
+   
+   public IDTrustConfiguration()
+   {
+      Configuration config = null;
+      try
+      {
+         config = Configuration.getConfiguration();  
+      }
+      catch(Exception ignore) {}
+     if(config == null || !(config instanceof XMLLoginConfigImpl))
+        Configuration.setConfiguration(xmlConfig);
+   }
+
+   @Override
+   protected void addApplicationPolicies(List<ApplicationPolicy> appPoliciesList)
+   { 
+      for(ApplicationPolicy aPolicy: appPoliciesList)
+      {
+         xmlConfig.addAppConfig(aPolicy.getName(), bridge.map(aPolicy)); 
+      } 
+   }
+}
\ No newline at end of file

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/JBossSXConfigBridge.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/JBossSXConfigBridge.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/JBossSXConfigBridge.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,117 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.security.idtrust.config;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.security.auth.login.AppConfigurationEntry;
+import javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag;
+
+import org.jboss.security.idtrust.config.jaxb.LoginModuleInfo;
+import org.jboss.security.idtrust.config.jaxb.ModuleOption;
+import org.jboss.security.idtrust.config.jaxb.ModuleOptionFlag;
+
+/**
+ * Bridges the JAXB Configuration to the JBossSX one
+ * <a href="mailto:anil.saldhana at redhat.com>Anil Saldhana</a>
+ * @since May 30, 2008
+ */
+public class JBossSXConfigBridge  
+{
+   public AppConfigurationEntry[] map(org.jboss.security.idtrust.config.jaxb.ApplicationPolicy appPolicy)
+   {
+      return map(appPolicy.getAuthentication().getLoginModule());
+   }  
+    
+   public AppConfigurationEntry[] 
+               map(List<org.jboss.security.idtrust.config.jaxb.LoginModuleInfo> loginModuleInfoList)
+   {
+      int index = 0;
+      AppConfigurationEntry[] entries = new AppConfigurationEntry[loginModuleInfoList.size()];
+      
+      for(LoginModuleInfo loginModuleInfo : loginModuleInfoList)
+      {
+         entries[index++] = map(loginModuleInfo);
+      }
+      return entries;
+   }
+   
+   public AppConfigurationEntry map(org.jboss.security.idtrust.config.jaxb.LoginModuleInfo loginModuleInfo)
+   {
+      String moduleName = loginModuleInfo.getCode();
+      ModuleOptionFlag flag = loginModuleInfo.getFlag();
+      List<ModuleOption> moduleOptionList = loginModuleInfo.getModuleOption(); 
+      return new AppConfigurationEntry(moduleName, map(flag), map(moduleOptionList)); 
+   }
+   
+   public Map<String,Object> map(List<ModuleOption> moduleOptionList)
+   {
+      if(moduleOptionList == null)
+         return null;
+      Map<String,Object> moduleOptions = new HashMap<String,Object>();
+      for(ModuleOption moduleOption: moduleOptionList)
+      {
+         String name = moduleOption.getName();
+         List<Object> objectList = moduleOption.getContent();
+         moduleOptions.put(name, objectList.get(0)); //Just get the first object 
+      }
+      return moduleOptions;
+   }
+    
+   public LoginModuleControlFlag map(ModuleOptionFlag flag)
+   {
+      if(flag != null)
+      {
+         if(flag.compareTo(ModuleOptionFlag.OPTIONAL) == 0)
+            return LoginModuleControlFlag.OPTIONAL;
+         else
+         if(flag.compareTo(ModuleOptionFlag.SUFFICIENT) == 0)
+            return LoginModuleControlFlag.SUFFICIENT;
+         else
+         if(flag.compareTo(ModuleOptionFlag.REQUISITE) == 0)
+            return LoginModuleControlFlag.REQUISITE;
+      }
+      
+      //Get the default option
+      return LoginModuleControlFlag.REQUIRED;      
+   }
+   /*
+   public ControlFlag getControlFlag(ModuleOptionFlag flag)
+   {
+      if(flag != null)
+      {
+         if(flag.compareTo(ModuleOptionFlag.OPTIONAL) == 0)
+            return ControlFlag.OPTIONAL;
+         else
+         if(flag.compareTo(ModuleOptionFlag.SUFFICIENT) == 0)
+            return ControlFlag.SUFFICIENT;
+         else
+         if(flag.compareTo(ModuleOptionFlag.REQUISITE) == 0)
+            return ControlFlag.REQUISITE;
+      }
+      
+      //Get the default option
+      return ControlFlag.REQUIRED;
+   }*/
+}
\ No newline at end of file

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java
===================================================================
--- projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java	                        (rev 0)
+++ projects/security/security-standalone/trunk/idtrust-config-jbas4/src/main/java/org/jboss/security/idtrust/config/SecurityActions.java	2009-03-13 21:05:17 UTC (rev 85839)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.security.idtrust.config;
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+
+/**
+ * Privileged Blocks
+ * <a href="mailto:anil.saldhana at redhat.com>Anil Saldhana</a>
+ * @since May 30, 2008
+ */
+
+class SecurityActions
+{ 
+   static ClassLoader getContextClassLoader()
+   {
+      return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>()
+      {
+         public ClassLoader run()
+         {
+            return Thread.currentThread().getContextClassLoader();
+         }
+      }); 
+   }
+}

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/IDTrustConfiguration.class
===================================================================
(Binary files differ)


Property changes on: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/IDTrustConfiguration.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/JBossSXConfigBridge.class
===================================================================
(Binary files differ)


Property changes on: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/JBossSXConfigBridge.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/SecurityActions$1.class
===================================================================
(Binary files differ)


Property changes on: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/SecurityActions$1.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/SecurityActions.class
===================================================================
(Binary files differ)


Property changes on: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/eclipse-classes/org/jboss/security/idtrust/config/SecurityActions.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/jboss-idtrust-config-jbas4-2.0.2.CR1-SNAPSHOT-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/jboss-idtrust-config-jbas4-2.0.2.CR1-SNAPSHOT-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/jboss-idtrust-config-jbas4-2.0.2.CR1-SNAPSHOT.jar
===================================================================
(Binary files differ)


Property changes on: projects/security/security-standalone/trunk/idtrust-config-jbas4/target/jboss-idtrust-config-jbas4-2.0.2.CR1-SNAPSHOT.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the jboss-cvs-commits mailing list