From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:23:41 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:23:41 -0500 Subject: [jboss-cvs] JBossAS SVN: r114564 - projects/ejb3/branches/jboss-ejb3-core-1.3. Message-ID: <201312030923.rB39Nflf022540@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:23:41 -0500 (Tue, 03 Dec 2013) New Revision: 114564 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml Log: [maven-release-plugin] prepare release 1.3.10 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-11-29 09:22:05 UTC (rev 114563) +++ projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:23:41 UTC (rev 114564) @@ -17,7 +17,7 @@ jboss-ejb3-core jar - 1.3.10-SNAPSHOT + 1.3.10 JBoss EJB 3.0 Core http://labs.jboss.com/jbossejb3 JBoss EJB 3.0 Core @@ -715,4 +715,10 @@ + + + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 + From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:24:11 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:24:11 -0500 Subject: [jboss-cvs] JBossAS SVN: r114565 - in projects/ejb3/tags: 1.3.10 and 1 other directory. Message-ID: <201312030924.rB39OB31022558@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:24:11 -0500 (Tue, 03 Dec 2013) New Revision: 114565 Added: projects/ejb3/tags/1.3.10/ projects/ejb3/tags/1.3.10/pom.xml Removed: projects/ejb3/tags/1.3.10/pom.xml Log: [maven-release-plugin] copy for tag 1.3.10 Property changes on: projects/ejb3/tags/1.3.10 ___________________________________________________________________ Added: svn:ignore + .idea target-eclipse build.log target output eclipse-target run.tstamp release.properties temp ObjectStore *.iml Added: svn:mergeinfo + /projects/ejb3/branches/jboss-ejb3-core-1.3.8-JBPAPP-10802:114494 Deleted: projects/ejb3/tags/1.3.10/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-11-29 09:22:05 UTC (rev 114563) +++ projects/ejb3/tags/1.3.10/pom.xml 2013-12-03 09:24:11 UTC (rev 114565) @@ -1,718 +0,0 @@ - - - - - - org.jboss.ejb3 - jboss-ejb3-build - 1.0.13 - ../build/pom.xml - - - - 4.0.0 - - - jboss-ejb3-core - jar - 1.3.10-SNAPSHOT - JBoss EJB 3.0 Core - http://labs.jboss.com/jbossejb3 - JBoss EJB 3.0 Core - - - - - apiviz.release - APIviz releases - http://apiviz.googlecode.com/svn/site/repo/mvn/release - - - true - - - false - - - - - - - - 0.1.1 - 5.0.0.CR2 - 2.0.3.SP1 - - - - - - - - - - maven-assembly-plugin - 2.2-beta-1 - - - make-assembly - package - - attached - - - - - - - jboss-ejb3-client.xml - - true - - false - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - net.gleamynode.apiviz.APIviz - - net.gleamynode.apiviz - apiviz - 1.0.3 - - - - - - - - - - - - - - - - javassist - javassist - 3.7.1.GA - - - - javax.xml.soap - saaj-api - 1.3 - test - - - - javax.mail - mail - 1.4 - test - - - - jboss.jbossts - jbossjta - 4.3.0.GA - test - - - - - jboss.jbossts - jbossts-common - 4.3.0.GA - test - - - - junit - junit - test - - - - org.hibernate - hibernate-core - ${version.org.hibernate} - - - - org.hibernate - hibernate-annotations - ${version.org.hibernate} - - - - org.hibernate - hibernate - - - - - - org.hibernate - hibernate-entitymanager - ${version.org.hibernate.hibernate-entitymanager} - - - - org.hibernate - hibernate - - - - - - org.jboss.integration - jboss-jca-spi - 5.0.3.GA - - - org.jboss.aop - jboss-aop - - - - - - org.jboss.metadata - jboss-metadata - - - - org.hibernate - ejb3-persistence - - - jboss.jbossws - jboss-jaxws - - - org.jboss - jboss-vfs - - - org.jboss.javaee - jboss-javaee - - - - - - org.jboss.logging - jboss-logging-spi - - - - org.jboss.test - jboss-test - test - - - - org.jboss.jbossas - jboss-server-manager - test - - - - org.jboss.naming - jnpserver - - - - org.jboss.aop - jboss-aop - - - org.jboss - javassist - - - org.jboss.microcontainer - jboss-container - - - - - - org.jboss.aop - jboss-aop-aspects - - - jboss - jboss-test - - - - - - - org.jboss.aop - jboss-aop-deployer-jdk50 - 2.0.0.CR10 - test - - - - org.jboss.cache - jbosscache-core - - 3.1.0.GA - - - org.jboss.javaee - jboss-javaee - - - - - - org.jboss.aspects - jboss-aspects-test - 1.0.0.Beta1 - test - - - - org.jboss.aspects - jboss-remoting-aspects - - - - org.jboss.security - jbosssx-client - - - org.jboss - jboss-transaction-spi - - - - - - org.jboss.cluster - jboss-ha-client - 1.1.1.GA - - - org.jboss.aspects - jboss-remoting-aspects - - - jboss.remoting - jboss-remoting - - - org.jboss.aop - jboss-aop - - - - - - org.jboss.cluster - jboss-ha-server-api - 1.1.1.GA - - - org.jboss - jboss-common-core - - - org.jboss.logging - jboss-logging-spi - - - org.jboss.cache - jbosscache-core - - - org.jboss.cache - jbosscache-pojo - - - jgroups - jgroups - - - - - - org.jboss.ejb3 - jboss-ejb3-cache - 1.0.0 - - - - org.jboss.ejb3 - jboss-ejb3-common - 1.0.1 - - - - org.jboss.ejb3 - jboss-ejb3-endpoint - 0.1.0 - - - - org.jboss.ejb3 - jboss-ejb3-jpa-int - ${version.org.jboss.ejb3.jboss-ejb3-jpa-int} - - - - org.jboss.ejb3 - jboss-ejb3-security - 1.0.2 - - - - org.jboss.ejb3 - jboss-ejb3-timerservice-spi - 1.0.4 - - - - org.jboss.ejb3 - jboss-ejb3-ext-api - 1.1.1 - - - - org.jboss.ejb3 - jboss-ejb3-ext-api-impl - 1.1.1 - - - - org.jboss.ejb3 - jboss-ejb3-interceptors - 1.0.6 - - - - org.jboss.ejb3 - jboss-ejb3-metadata - 1.0.0 - - - - org.jboss.ejb3 - jboss-ejb3-proxy-impl - 1.0.7 - - - - org.jboss.ejb3 - jboss-ejb3-proxy-clustered - 1.0.3 - - - - org.jboss.ejb3 - jboss-ejb3-proxy-spi - 1.0.0 - - - - org.jboss.ejb3 - jboss-ejb3-test - 1.0.0 - test - - - - org.jboss.ejb3 - jboss-ejb3-transactions - 1.0.2 - - - - org.jboss.ejb3.context - jboss-ejb3-context-base - ${version.org.jboss.ejb3.context} - - - - org.jboss.ejb3.context - jboss-ejb3-context-naming - ${version.org.jboss.ejb3.context} - runtime - - - - org.jboss.ejb3.timeout - jboss-ejb3-timeout-spi - 0.1.1 - - - - org.jboss.ejb3.timeout - jboss-ejb3-timeout-3.0 - 0.1.1 - test - - - - org.jboss.ejb3.vfs - jboss-ejb3-vfs-spi - 1.0.0-alpha-1 - - - - org.jboss.embedded - jboss-embedded - beta3 - test - - - org.jboss.microcontainer - jboss-deployers-core-spi - - - - - - org.jboss.javaee - jboss-ejb-api - - - - org.jboss.javaee - jboss-jacc-api - - - - org.jboss.javaee - jboss-jca-api - - - - org.jboss.javaee - jboss-jms-api - - - - org.jboss.javaee - jboss-servlet-api - true - - - - - org.jboss.jbossas - jboss-as-main - ${version.org.jboss.jboss-as} - provided - - - org.jboss.jbossas - jboss-as-system - ${version.org.jboss.jboss-as} - provided - - - org.jboss - javassist - - - org.jboss - jboss-vfs - - - org.jboss.microcontainer - jboss-aop-mc-int - - - org.jboss.microcontainer - jboss-container - - - org.jboss.microcontainer - jboss-deployers-impl - - - org.jboss.microcontainer - jboss-deployers-spi - - - - - org.jboss.jbossas - jboss-as-system-jmx - ${version.org.jboss.jboss-as} - provided - - - org.jboss - javassist - - - org.jboss - jboss-vfs - - - org.jboss.microcontainer - jboss-aop-mc-int - - - org.jboss.microcontainer - jboss-container - - - org.jboss.microcontainer - jboss-deployers-impl - - - org.jboss.microcontainer - jboss-deployers-spi - - - - - org.jboss.jbossas - jboss-as-mbeans - ${version.org.jboss.jboss-as} - - - org.jboss - jboss-test - - - provided - - - org.jboss.jbossas - jboss-as-j2se - ${version.org.jboss.jboss-as} - provided - - - org.jboss.microcontainer - jboss-container - - - - - - - org.jboss.jbossas - jboss-as-server - ${version.org.jboss.jboss-as} - - - jboss - jboss-remoting - - - - org.hibernate - ejb3-persistence - - - org.jboss - jboss-metadata - - - org.jboss.jbossas - jboss-as-security - - - - org.jboss.security - jbosssx-client - - - org.jboss.ws.native - jbossws-native-jaxws - - - provided - - - - org.jboss.jpa - jboss-jpa-deployers - 1.0.2-alpha-1 - - - org.jboss - jboss-vfs - - - - - - org.jboss.deployers - jboss-deployers-core-spi - - - - org.jboss.microcontainer - jboss-kernel - - - - org.jboss.security - jboss-security-spi - ${version.org.jboss.security} - - - - org.jboss.security - jbosssx - ${version.org.jboss.security} - - - - org.jboss.ws - jbossws-spi - - - - org.mockito - mockito-core - 1.8.4 - test - - - - quartz - quartz - 1.6.0 - - - - trove - trove - - - - Copied: projects/ejb3/tags/1.3.10/pom.xml (from rev 114564, projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml) =================================================================== --- projects/ejb3/tags/1.3.10/pom.xml (rev 0) +++ projects/ejb3/tags/1.3.10/pom.xml 2013-12-03 09:24:11 UTC (rev 114565) @@ -0,0 +1,724 @@ + + + + + + org.jboss.ejb3 + jboss-ejb3-build + 1.0.13 + ../build/pom.xml + + + + 4.0.0 + + + jboss-ejb3-core + jar + 1.3.10 + JBoss EJB 3.0 Core + http://labs.jboss.com/jbossejb3 + JBoss EJB 3.0 Core + + + + + apiviz.release + APIviz releases + http://apiviz.googlecode.com/svn/site/repo/mvn/release + + + true + + + false + + + + + + + + 0.1.1 + 5.0.0.CR2 + 2.0.3.SP1 + + + + + + + + + + maven-assembly-plugin + 2.2-beta-1 + + + make-assembly + package + + attached + + + + + + + jboss-ejb3-client.xml + + true + + false + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + net.gleamynode.apiviz.APIviz + + net.gleamynode.apiviz + apiviz + 1.0.3 + + + + + + + + + + + + + + + + javassist + javassist + 3.7.1.GA + + + + javax.xml.soap + saaj-api + 1.3 + test + + + + javax.mail + mail + 1.4 + test + + + + jboss.jbossts + jbossjta + 4.3.0.GA + test + + + + + jboss.jbossts + jbossts-common + 4.3.0.GA + test + + + + junit + junit + test + + + + org.hibernate + hibernate-core + ${version.org.hibernate} + + + + org.hibernate + hibernate-annotations + ${version.org.hibernate} + + + + org.hibernate + hibernate + + + + + + org.hibernate + hibernate-entitymanager + ${version.org.hibernate.hibernate-entitymanager} + + + + org.hibernate + hibernate + + + + + + org.jboss.integration + jboss-jca-spi + 5.0.3.GA + + + org.jboss.aop + jboss-aop + + + + + + org.jboss.metadata + jboss-metadata + + + + org.hibernate + ejb3-persistence + + + jboss.jbossws + jboss-jaxws + + + org.jboss + jboss-vfs + + + org.jboss.javaee + jboss-javaee + + + + + + org.jboss.logging + jboss-logging-spi + + + + org.jboss.test + jboss-test + test + + + + org.jboss.jbossas + jboss-server-manager + test + + + + org.jboss.naming + jnpserver + + + + org.jboss.aop + jboss-aop + + + org.jboss + javassist + + + org.jboss.microcontainer + jboss-container + + + + + + org.jboss.aop + jboss-aop-aspects + + + jboss + jboss-test + + + + + + + org.jboss.aop + jboss-aop-deployer-jdk50 + 2.0.0.CR10 + test + + + + org.jboss.cache + jbosscache-core + + 3.1.0.GA + + + org.jboss.javaee + jboss-javaee + + + + + + org.jboss.aspects + jboss-aspects-test + 1.0.0.Beta1 + test + + + + org.jboss.aspects + jboss-remoting-aspects + + + + org.jboss.security + jbosssx-client + + + org.jboss + jboss-transaction-spi + + + + + + org.jboss.cluster + jboss-ha-client + 1.1.1.GA + + + org.jboss.aspects + jboss-remoting-aspects + + + jboss.remoting + jboss-remoting + + + org.jboss.aop + jboss-aop + + + + + + org.jboss.cluster + jboss-ha-server-api + 1.1.1.GA + + + org.jboss + jboss-common-core + + + org.jboss.logging + jboss-logging-spi + + + org.jboss.cache + jbosscache-core + + + org.jboss.cache + jbosscache-pojo + + + jgroups + jgroups + + + + + + org.jboss.ejb3 + jboss-ejb3-cache + 1.0.0 + + + + org.jboss.ejb3 + jboss-ejb3-common + 1.0.1 + + + + org.jboss.ejb3 + jboss-ejb3-endpoint + 0.1.0 + + + + org.jboss.ejb3 + jboss-ejb3-jpa-int + ${version.org.jboss.ejb3.jboss-ejb3-jpa-int} + + + + org.jboss.ejb3 + jboss-ejb3-security + 1.0.2 + + + + org.jboss.ejb3 + jboss-ejb3-timerservice-spi + 1.0.4 + + + + org.jboss.ejb3 + jboss-ejb3-ext-api + 1.1.1 + + + + org.jboss.ejb3 + jboss-ejb3-ext-api-impl + 1.1.1 + + + + org.jboss.ejb3 + jboss-ejb3-interceptors + 1.0.6 + + + + org.jboss.ejb3 + jboss-ejb3-metadata + 1.0.0 + + + + org.jboss.ejb3 + jboss-ejb3-proxy-impl + 1.0.7 + + + + org.jboss.ejb3 + jboss-ejb3-proxy-clustered + 1.0.3 + + + + org.jboss.ejb3 + jboss-ejb3-proxy-spi + 1.0.0 + + + + org.jboss.ejb3 + jboss-ejb3-test + 1.0.0 + test + + + + org.jboss.ejb3 + jboss-ejb3-transactions + 1.0.2 + + + + org.jboss.ejb3.context + jboss-ejb3-context-base + ${version.org.jboss.ejb3.context} + + + + org.jboss.ejb3.context + jboss-ejb3-context-naming + ${version.org.jboss.ejb3.context} + runtime + + + + org.jboss.ejb3.timeout + jboss-ejb3-timeout-spi + 0.1.1 + + + + org.jboss.ejb3.timeout + jboss-ejb3-timeout-3.0 + 0.1.1 + test + + + + org.jboss.ejb3.vfs + jboss-ejb3-vfs-spi + 1.0.0-alpha-1 + + + + org.jboss.embedded + jboss-embedded + beta3 + test + + + org.jboss.microcontainer + jboss-deployers-core-spi + + + + + + org.jboss.javaee + jboss-ejb-api + + + + org.jboss.javaee + jboss-jacc-api + + + + org.jboss.javaee + jboss-jca-api + + + + org.jboss.javaee + jboss-jms-api + + + + org.jboss.javaee + jboss-servlet-api + true + + + + + org.jboss.jbossas + jboss-as-main + ${version.org.jboss.jboss-as} + provided + + + org.jboss.jbossas + jboss-as-system + ${version.org.jboss.jboss-as} + provided + + + org.jboss + javassist + + + org.jboss + jboss-vfs + + + org.jboss.microcontainer + jboss-aop-mc-int + + + org.jboss.microcontainer + jboss-container + + + org.jboss.microcontainer + jboss-deployers-impl + + + org.jboss.microcontainer + jboss-deployers-spi + + + + + org.jboss.jbossas + jboss-as-system-jmx + ${version.org.jboss.jboss-as} + provided + + + org.jboss + javassist + + + org.jboss + jboss-vfs + + + org.jboss.microcontainer + jboss-aop-mc-int + + + org.jboss.microcontainer + jboss-container + + + org.jboss.microcontainer + jboss-deployers-impl + + + org.jboss.microcontainer + jboss-deployers-spi + + + + + org.jboss.jbossas + jboss-as-mbeans + ${version.org.jboss.jboss-as} + + + org.jboss + jboss-test + + + provided + + + org.jboss.jbossas + jboss-as-j2se + ${version.org.jboss.jboss-as} + provided + + + org.jboss.microcontainer + jboss-container + + + + + + + org.jboss.jbossas + jboss-as-server + ${version.org.jboss.jboss-as} + + + jboss + jboss-remoting + + + + org.hibernate + ejb3-persistence + + + org.jboss + jboss-metadata + + + org.jboss.jbossas + jboss-as-security + + + + org.jboss.security + jbosssx-client + + + org.jboss.ws.native + jbossws-native-jaxws + + + provided + + + + org.jboss.jpa + jboss-jpa-deployers + 1.0.2-alpha-1 + + + org.jboss + jboss-vfs + + + + + + org.jboss.deployers + jboss-deployers-core-spi + + + + org.jboss.microcontainer + jboss-kernel + + + + org.jboss.security + jboss-security-spi + ${version.org.jboss.security} + + + + org.jboss.security + jbosssx + ${version.org.jboss.security} + + + + org.jboss.ws + jbossws-spi + + + + org.mockito + mockito-core + 1.8.4 + test + + + + quartz + quartz + 1.6.0 + + + + trove + trove + + + + + + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 + + From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:24:22 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:24:22 -0500 Subject: [jboss-cvs] JBossAS SVN: r114566 - projects/ejb3/branches/jboss-ejb3-core-1.3. Message-ID: <201312030924.rB39OMMw022577@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:24:22 -0500 (Tue, 03 Dec 2013) New Revision: 114566 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:24:11 UTC (rev 114565) +++ projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:24:22 UTC (rev 114566) @@ -17,7 +17,7 @@ jboss-ejb3-core jar - 1.3.10 + 1.3.11-SNAPSHOT JBoss EJB 3.0 Core http://labs.jboss.com/jbossejb3 JBoss EJB 3.0 Core @@ -715,10 +715,4 @@ - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 - scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 - http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/1.3.10 - From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:29:54 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:29:54 -0500 Subject: [jboss-cvs] JBossAS SVN: r114567 - projects/ejb3/branches/jboss-ejb3-core-1.3. Message-ID: <201312030929.rB39TsOV022635@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:29:54 -0500 (Tue, 03 Dec 2013) New Revision: 114567 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml Log: [maven-release-plugin] rollback the release of 1.3.10 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:24:22 UTC (rev 114566) +++ projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:29:54 UTC (rev 114567) @@ -17,7 +17,7 @@ jboss-ejb3-core jar - 1.3.11-SNAPSHOT + 1.3.10-SNAPSHOT JBoss EJB 3.0 Core http://labs.jboss.com/jbossejb3 JBoss EJB 3.0 Core From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:34:46 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:34:46 -0500 Subject: [jboss-cvs] JBossAS SVN: r114568 - projects/ejb3/branches/jboss-ejb3-core-1.3. Message-ID: <201312030934.rB39Ykpi022801@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:34:46 -0500 (Tue, 03 Dec 2013) New Revision: 114568 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml Log: [maven-release-plugin] prepare release jboss-ejb3-core-1.3.10 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:29:54 UTC (rev 114567) +++ projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:34:46 UTC (rev 114568) @@ -17,7 +17,7 @@ jboss-ejb3-core jar - 1.3.10-SNAPSHOT + 1.3.10 JBoss EJB 3.0 Core http://labs.jboss.com/jbossejb3 JBoss EJB 3.0 Core @@ -715,4 +715,10 @@ + + + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 + From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:35:07 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:35:07 -0500 Subject: [jboss-cvs] JBossAS SVN: r114569 - in projects/ejb3/tags: jboss-ejb3-core-1.3.10 and 1 other directory. Message-ID: <201312030935.rB39Z7Dw022823@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:35:07 -0500 (Tue, 03 Dec 2013) New Revision: 114569 Added: projects/ejb3/tags/jboss-ejb3-core-1.3.10/ projects/ejb3/tags/jboss-ejb3-core-1.3.10/pom.xml Removed: projects/ejb3/tags/jboss-ejb3-core-1.3.10/pom.xml Log: [maven-release-plugin] copy for tag jboss-ejb3-core-1.3.10 Property changes on: projects/ejb3/tags/jboss-ejb3-core-1.3.10 ___________________________________________________________________ Added: svn:ignore + .idea target-eclipse build.log target output eclipse-target run.tstamp release.properties temp ObjectStore *.iml Added: svn:mergeinfo + /projects/ejb3/branches/jboss-ejb3-core-1.3.8-JBPAPP-10802:114494 Deleted: projects/ejb3/tags/jboss-ejb3-core-1.3.10/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-11-29 09:22:05 UTC (rev 114563) +++ projects/ejb3/tags/jboss-ejb3-core-1.3.10/pom.xml 2013-12-03 09:35:07 UTC (rev 114569) @@ -1,718 +0,0 @@ - - - - - - org.jboss.ejb3 - jboss-ejb3-build - 1.0.13 - ../build/pom.xml - - - - 4.0.0 - - - jboss-ejb3-core - jar - 1.3.10-SNAPSHOT - JBoss EJB 3.0 Core - http://labs.jboss.com/jbossejb3 - JBoss EJB 3.0 Core - - - - - apiviz.release - APIviz releases - http://apiviz.googlecode.com/svn/site/repo/mvn/release - - - true - - - false - - - - - - - - 0.1.1 - 5.0.0.CR2 - 2.0.3.SP1 - - - - - - - - - - maven-assembly-plugin - 2.2-beta-1 - - - make-assembly - package - - attached - - - - - - - jboss-ejb3-client.xml - - true - - false - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - net.gleamynode.apiviz.APIviz - - net.gleamynode.apiviz - apiviz - 1.0.3 - - - - - - - - - - - - - - - - javassist - javassist - 3.7.1.GA - - - - javax.xml.soap - saaj-api - 1.3 - test - - - - javax.mail - mail - 1.4 - test - - - - jboss.jbossts - jbossjta - 4.3.0.GA - test - - - - - jboss.jbossts - jbossts-common - 4.3.0.GA - test - - - - junit - junit - test - - - - org.hibernate - hibernate-core - ${version.org.hibernate} - - - - org.hibernate - hibernate-annotations - ${version.org.hibernate} - - - - org.hibernate - hibernate - - - - - - org.hibernate - hibernate-entitymanager - ${version.org.hibernate.hibernate-entitymanager} - - - - org.hibernate - hibernate - - - - - - org.jboss.integration - jboss-jca-spi - 5.0.3.GA - - - org.jboss.aop - jboss-aop - - - - - - org.jboss.metadata - jboss-metadata - - - - org.hibernate - ejb3-persistence - - - jboss.jbossws - jboss-jaxws - - - org.jboss - jboss-vfs - - - org.jboss.javaee - jboss-javaee - - - - - - org.jboss.logging - jboss-logging-spi - - - - org.jboss.test - jboss-test - test - - - - org.jboss.jbossas - jboss-server-manager - test - - - - org.jboss.naming - jnpserver - - - - org.jboss.aop - jboss-aop - - - org.jboss - javassist - - - org.jboss.microcontainer - jboss-container - - - - - - org.jboss.aop - jboss-aop-aspects - - - jboss - jboss-test - - - - - - - org.jboss.aop - jboss-aop-deployer-jdk50 - 2.0.0.CR10 - test - - - - org.jboss.cache - jbosscache-core - - 3.1.0.GA - - - org.jboss.javaee - jboss-javaee - - - - - - org.jboss.aspects - jboss-aspects-test - 1.0.0.Beta1 - test - - - - org.jboss.aspects - jboss-remoting-aspects - - - - org.jboss.security - jbosssx-client - - - org.jboss - jboss-transaction-spi - - - - - - org.jboss.cluster - jboss-ha-client - 1.1.1.GA - - - org.jboss.aspects - jboss-remoting-aspects - - - jboss.remoting - jboss-remoting - - - org.jboss.aop - jboss-aop - - - - - - org.jboss.cluster - jboss-ha-server-api - 1.1.1.GA - - - org.jboss - jboss-common-core - - - org.jboss.logging - jboss-logging-spi - - - org.jboss.cache - jbosscache-core - - - org.jboss.cache - jbosscache-pojo - - - jgroups - jgroups - - - - - - org.jboss.ejb3 - jboss-ejb3-cache - 1.0.0 - - - - org.jboss.ejb3 - jboss-ejb3-common - 1.0.1 - - - - org.jboss.ejb3 - jboss-ejb3-endpoint - 0.1.0 - - - - org.jboss.ejb3 - jboss-ejb3-jpa-int - ${version.org.jboss.ejb3.jboss-ejb3-jpa-int} - - - - org.jboss.ejb3 - jboss-ejb3-security - 1.0.2 - - - - org.jboss.ejb3 - jboss-ejb3-timerservice-spi - 1.0.4 - - - - org.jboss.ejb3 - jboss-ejb3-ext-api - 1.1.1 - - - - org.jboss.ejb3 - jboss-ejb3-ext-api-impl - 1.1.1 - - - - org.jboss.ejb3 - jboss-ejb3-interceptors - 1.0.6 - - - - org.jboss.ejb3 - jboss-ejb3-metadata - 1.0.0 - - - - org.jboss.ejb3 - jboss-ejb3-proxy-impl - 1.0.7 - - - - org.jboss.ejb3 - jboss-ejb3-proxy-clustered - 1.0.3 - - - - org.jboss.ejb3 - jboss-ejb3-proxy-spi - 1.0.0 - - - - org.jboss.ejb3 - jboss-ejb3-test - 1.0.0 - test - - - - org.jboss.ejb3 - jboss-ejb3-transactions - 1.0.2 - - - - org.jboss.ejb3.context - jboss-ejb3-context-base - ${version.org.jboss.ejb3.context} - - - - org.jboss.ejb3.context - jboss-ejb3-context-naming - ${version.org.jboss.ejb3.context} - runtime - - - - org.jboss.ejb3.timeout - jboss-ejb3-timeout-spi - 0.1.1 - - - - org.jboss.ejb3.timeout - jboss-ejb3-timeout-3.0 - 0.1.1 - test - - - - org.jboss.ejb3.vfs - jboss-ejb3-vfs-spi - 1.0.0-alpha-1 - - - - org.jboss.embedded - jboss-embedded - beta3 - test - - - org.jboss.microcontainer - jboss-deployers-core-spi - - - - - - org.jboss.javaee - jboss-ejb-api - - - - org.jboss.javaee - jboss-jacc-api - - - - org.jboss.javaee - jboss-jca-api - - - - org.jboss.javaee - jboss-jms-api - - - - org.jboss.javaee - jboss-servlet-api - true - - - - - org.jboss.jbossas - jboss-as-main - ${version.org.jboss.jboss-as} - provided - - - org.jboss.jbossas - jboss-as-system - ${version.org.jboss.jboss-as} - provided - - - org.jboss - javassist - - - org.jboss - jboss-vfs - - - org.jboss.microcontainer - jboss-aop-mc-int - - - org.jboss.microcontainer - jboss-container - - - org.jboss.microcontainer - jboss-deployers-impl - - - org.jboss.microcontainer - jboss-deployers-spi - - - - - org.jboss.jbossas - jboss-as-system-jmx - ${version.org.jboss.jboss-as} - provided - - - org.jboss - javassist - - - org.jboss - jboss-vfs - - - org.jboss.microcontainer - jboss-aop-mc-int - - - org.jboss.microcontainer - jboss-container - - - org.jboss.microcontainer - jboss-deployers-impl - - - org.jboss.microcontainer - jboss-deployers-spi - - - - - org.jboss.jbossas - jboss-as-mbeans - ${version.org.jboss.jboss-as} - - - org.jboss - jboss-test - - - provided - - - org.jboss.jbossas - jboss-as-j2se - ${version.org.jboss.jboss-as} - provided - - - org.jboss.microcontainer - jboss-container - - - - - - - org.jboss.jbossas - jboss-as-server - ${version.org.jboss.jboss-as} - - - jboss - jboss-remoting - - - - org.hibernate - ejb3-persistence - - - org.jboss - jboss-metadata - - - org.jboss.jbossas - jboss-as-security - - - - org.jboss.security - jbosssx-client - - - org.jboss.ws.native - jbossws-native-jaxws - - - provided - - - - org.jboss.jpa - jboss-jpa-deployers - 1.0.2-alpha-1 - - - org.jboss - jboss-vfs - - - - - - org.jboss.deployers - jboss-deployers-core-spi - - - - org.jboss.microcontainer - jboss-kernel - - - - org.jboss.security - jboss-security-spi - ${version.org.jboss.security} - - - - org.jboss.security - jbosssx - ${version.org.jboss.security} - - - - org.jboss.ws - jbossws-spi - - - - org.mockito - mockito-core - 1.8.4 - test - - - - quartz - quartz - 1.6.0 - - - - trove - trove - - - - Copied: projects/ejb3/tags/jboss-ejb3-core-1.3.10/pom.xml (from rev 114568, projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml) =================================================================== --- projects/ejb3/tags/jboss-ejb3-core-1.3.10/pom.xml (rev 0) +++ projects/ejb3/tags/jboss-ejb3-core-1.3.10/pom.xml 2013-12-03 09:35:07 UTC (rev 114569) @@ -0,0 +1,724 @@ + + + + + + org.jboss.ejb3 + jboss-ejb3-build + 1.0.13 + ../build/pom.xml + + + + 4.0.0 + + + jboss-ejb3-core + jar + 1.3.10 + JBoss EJB 3.0 Core + http://labs.jboss.com/jbossejb3 + JBoss EJB 3.0 Core + + + + + apiviz.release + APIviz releases + http://apiviz.googlecode.com/svn/site/repo/mvn/release + + + true + + + false + + + + + + + + 0.1.1 + 5.0.0.CR2 + 2.0.3.SP1 + + + + + + + + + + maven-assembly-plugin + 2.2-beta-1 + + + make-assembly + package + + attached + + + + + + + jboss-ejb3-client.xml + + true + + false + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + net.gleamynode.apiviz.APIviz + + net.gleamynode.apiviz + apiviz + 1.0.3 + + + + + + + + + + + + + + + + javassist + javassist + 3.7.1.GA + + + + javax.xml.soap + saaj-api + 1.3 + test + + + + javax.mail + mail + 1.4 + test + + + + jboss.jbossts + jbossjta + 4.3.0.GA + test + + + + + jboss.jbossts + jbossts-common + 4.3.0.GA + test + + + + junit + junit + test + + + + org.hibernate + hibernate-core + ${version.org.hibernate} + + + + org.hibernate + hibernate-annotations + ${version.org.hibernate} + + + + org.hibernate + hibernate + + + + + + org.hibernate + hibernate-entitymanager + ${version.org.hibernate.hibernate-entitymanager} + + + + org.hibernate + hibernate + + + + + + org.jboss.integration + jboss-jca-spi + 5.0.3.GA + + + org.jboss.aop + jboss-aop + + + + + + org.jboss.metadata + jboss-metadata + + + + org.hibernate + ejb3-persistence + + + jboss.jbossws + jboss-jaxws + + + org.jboss + jboss-vfs + + + org.jboss.javaee + jboss-javaee + + + + + + org.jboss.logging + jboss-logging-spi + + + + org.jboss.test + jboss-test + test + + + + org.jboss.jbossas + jboss-server-manager + test + + + + org.jboss.naming + jnpserver + + + + org.jboss.aop + jboss-aop + + + org.jboss + javassist + + + org.jboss.microcontainer + jboss-container + + + + + + org.jboss.aop + jboss-aop-aspects + + + jboss + jboss-test + + + + + + + org.jboss.aop + jboss-aop-deployer-jdk50 + 2.0.0.CR10 + test + + + + org.jboss.cache + jbosscache-core + + 3.1.0.GA + + + org.jboss.javaee + jboss-javaee + + + + + + org.jboss.aspects + jboss-aspects-test + 1.0.0.Beta1 + test + + + + org.jboss.aspects + jboss-remoting-aspects + + + + org.jboss.security + jbosssx-client + + + org.jboss + jboss-transaction-spi + + + + + + org.jboss.cluster + jboss-ha-client + 1.1.1.GA + + + org.jboss.aspects + jboss-remoting-aspects + + + jboss.remoting + jboss-remoting + + + org.jboss.aop + jboss-aop + + + + + + org.jboss.cluster + jboss-ha-server-api + 1.1.1.GA + + + org.jboss + jboss-common-core + + + org.jboss.logging + jboss-logging-spi + + + org.jboss.cache + jbosscache-core + + + org.jboss.cache + jbosscache-pojo + + + jgroups + jgroups + + + + + + org.jboss.ejb3 + jboss-ejb3-cache + 1.0.0 + + + + org.jboss.ejb3 + jboss-ejb3-common + 1.0.1 + + + + org.jboss.ejb3 + jboss-ejb3-endpoint + 0.1.0 + + + + org.jboss.ejb3 + jboss-ejb3-jpa-int + ${version.org.jboss.ejb3.jboss-ejb3-jpa-int} + + + + org.jboss.ejb3 + jboss-ejb3-security + 1.0.2 + + + + org.jboss.ejb3 + jboss-ejb3-timerservice-spi + 1.0.4 + + + + org.jboss.ejb3 + jboss-ejb3-ext-api + 1.1.1 + + + + org.jboss.ejb3 + jboss-ejb3-ext-api-impl + 1.1.1 + + + + org.jboss.ejb3 + jboss-ejb3-interceptors + 1.0.6 + + + + org.jboss.ejb3 + jboss-ejb3-metadata + 1.0.0 + + + + org.jboss.ejb3 + jboss-ejb3-proxy-impl + 1.0.7 + + + + org.jboss.ejb3 + jboss-ejb3-proxy-clustered + 1.0.3 + + + + org.jboss.ejb3 + jboss-ejb3-proxy-spi + 1.0.0 + + + + org.jboss.ejb3 + jboss-ejb3-test + 1.0.0 + test + + + + org.jboss.ejb3 + jboss-ejb3-transactions + 1.0.2 + + + + org.jboss.ejb3.context + jboss-ejb3-context-base + ${version.org.jboss.ejb3.context} + + + + org.jboss.ejb3.context + jboss-ejb3-context-naming + ${version.org.jboss.ejb3.context} + runtime + + + + org.jboss.ejb3.timeout + jboss-ejb3-timeout-spi + 0.1.1 + + + + org.jboss.ejb3.timeout + jboss-ejb3-timeout-3.0 + 0.1.1 + test + + + + org.jboss.ejb3.vfs + jboss-ejb3-vfs-spi + 1.0.0-alpha-1 + + + + org.jboss.embedded + jboss-embedded + beta3 + test + + + org.jboss.microcontainer + jboss-deployers-core-spi + + + + + + org.jboss.javaee + jboss-ejb-api + + + + org.jboss.javaee + jboss-jacc-api + + + + org.jboss.javaee + jboss-jca-api + + + + org.jboss.javaee + jboss-jms-api + + + + org.jboss.javaee + jboss-servlet-api + true + + + + + org.jboss.jbossas + jboss-as-main + ${version.org.jboss.jboss-as} + provided + + + org.jboss.jbossas + jboss-as-system + ${version.org.jboss.jboss-as} + provided + + + org.jboss + javassist + + + org.jboss + jboss-vfs + + + org.jboss.microcontainer + jboss-aop-mc-int + + + org.jboss.microcontainer + jboss-container + + + org.jboss.microcontainer + jboss-deployers-impl + + + org.jboss.microcontainer + jboss-deployers-spi + + + + + org.jboss.jbossas + jboss-as-system-jmx + ${version.org.jboss.jboss-as} + provided + + + org.jboss + javassist + + + org.jboss + jboss-vfs + + + org.jboss.microcontainer + jboss-aop-mc-int + + + org.jboss.microcontainer + jboss-container + + + org.jboss.microcontainer + jboss-deployers-impl + + + org.jboss.microcontainer + jboss-deployers-spi + + + + + org.jboss.jbossas + jboss-as-mbeans + ${version.org.jboss.jboss-as} + + + org.jboss + jboss-test + + + provided + + + org.jboss.jbossas + jboss-as-j2se + ${version.org.jboss.jboss-as} + provided + + + org.jboss.microcontainer + jboss-container + + + + + + + org.jboss.jbossas + jboss-as-server + ${version.org.jboss.jboss-as} + + + jboss + jboss-remoting + + + + org.hibernate + ejb3-persistence + + + org.jboss + jboss-metadata + + + org.jboss.jbossas + jboss-as-security + + + + org.jboss.security + jbosssx-client + + + org.jboss.ws.native + jbossws-native-jaxws + + + provided + + + + org.jboss.jpa + jboss-jpa-deployers + 1.0.2-alpha-1 + + + org.jboss + jboss-vfs + + + + + + org.jboss.deployers + jboss-deployers-core-spi + + + + org.jboss.microcontainer + jboss-kernel + + + + org.jboss.security + jboss-security-spi + ${version.org.jboss.security} + + + + org.jboss.security + jbosssx + ${version.org.jboss.security} + + + + org.jboss.ws + jbossws-spi + + + + org.mockito + mockito-core + 1.8.4 + test + + + + quartz + quartz + 1.6.0 + + + + trove + trove + + + + + + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 + + From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:35:21 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:35:21 -0500 Subject: [jboss-cvs] JBossAS SVN: r114570 - projects/ejb3/branches/jboss-ejb3-core-1.3. Message-ID: <201312030935.rB39ZLch022841@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:35:21 -0500 (Tue, 03 Dec 2013) New Revision: 114570 Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:35:07 UTC (rev 114569) +++ projects/ejb3/branches/jboss-ejb3-core-1.3/pom.xml 2013-12-03 09:35:21 UTC (rev 114570) @@ -17,7 +17,7 @@ jboss-ejb3-core jar - 1.3.10 + 1.3.11-SNAPSHOT JBoss EJB 3.0 Core http://labs.jboss.com/jbossejb3 JBoss EJB 3.0 Core @@ -715,10 +715,4 @@ - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 - scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 - http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.3.10 - From jboss-cvs-commits at lists.jboss.org Tue Dec 3 04:36:52 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 04:36:52 -0500 Subject: [jboss-cvs] JBossAS SVN: r114571 - projects/ejb3/tags. Message-ID: <201312030936.rB39aqCH022868@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 04:36:52 -0500 (Tue, 03 Dec 2013) New Revision: 114571 Removed: projects/ejb3/tags/1.3.10/ Log: wrong tag name From jboss-cvs-commits at lists.jboss.org Tue Dec 3 06:37:46 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 06:37:46 -0500 Subject: [jboss-cvs] Picketbox SVN: r485 - in trunk: security-jboss-sx/jbosssx/src/main/java/org/picketbox/plugins/vault and 5 other directories. Message-ID: <201312031137.rB3BbkrX007266@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek at redhat.com Date: 2013-12-03 06:37:46 -0500 (Tue, 03 Dec 2013) New Revision: 485 Added: trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java trunk/security-jboss-sx/jbosssx/src/test/resources/bin/ trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh Modified: trunk/picketbox-infinispan/.settings/org.eclipse.jdt.core.prefs trunk/security-jboss-sx/jbosssx/src/main/java/org/picketbox/plugins/vault/PicketBoxSecurityVault.java trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/SecurityActions.java trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java Log: [SECURITY-770] Support external password for keystore of PicketBoxVault implementation patch by Ivo Modified: trunk/picketbox-infinispan/.settings/org.eclipse.jdt.core.prefs =================================================================== --- trunk/picketbox-infinispan/.settings/org.eclipse.jdt.core.prefs 2013-11-06 02:16:30 UTC (rev 484) +++ trunk/picketbox-infinispan/.settings/org.eclipse.jdt.core.prefs 2013-12-03 11:37:46 UTC (rev 485) @@ -1,12 +1,12 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.compliance=1.5 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.compiler.source=1.5 Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/picketbox/plugins/vault/PicketBoxSecurityVault.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/picketbox/plugins/vault/PicketBoxSecurityVault.java 2013-11-06 02:16:30 UTC (rev 484) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/picketbox/plugins/vault/PicketBoxSecurityVault.java 2013-12-03 11:37:46 UTC (rev 485) @@ -23,6 +23,7 @@ import org.jboss.security.PicketBoxLogger; import org.jboss.security.PicketBoxMessages; +import org.jboss.security.Util; import org.jboss.security.plugins.PBEUtils; import org.jboss.security.vault.SecurityVault; import org.jboss.security.vault.SecurityVaultException; @@ -62,7 +63,20 @@ * The following options are expected in the {@link SecurityVault#init(Map)} call: * ENC_FILE_DIR: the location where the encoded files will be kept. End with "/" or "\" based on your platform * KEYSTORE_URL: location where your keystore is located - * KEYSTORE_PASSWORD: Masked keystore password. Has to be prepended with MASK- + * KEYSTORE_PASSWORD: keystore password. + * 'plain text' masked password (has to be prepended with MASK-) + * '{EXT}...' where the '...' is the exact command + * '{EXTC[:expiration_in_millis]}...' where the '...' is the exact command + * line that will be passed to the Runtime.exec(String) method to execute a + * platform command. The first line of the command output is used as the + * password. + * EXTC variant will cache the passwords for expiration_in_millis milliseconds. + * Default cache expiration is 0 = infinity. + * '{CLASS}classname[:ctorargs]' where the '[:ctorargs]' is an optional + * string delimited by the ':' from the classname that will be passed to the + * classname ctor. The ctorargs itself is a comma delimited list of strings. + * The password is obtained from classname by invoking a + * 'char[] toCharArray()' method if found, otherwise, the 'String toString()' * KEYSTORE_ALIAS: Alias where the keypair is located * SALT: salt of the masked password. Ensured it is 8 characters in length * ITERATION_COUNT: Iteration Count of the masked password. @@ -113,6 +127,10 @@ public static final String PASS_MASK_PREFIX = "MASK-"; + public static final String PASS_CLASS_PREFIX = "{CLASS}"; + + public static final String PASS_EXT_PREFIX = "{EXT"; + public static final String PUBLIC_CERT = "PUBLIC_CERT"; public static final String KEY_SIZE = "KEY_SIZE"; @@ -147,11 +165,13 @@ } keystoreURL = StringUtil.getSystemPropertyAsString(keystoreURL); - String maskedPassword = (String) options.get(KEYSTORE_PASSWORD); - if(maskedPassword == null) + String password = (String) options.get(KEYSTORE_PASSWORD); + if(password == null) throw new SecurityVaultException(PicketBoxMessages.MESSAGES.invalidNullOrEmptyOptionMessage(KEYSTORE_PASSWORD)); - if(maskedPassword.startsWith(PASS_MASK_PREFIX) == false) - throw new SecurityVaultException(PicketBoxMessages.MESSAGES.invalidUnmaskedKeystorePasswordMessage()); + if(password.startsWith(PASS_MASK_PREFIX) == false + && password.startsWith(PASS_EXT_PREFIX) == false + && password.startsWith(PASS_CLASS_PREFIX) == false) + throw new SecurityVaultException(PicketBoxMessages.MESSAGES.invalidKeystorePasswordFormatMessage()); String salt = (String) options.get(SALT); if(salt == null) @@ -182,8 +202,7 @@ keyStoreType = (options.get(KEYSTORE_TYPE) != null ? (String) options.get(KEYSTORE_TYPE) : defaultKeyStoreType); try { - String keystorePass = decode(maskedPassword, salt, iterationCount); - keyStorePWD = keystorePass.toCharArray(); + keyStorePWD = loadKeystorePassword(password, salt, iterationCount); keystore = getKeyStore(keystoreURL); checkAndConvertKeyStoreToJCEKS(keystoreURL); @@ -301,7 +320,21 @@ } return true; } - + + private char[] loadKeystorePassword(String passwordDef, String salt, int iterationCount) throws Exception + { + final char[] password; + + if( passwordDef.startsWith(PASS_MASK_PREFIX) ){ + String keystorePass = decode(passwordDef, salt, iterationCount); + password = keystorePass.toCharArray(); + } + else + password = Util.loadPassword(passwordDef); + + return password; + } + private String decode(String maskedString, String salt, int iterationCount) throws Exception { String pbeAlgo = "PBEwithMD5andDES"; Modified: trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/SecurityActions.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/SecurityActions.java 2013-11-06 02:16:30 UTC (rev 484) +++ trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/SecurityActions.java 2013-12-03 11:37:46 UTC (rev 485) @@ -74,4 +74,49 @@ } }); } + + interface SystemPropertyAction + { + SystemPropertyAction PRIVILEGED = new SystemPropertyAction() + { + public String getProperty(final String name, final String defaultValue) + { + String prop = AccessController.doPrivileged( + new PrivilegedAction() + { + public String run() + { + return NON_PRIVILEGED.getProperty(name, defaultValue); + } + } + ); + return prop; + } + }; + SystemPropertyAction NON_PRIVILEGED = new SystemPropertyAction() + { + public String getProperty(final String name, final String defaultValue) + { + final String prop = System.getProperty(name, defaultValue); + return prop; + } + }; + String getProperty(final String name, final String defaultValue); + } + + public static String getProperty(final String name, final String defaultValue) + { + SecurityManager sm = System.getSecurityManager(); + final String prop; + if( sm != null ) + { + prop = SystemPropertyAction.PRIVILEGED.getProperty(name, defaultValue); + } + else + { + prop = SystemPropertyAction.NON_PRIVILEGED.getProperty(name, defaultValue); + } + return prop; + } + } Added: trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java (rev 0) +++ trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java 2013-12-03 11:37:46 UTC (rev 485) @@ -0,0 +1,14 @@ +package org.jboss.test.security.vault; + +/** + * Testing password provider for a Vault keystore. + * + * @author Ivo Studensky + */ +public class KeystorePasswordProvider +{ + public char[] toCharArray() + { + return "vault22".toCharArray(); + } +} Modified: trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java 2013-11-06 02:16:30 UTC (rev 484) +++ trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java 2013-12-03 11:37:46 UTC (rev 485) @@ -26,6 +26,8 @@ import org.jboss.security.vault.SecurityVaultException; import org.jboss.security.vault.SecurityVaultFactory; import org.jboss.security.vault.SecurityVaultUtil; +import org.jboss.test.SecurityActions; +import org.junit.Assume; import org.junit.Test; import org.picketbox.plugins.vault.PicketBoxSecurityVault; @@ -43,8 +45,6 @@ import java.util.HashMap; import java.util.Map; -import junit.framework.Assert; - import static org.junit.Assert.*; /** @@ -164,7 +164,97 @@ assertFalse(vault.exists(vaultBlock+"1", attributeName+"2")); } - + @Test + public void testClassBasedKeystorePassword() throws Exception + { + + setInitialVaulConditions("src/test/resources/keystore/vault.jks", "target/vaults/vault2/vault.jks", + "src/test/resources/keystore/vault_data", "target/vaults/vault2/vault_data"); + + Map options = getVaultOptionsMap( + "target/vaults/vault2/vault.jks", + "target/vaults/vault2/vault_data", + "vault", "12438567", 50, "{CLASS}org.jboss.test.security.vault.KeystorePasswordProvider"); + + String vaultBlock = "aBlock"; + String attributeName = "anAttribute"; + + char[] attributeValue = "aValue".toCharArray(); + + SecurityVault vault = getNewSecurityVaultInstance(); + + vault.init(options); + assertTrue(vault.isInitialized()); + + Map handshakeOptions = new HashMap(); + + byte[] sharedKey = vault.handshake(handshakeOptions); + assertNotNull(sharedKey); + + vault.store(vaultBlock, attributeName, attributeValue , sharedKey); + + assertTrue(vault.exists(vaultBlock, attributeName)); + //Now retrieve + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock, attributeName, sharedKey))); + + vault.store(vaultBlock+"1", attributeName+"2", attributeValue, sharedKey); + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock+"1", attributeName+"2", sharedKey))); + + System.out.println("Currently storing:" + vault.keyList()); + + assertTrue(vault.remove(vaultBlock+"1", attributeName+"2", sharedKey)); + assertFalse(vault.exists(vaultBlock+"1", attributeName+"2")); + } + + @Test + public void testExtCmdBasedKeystorePassword() throws Exception + { + // since this test uses an external BASH script it is valid for Linux systems only + String OS_NAME = SecurityActions.getProperty("os.name", null); + Assume.assumeTrue(OS_NAME.startsWith("Linux") || OS_NAME.startsWith("LINUX")); + + setInitialVaulConditions("src/test/resources/keystore/vault.jks", "target/vaults/vault2/vault.jks", + "src/test/resources/keystore/vault_data", "target/vaults/vault2/vault_data"); + + String absolutePathToAskPass = SecurityVaultUnitTestCase.class.getResource("/bin/askpass.sh").getFile(); + System.out.println("absolutePathToAskPass: " + absolutePathToAskPass); + + // 'Enter passphrase for *' is hard-coded into kwalletaskpass for example + Map options = getVaultOptionsMap( + "target/vaults/vault2/vault.jks", + "target/vaults/vault2/vault_data", + "vault", "12438567", 50, "{EXT}/bin/sh " + absolutePathToAskPass + " Enter passphrase for askpass test"); + + String vaultBlock = "aBlock"; + String attributeName = "anAttribute"; + + char[] attributeValue = "aValue".toCharArray(); + + SecurityVault vault = getNewSecurityVaultInstance(); + + vault.init(options); + assertTrue(vault.isInitialized()); + + Map handshakeOptions = new HashMap(); + + byte[] sharedKey = vault.handshake(handshakeOptions); + assertNotNull(sharedKey); + + vault.store(vaultBlock, attributeName, attributeValue , sharedKey); + + assertTrue(vault.exists(vaultBlock, attributeName)); + //Now retrieve + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock, attributeName, sharedKey))); + + vault.store(vaultBlock+"1", attributeName+"2", attributeValue, sharedKey); + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock+"1", attributeName+"2", sharedKey))); + + System.out.println("Currently storing:" + vault.keyList()); + + assertTrue(vault.remove(vaultBlock+"1", attributeName+"2", sharedKey)); + assertFalse(vault.exists(vaultBlock+"1", attributeName+"2")); + } + /** * See src/test/resources/vault-v0/readme.txt for initial vault setup (including secured attributes). * @throws Exception @@ -345,6 +435,10 @@ private String getMaskedPassword(String pwd, String salt, int iterationCount) throws Exception { + if (pwd.startsWith(PicketBoxSecurityVault.PASS_EXT_PREFIX) + || pwd.startsWith(PicketBoxSecurityVault.PASS_CLASS_PREFIX)) + return pwd; + String algo = "PBEwithMD5andDES"; // Create the PBE secret key @@ -357,7 +451,7 @@ String maskedPass = PBEUtils.encode64(pwd.getBytes(), algo, cipherKey, cipherSpec); - return new String(PicketBoxSecurityVault.PASS_MASK_PREFIX) + maskedPass; + return PicketBoxSecurityVault.PASS_MASK_PREFIX + maskedPass; } Added: trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh =================================================================== --- trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh (rev 0) +++ trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh 2013-12-03 11:37:46 UTC (rev 485) @@ -0,0 +1,2 @@ +#!/bin/sh +echo vault22 \ No newline at end of file Modified: trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java =================================================================== --- trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java 2013-11-06 02:16:30 UTC (rev 484) +++ trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java 2013-12-03 11:37:46 UTC (rev 485) @@ -456,4 +456,7 @@ @Message(id = 140, value = "Unable to get keystore (%s)") RuntimeException unableToGetKeyStore(@Cause Throwable throwable, String file); + + @Message(id = 141, value = "Keystore password should be either masked or prefixed with {EXT} or {CLASS}") + String invalidKeystorePasswordFormatMessage(); } \ No newline at end of file From jboss-cvs-commits at lists.jboss.org Tue Dec 3 06:43:51 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 06:43:51 -0500 Subject: [jboss-cvs] JBossAS SVN: r114572 - projects/metadata/trunk. Message-ID: <201312031143.rB3BhpAJ007432@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 06:43:50 -0500 (Tue, 03 Dec 2013) New Revision: 114572 Modified: projects/metadata/trunk/pom.xml Log: [maven-release-plugin] prepare release 1.0.7.GA Modified: projects/metadata/trunk/pom.xml =================================================================== --- projects/metadata/trunk/pom.xml 2013-12-03 09:36:52 UTC (rev 114571) +++ projects/metadata/trunk/pom.xml 2013-12-03 11:43:50 UTC (rev 114572) @@ -8,14 +8,14 @@ org.jboss.metadata jboss-metadata jar - 1.0.7-SNAPSHOT + 1.0.7 JBoss Metadata http://www.jboss.org The common JavaEE metadata classes - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/ - scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/trunk/ - http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/jboss-parent-5/jboss-metadata + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA + scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA + http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/1.0.7.GA From jboss-cvs-commits at lists.jboss.org Tue Dec 3 06:44:19 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 06:44:19 -0500 Subject: [jboss-cvs] JBossAS SVN: r114573 - projects/metadata/tags. Message-ID: <201312031144.rB3BiJpB007451@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 06:44:18 -0500 (Tue, 03 Dec 2013) New Revision: 114573 Added: projects/metadata/tags/1.0.7.GA/ Log: [maven-scm] copy for tag 1.0.7.GA From jboss-cvs-commits at lists.jboss.org Tue Dec 3 06:44:33 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 06:44:33 -0500 Subject: [jboss-cvs] JBossAS SVN: r114574 - projects/metadata/trunk. Message-ID: <201312031144.rB3BiXgc007817@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 06:44:32 -0500 (Tue, 03 Dec 2013) New Revision: 114574 Modified: projects/metadata/trunk/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/metadata/trunk/pom.xml =================================================================== --- projects/metadata/trunk/pom.xml 2013-12-03 11:44:18 UTC (rev 114573) +++ projects/metadata/trunk/pom.xml 2013-12-03 11:44:32 UTC (rev 114574) @@ -8,14 +8,14 @@ org.jboss.metadata jboss-metadata jar - 1.0.7 + 1.0.8-SNAPSHOT JBoss Metadata http://www.jboss.org The common JavaEE metadata classes - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA - scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA - http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/1.0.7.GA + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/ + scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/trunk/ + http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/jboss-parent-5/jboss-metadata From jboss-cvs-commits at lists.jboss.org Tue Dec 3 21:22:34 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 21:22:34 -0500 Subject: [jboss-cvs] JBossAS SVN: r114575 - projects/metadata/tags. Message-ID: <201312040222.rB42MYA1003365@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 21:22:34 -0500 (Tue, 03 Dec 2013) New Revision: 114575 Removed: projects/metadata/tags/1.0.7.GA/ Log: typo with version number From jboss-cvs-commits at lists.jboss.org Tue Dec 3 21:59:04 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 21:59:04 -0500 Subject: [jboss-cvs] JBossAS SVN: r114576 - projects/metadata/trunk. Message-ID: <201312040259.rB42x4UA004620@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 21:59:04 -0500 (Tue, 03 Dec 2013) New Revision: 114576 Modified: projects/metadata/trunk/pom.xml Log: rollback the release of 1.0.7.GA with wrong suffix Modified: projects/metadata/trunk/pom.xml =================================================================== --- projects/metadata/trunk/pom.xml 2013-12-04 02:22:34 UTC (rev 114575) +++ projects/metadata/trunk/pom.xml 2013-12-04 02:59:04 UTC (rev 114576) @@ -8,7 +8,7 @@ org.jboss.metadata jboss-metadata jar - 1.0.8-SNAPSHOT + 1.0.7-SNAPSHOT JBoss Metadata http://www.jboss.org The common JavaEE metadata classes From jboss-cvs-commits at lists.jboss.org Tue Dec 3 22:07:07 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 22:07:07 -0500 Subject: [jboss-cvs] JBossAS SVN: r114577 - projects/metadata/trunk. Message-ID: <201312040307.rB4377XR010783@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 22:07:07 -0500 (Tue, 03 Dec 2013) New Revision: 114577 Modified: projects/metadata/trunk/pom.xml Log: [maven-release-plugin] prepare release 1.0.7.GA Modified: projects/metadata/trunk/pom.xml =================================================================== --- projects/metadata/trunk/pom.xml 2013-12-04 02:59:04 UTC (rev 114576) +++ projects/metadata/trunk/pom.xml 2013-12-04 03:07:07 UTC (rev 114577) @@ -8,14 +8,14 @@ org.jboss.metadata jboss-metadata jar - 1.0.7-SNAPSHOT + 1.0.7.GA JBoss Metadata http://www.jboss.org The common JavaEE metadata classes - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/ - scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/trunk/ - http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/jboss-parent-5/jboss-metadata + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA + scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA + http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/1.0.7.GA From jboss-cvs-commits at lists.jboss.org Tue Dec 3 22:07:37 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 22:07:37 -0500 Subject: [jboss-cvs] JBossAS SVN: r114578 - projects/metadata/tags. Message-ID: <201312040307.rB437b1F010802@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 22:07:36 -0500 (Tue, 03 Dec 2013) New Revision: 114578 Added: projects/metadata/tags/1.0.7.GA/ Log: [maven-scm] copy for tag 1.0.7.GA From jboss-cvs-commits at lists.jboss.org Tue Dec 3 22:07:50 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 3 Dec 2013 22:07:50 -0500 Subject: [jboss-cvs] JBossAS SVN: r114579 - projects/metadata/trunk. Message-ID: <201312040307.rB437oZN010820@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-03 22:07:50 -0500 (Tue, 03 Dec 2013) New Revision: 114579 Modified: projects/metadata/trunk/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/metadata/trunk/pom.xml =================================================================== --- projects/metadata/trunk/pom.xml 2013-12-04 03:07:36 UTC (rev 114578) +++ projects/metadata/trunk/pom.xml 2013-12-04 03:07:50 UTC (rev 114579) @@ -8,14 +8,14 @@ org.jboss.metadata jboss-metadata jar - 1.0.7.GA + 1.0.8-SNAPSHOT JBoss Metadata http://www.jboss.org The common JavaEE metadata classes - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA - scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/tags/1.0.7.GA - http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/1.0.7.GA + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/ + scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/trunk/ + http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/jboss-parent-5/jboss-metadata From jboss-cvs-commits at lists.jboss.org Tue Dec 10 03:46:18 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 10 Dec 2013 03:46:18 -0500 Subject: [jboss-cvs] JBossAS SVN: r114580 - branches/JBPAPP_5/component-matrix. Message-ID: <201312100846.rBA8kI7j002389@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-10 03:46:18 -0500 (Tue, 10 Dec 2013) New Revision: 114580 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10915 Upgrade JBoss Messaging to 1.4.8.SP9_patch_01, JBPAPP-10914 Upgrade JBoss Remoting to 2.5.4.SP4_patch01 and JBPAPP-10897 Upgrade JBoss Security to 2.0.6 Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-04 03:07:50 UTC (rev 114579) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-10 08:46:18 UTC (rev 114580) @@ -45,7 +45,7 @@ 1.1.2.SP8 3.1.2.SP15-patch-02 1.0.1.GA - 1.4.8.SP9 + 1.4.8.SP9_patch_01 2.2.24.EAP.GA 2.1.13.GA-patch-02 2.6.22.Final @@ -85,8 +85,9 @@ 2.0.10.GA 5.0.3.GA_CP02 2.0.4.GA - 2.5.4.SP4 - 2.0.5.SP3-1 + 2.5.4.SP4_patch01 + 2.0.5.SP3-1-patch-01 + 2.0.5.SP3-1 2.1.3.GA 1.0.0.GA 2.2.1.GA @@ -2046,7 +2047,7 @@ org.jboss.security jboss-security-spi - ${version.org.jboss.security} + ${version.org.jboss.security.jboss-security-spi} From jboss-cvs-commits at lists.jboss.org Tue Dec 10 05:16:19 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 10 Dec 2013 05:16:19 -0500 Subject: [jboss-cvs] JBossAS SVN: r114581 - branches/JBPAPP_5/server/src/bin. Message-ID: <201312101016.rBAAGJZe017892@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-10 05:16:19 -0500 (Tue, 10 Dec 2013) New Revision: 114581 Modified: branches/JBPAPP_5/server/src/bin/jboss_init_redhat.sh Log: [JBPAPP-10920], remove the sed regexp substitution in jboss_init_redhat.sh Modified: branches/JBPAPP_5/server/src/bin/jboss_init_redhat.sh =================================================================== --- branches/JBPAPP_5/server/src/bin/jboss_init_redhat.sh 2013-12-10 08:46:18 UTC (rev 114580) +++ branches/JBPAPP_5/server/src/bin/jboss_init_redhat.sh 2013-12-10 10:16:19 UTC (rev 114581) @@ -70,7 +70,7 @@ function procrunning() { procid=0 - JBOSSSCRIPT=$(echo $JBOSSSH | awk '{print $1}' | sed 's/\//\\\//g') + JBOSSSCRIPT=$(echo $JBOSSSH | awk '{print $1}') for procid in `/sbin/pidof -x "$JBOSSSCRIPT"`; do ps -fp $procid | grep "${JBOSSSH% *}" > /dev/null && pid=$procid done From jboss-cvs-commits at lists.jboss.org Tue Dec 10 08:23:02 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 10 Dec 2013 08:23:02 -0500 Subject: [jboss-cvs] JBossAS SVN: r114582 - projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego. Message-ID: <201312101323.rBADN2Xg011086@svn01.web.mwc.hst.phx2.redhat.com> Author: tfonteyn Date: 2013-12-10 08:23:01 -0500 (Tue, 10 Dec 2013) New Revision: 114582 Modified: projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java Log: [SECURITY-772] SPNEGOLoginModule does not always respect removeRealmFromPrincipal - it does now Modified: projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java =================================================================== --- projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java 2013-12-10 10:16:19 UTC (rev 114581) +++ projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java 2013-12-10 13:23:01 UTC (rev 114582) @@ -40,6 +40,7 @@ import org.ietf.jgss.GSSContext; import org.ietf.jgss.GSSCredential; +import org.ietf.jgss.GSSException; import org.ietf.jgss.GSSManager; import org.ietf.jgss.Oid; import org.jboss.security.SimpleGroup; @@ -319,6 +320,7 @@ { private final NegotiationContext negotiationContext; + private boolean DEBUG = log.isDebugEnabled(); public AcceptSecContext(final NegotiationContext negotiationContext) { @@ -326,8 +328,7 @@ } public Object run() - { - boolean DEBUG = log.isDebugEnabled(); + { try { // The message type will have already been checked before this point so we know it is @@ -404,20 +405,7 @@ if (gssContext.isEstablished()) { log.warn("Authentication was performed despite already being authenticated!"); - - // TODO - Refactor to only do this once. - setIdentity(new KerberosPrincipal(gssContext.getSrcName().toString())); - - if (DEBUG) - { - log.debug("context.getCredDelegState() = " + gssContext.getCredDelegState()); - log.debug("context.getMutualAuthState() = " + gssContext.getMutualAuthState()); - log.debug("context.getSrcName() = " + gssContext.getSrcName().toString()); - } - - negotiationContext.setAuthenticationMethod(SPNEGO); - negotiationContext.setAuthenticated(true); - + processIdentity(gssContext); return Boolean.TRUE; } @@ -447,18 +435,7 @@ } else { - setIdentity(createIdentity(gssContext.getSrcName().toString())); - - if (DEBUG) - { - log.debug("context.getCredDelegState() = " + gssContext.getCredDelegState()); - log.debug("context.getMutualAuthState() = " + gssContext.getMutualAuthState()); - log.debug("context.getSrcName() = " + gssContext.getSrcName().toString()); - } - - // TODO - Get these two in synch - maybe isAuthenticated based on an authentication method been set? - negotiationContext.setAuthenticationMethod(SPNEGO); - negotiationContext.setAuthenticated(true); + processIdentity(gssContext); return Boolean.TRUE; } @@ -469,5 +446,20 @@ } } + + private void processIdentity(GSSContext gssContext) throws GSSException, Exception + { + setIdentity(createIdentity(gssContext.getSrcName().toString())); + + if (DEBUG) + { + log.debug("context.getCredDelegState() = " + gssContext.getCredDelegState()); + log.debug("context.getMutualAuthState() = " + gssContext.getMutualAuthState()); + log.debug("context.getSrcName() = " + gssContext.getSrcName().toString()); + } + + negotiationContext.setAuthenticationMethod(SPNEGO); + negotiationContext.setAuthenticated(true); + } } } From jboss-cvs-commits at lists.jboss.org Tue Dec 10 08:55:29 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 10 Dec 2013 08:55:29 -0500 Subject: [jboss-cvs] JBossAS SVN: r114583 - projects/security/security-negotiation/branches. Message-ID: <201312101355.rBADtTN9012330@svn01.web.mwc.hst.phx2.redhat.com> Author: tfonteyn Date: 2013-12-10 08:55:29 -0500 (Tue, 10 Dec 2013) New Revision: 114583 Added: projects/security/security-negotiation/branches/security-negotiation-2.2.5.Final_BZ-1040008/ Log: BZ-1040008 - SPNEGOLoginModule does not always respect removeRealmFromPrincipal https://issues.jboss.org/browse/SECURITY-772 From jboss-cvs-commits at lists.jboss.org Tue Dec 10 09:03:05 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 10 Dec 2013 09:03:05 -0500 Subject: [jboss-cvs] JBossAS SVN: r114584 - projects/security/security-negotiation/branches/security-negotiation-2.2.5.Final_BZ-1040008/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego. Message-ID: <201312101403.rBAE35KD018470@svn01.web.mwc.hst.phx2.redhat.com> Author: tfonteyn Date: 2013-12-10 09:03:05 -0500 (Tue, 10 Dec 2013) New Revision: 114584 Modified: projects/security/security-negotiation/branches/security-negotiation-2.2.5.Final_BZ-1040008/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java Log: [bz-1040008] SPNEGOLoginModule does not always respect removeRealmFromPrincipal - one-off for EAP 6.1.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.2.5.Final_BZ-1040008/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.2.5.Final_BZ-1040008/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java 2013-12-10 13:55:29 UTC (rev 114583) +++ projects/security/security-negotiation/branches/security-negotiation-2.2.5.Final_BZ-1040008/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/SPNEGOLoginModule.java 2013-12-10 14:03:05 UTC (rev 114584) @@ -40,6 +40,7 @@ import org.ietf.jgss.GSSContext; import org.ietf.jgss.GSSCredential; +import org.ietf.jgss.GSSException; import org.ietf.jgss.GSSManager; import org.ietf.jgss.Oid; import org.jboss.security.SimpleGroup; @@ -319,6 +320,7 @@ { private final NegotiationContext negotiationContext; + private boolean DEBUG = log.isDebugEnabled(); public AcceptSecContext(final NegotiationContext negotiationContext) { @@ -327,7 +329,6 @@ public Object run() { - boolean DEBUG = log.isDebugEnabled(); try { // The message type will have already been checked before this point so we know it is @@ -404,20 +405,7 @@ if (gssContext.isEstablished()) { log.warn("Authentication was performed despite already being authenticated!"); - - // TODO - Refactor to only do this once. - setIdentity(new KerberosPrincipal(gssContext.getSrcName().toString())); - - if (DEBUG) - { - log.debug("context.getCredDelegState() = " + gssContext.getCredDelegState()); - log.debug("context.getMutualAuthState() = " + gssContext.getMutualAuthState()); - log.debug("context.getSrcName() = " + gssContext.getSrcName().toString()); - } - - negotiationContext.setAuthenticationMethod(SPNEGO); - negotiationContext.setAuthenticated(true); - + processIdentity(gssContext); return Boolean.TRUE; } @@ -447,18 +435,7 @@ } else { - setIdentity(createIdentity(gssContext.getSrcName().toString())); - - if (DEBUG) - { - log.debug("context.getCredDelegState() = " + gssContext.getCredDelegState()); - log.debug("context.getMutualAuthState() = " + gssContext.getMutualAuthState()); - log.debug("context.getSrcName() = " + gssContext.getSrcName().toString()); - } - - // TODO - Get these two in synch - maybe isAuthenticated based on an authentication method been set? - negotiationContext.setAuthenticationMethod(SPNEGO); - negotiationContext.setAuthenticated(true); + processIdentity(gssContext); return Boolean.TRUE; } @@ -469,5 +446,20 @@ } } + + private void processIdentity(GSSContext gssContext) throws GSSException, Exception + { + setIdentity(createIdentity(gssContext.getSrcName().toString())); + + if (DEBUG) + { + log.debug("context.getCredDelegState() = " + gssContext.getCredDelegState()); + log.debug("context.getMutualAuthState() = " + gssContext.getMutualAuthState()); + log.debug("context.getSrcName() = " + gssContext.getSrcName().toString()); + } + + negotiationContext.setAuthenticationMethod(SPNEGO); + negotiationContext.setAuthenticated(true); + } } } From jboss-cvs-commits at lists.jboss.org Thu Dec 12 08:35:14 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Thu, 12 Dec 2013 08:35:14 -0500 Subject: [jboss-cvs] JBossAS SVN: r114585 - in projects/jboss-cl/branches/Branch_2_0: build and 3 other directories. Message-ID: <201312121335.rBCDZEoT026017@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-12 08:35:13 -0500 (Thu, 12 Dec 2013) New Revision: 114585 Modified: projects/jboss-cl/branches/Branch_2_0/build/pom.xml projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml projects/jboss-cl/branches/Branch_2_0/pom.xml Log: [maven-release-plugin] prepare release 2.0.12.GA Modified: projects/jboss-cl/branches/Branch_2_0/build/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/build/pom.xml 2013-12-10 14:03:05 UTC (rev 114584) +++ projects/jboss-cl/branches/Branch_2_0/build/pom.xml 2013-12-12 13:35:13 UTC (rev 114585) @@ -2,12 +2,12 @@ org.jboss.cl jboss-cl - 2.0.12.GA-SNAPSHOT + 2.0.12.GA 4.0.0 org.jboss.cl jboss-cl-dist - 2.0.12.GA-SNAPSHOT + 2.0.12.GA pom JBoss ClassLoader Distribution Build http://www.jboss.org/jbossmc Modified: projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml 2013-12-10 14:03:05 UTC (rev 114584) +++ projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml 2013-12-12 13:35:13 UTC (rev 114585) @@ -2,7 +2,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA-SNAPSHOT + 2.0.12.GA 4.0.0 jboss-classloader Modified: projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml 2013-12-10 14:03:05 UTC (rev 114584) +++ projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml 2013-12-12 13:35:13 UTC (rev 114585) @@ -2,7 +2,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA-SNAPSHOT + 2.0.12.GA 4.0.0 jboss-classloading Modified: projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml 2013-12-10 14:03:05 UTC (rev 114584) +++ projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml 2013-12-12 13:35:13 UTC (rev 114585) @@ -2,7 +2,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA-SNAPSHOT + 2.0.12.GA 4.0.0 jboss-classloading-vfs Modified: projects/jboss-cl/branches/Branch_2_0/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/pom.xml 2013-12-10 14:03:05 UTC (rev 114584) +++ projects/jboss-cl/branches/Branch_2_0/pom.xml 2013-12-12 13:35:13 UTC (rev 114585) @@ -9,7 +9,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA-SNAPSHOT + 2.0.12.GA pom JBoss ClassLoader Parent POM @@ -17,9 +17,9 @@ http://www.jboss.com/products/jbossmc - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/branches/Branch_2_0/ - scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-cl/branches/Branch_2_0/ - http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-cl/branches/Branch_2_0 + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/tags/2.0.12.GA + scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-cl/tags/2.0.12.GA + http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-cl/tags/2.0.12.GA From jboss-cvs-commits at lists.jboss.org Thu Dec 12 08:35:21 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Thu, 12 Dec 2013 08:35:21 -0500 Subject: [jboss-cvs] JBossAS SVN: r114586 - projects/jboss-cl/tags. Message-ID: <201312121335.rBCDZLua026035@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-12 08:35:21 -0500 (Thu, 12 Dec 2013) New Revision: 114586 Added: projects/jboss-cl/tags/2.0.12.GA/ Log: [maven-release-plugin] copy for tag 2.0.12.GA From jboss-cvs-commits at lists.jboss.org Thu Dec 12 08:35:26 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Thu, 12 Dec 2013 08:35:26 -0500 Subject: [jboss-cvs] JBossAS SVN: r114587 - in projects/jboss-cl/branches/Branch_2_0: build and 3 other directories. Message-ID: <201312121335.rBCDZQFB026053@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-12 08:35:26 -0500 (Thu, 12 Dec 2013) New Revision: 114587 Modified: projects/jboss-cl/branches/Branch_2_0/build/pom.xml projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml projects/jboss-cl/branches/Branch_2_0/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/jboss-cl/branches/Branch_2_0/build/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/build/pom.xml 2013-12-12 13:35:21 UTC (rev 114586) +++ projects/jboss-cl/branches/Branch_2_0/build/pom.xml 2013-12-12 13:35:26 UTC (rev 114587) @@ -2,12 +2,12 @@ org.jboss.cl jboss-cl - 2.0.12.GA + 2.0.13.GA-SNAPSHOT 4.0.0 org.jboss.cl jboss-cl-dist - 2.0.12.GA + 2.0.13.GA-SNAPSHOT pom JBoss ClassLoader Distribution Build http://www.jboss.org/jbossmc Modified: projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml 2013-12-12 13:35:21 UTC (rev 114586) +++ projects/jboss-cl/branches/Branch_2_0/classloader/pom.xml 2013-12-12 13:35:26 UTC (rev 114587) @@ -2,7 +2,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA + 2.0.13.GA-SNAPSHOT 4.0.0 jboss-classloader Modified: projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml 2013-12-12 13:35:21 UTC (rev 114586) +++ projects/jboss-cl/branches/Branch_2_0/classloading/pom.xml 2013-12-12 13:35:26 UTC (rev 114587) @@ -2,7 +2,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA + 2.0.13.GA-SNAPSHOT 4.0.0 jboss-classloading Modified: projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml 2013-12-12 13:35:21 UTC (rev 114586) +++ projects/jboss-cl/branches/Branch_2_0/classloading-vfs/pom.xml 2013-12-12 13:35:26 UTC (rev 114587) @@ -2,7 +2,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA + 2.0.13.GA-SNAPSHOT 4.0.0 jboss-classloading-vfs Modified: projects/jboss-cl/branches/Branch_2_0/pom.xml =================================================================== --- projects/jboss-cl/branches/Branch_2_0/pom.xml 2013-12-12 13:35:21 UTC (rev 114586) +++ projects/jboss-cl/branches/Branch_2_0/pom.xml 2013-12-12 13:35:26 UTC (rev 114587) @@ -9,7 +9,7 @@ org.jboss.cl jboss-cl - 2.0.12.GA + 2.0.13.GA-SNAPSHOT pom JBoss ClassLoader Parent POM @@ -17,9 +17,9 @@ http://www.jboss.com/products/jbossmc - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/tags/2.0.12.GA - scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-cl/tags/2.0.12.GA - http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-cl/tags/2.0.12.GA + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/branches/Branch_2_0/ + scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-cl/branches/Branch_2_0/ + http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-cl/branches/Branch_2_0 From jboss-cvs-commits at lists.jboss.org Fri Dec 13 07:44:12 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 13 Dec 2013 07:44:12 -0500 Subject: [jboss-cvs] JBossAS SVN: r114588 - in projects/microcontainer/branches/Branch_2_0: dependency/src/main/java/org/jboss/dependency/plugins/graph and 8 other directories. Message-ID: <201312131244.rBDCiCoa024910@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-13 07:44:11 -0500 (Fri, 13 Dec 2013) New Revision: 114588 Modified: projects/microcontainer/branches/Branch_2_0/aop-mc-int/src/main/java/org/jboss/aop/microcontainer/aspects/jmx/JMXObjectName.java projects/microcontainer/branches/Branch_2_0/dependency/src/main/java/org/jboss/dependency/plugins/graph/ScopeKeyLookupStrategy.java projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/plugins/AbstractBeanMetaData.java projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/plugins/SearchInfoValueAdapter.java projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/spi/factory/PropertyMap.java projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/kernel/plugins/dependency/SearchClassContextDependencyItem.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/config/support/SimpleAnnotationImpl.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/support/FirstBean2.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/support/GetInstanceBean.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/BeanFactoryContextualInjectionTestCase.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/GetInstanceTestCase.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/NullifyTestCase.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/TransitiveBeansTestCase.java projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/BeanFactoryContextualInjectionTestCase.xml projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/GetInstanceTestCase.xml projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/NullifyTestCase.xml projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/TransitiveBeansTestCase.xml projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/xml/test/DemandWithTargetState.xml projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/xml/test/InjectionWithSearch.xml Log: JBPAPP-6020 - reverting back r111911 as 6020 is still open, but a new tag for EAP5.3 is needed, feel free to get it back once the tag is created Property changes on: projects/microcontainer/branches/Branch_2_0/aop-mc-int/src/main/java/org/jboss/aop/microcontainer/aspects/jmx/JMXObjectName.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/dependency/src/main/java/org/jboss/dependency/plugins/graph/ScopeKeyLookupStrategy.java ___________________________________________________________________ Deleted: svn:mergeinfo - Modified: projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/plugins/AbstractBeanMetaData.java =================================================================== --- projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/plugins/AbstractBeanMetaData.java 2013-12-12 13:35:26 UTC (rev 114587) +++ projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/plugins/AbstractBeanMetaData.java 2013-12-13 12:44:11 UTC (rev 114588) @@ -162,9 +162,6 @@ /** The uninstall callback List */ protected List uninstallCallbacks; - /** The nested beans list */ - protected transient List beans; - /** The context */ protected transient ControllerContext context; @@ -197,15 +194,11 @@ this.bean = bean; } - public List getBeans() - { - if (beans == null) - { - NestedBeanHandler handler = createNestedBeanHandler(); - beans = handler.checkForNestedBeans(); - } - return beans; - } + public List getBeans() + { + NestedBeanHandler handler = createNestedBeanHandler(); + return handler.checkForNestedBeans(); + } /** * Create nested bean handler. Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/plugins/SearchInfoValueAdapter.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/beans/metadata/spi/factory/PropertyMap.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/main/java/org/jboss/kernel/plugins/dependency/SearchClassContextDependencyItem.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/config/support/SimpleAnnotationImpl.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/support/FirstBean2.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/support/GetInstanceBean.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/BeanFactoryContextualInjectionTestCase.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/GetInstanceTestCase.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/NullifyTestCase.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/java/org/jboss/test/kernel/deployment/test/TransitiveBeansTestCase.java ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/BeanFactoryContextualInjectionTestCase.xml ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/GetInstanceTestCase.xml ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/NullifyTestCase.xml ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/TransitiveBeansTestCase.xml ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/xml/test/DemandWithTargetState.xml ___________________________________________________________________ Deleted: svn:mergeinfo - Property changes on: projects/microcontainer/branches/Branch_2_0/kernel/src/test/resources/org/jboss/test/kernel/deployment/xml/test/InjectionWithSearch.xml ___________________________________________________________________ Deleted: svn:mergeinfo - From jboss-cvs-commits at lists.jboss.org Fri Dec 13 07:50:29 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 13 Dec 2013 07:50:29 -0500 Subject: [jboss-cvs] JBossAS SVN: r114589 - in projects/microcontainer/branches/Branch_2_0: aop-mc-int and 5 other directories. Message-ID: <201312131250.rBDCoTWZ025009@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-13 07:50:29 -0500 (Fri, 13 Dec 2013) New Revision: 114589 Modified: projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml projects/microcontainer/branches/Branch_2_0/build/pom.xml projects/microcontainer/branches/Branch_2_0/dependency/pom.xml projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml projects/microcontainer/branches/Branch_2_0/kernel/pom.xml projects/microcontainer/branches/Branch_2_0/pom.xml projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml Log: [maven-release-plugin] prepare release 2.0.11.GA Modified: projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml 2013-12-13 12:44:11 UTC (rev 114588) +++ projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml 2013-12-13 12:50:29 UTC (rev 114589) @@ -15,7 +15,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11-SNAPSHOT + 2.0.11.GA 4.0.0 jboss-aop-mc-int Modified: projects/microcontainer/branches/Branch_2_0/build/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/build/pom.xml 2013-12-13 12:44:11 UTC (rev 114588) +++ projects/microcontainer/branches/Branch_2_0/build/pom.xml 2013-12-13 12:50:29 UTC (rev 114589) @@ -12,12 +12,12 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11-SNAPSHOT + 2.0.11.GA 4.0.0 org.jboss.microcontainer jboss-microcontainer-dist - 2.0.11-SNAPSHOT + 2.0.11.GA pom JBoss Microcontainer Distribution Build Modified: projects/microcontainer/branches/Branch_2_0/dependency/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/dependency/pom.xml 2013-12-13 12:44:11 UTC (rev 114588) +++ projects/microcontainer/branches/Branch_2_0/dependency/pom.xml 2013-12-13 12:50:29 UTC (rev 114589) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11-SNAPSHOT + 2.0.11.GA 4.0.0 jboss-dependency @@ -11,9 +11,9 @@ http://www.jboss.com/products/jbossmc JBoss Microcontainer Dependency - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/dependency - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/dependency - http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/branches/Branch_2_0/dependency + scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA/dependency + scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA/dependency + scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA/dependency Modified: projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml 2013-12-13 12:44:11 UTC (rev 114588) +++ projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml 2013-12-13 12:50:29 UTC (rev 114589) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11-SNAPSHOT + 2.0.11.GA 4.0.0 jboss-guice-int Modified: projects/microcontainer/branches/Branch_2_0/kernel/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/kernel/pom.xml 2013-12-13 12:44:11 UTC (rev 114588) +++ projects/microcontainer/branches/Branch_2_0/kernel/pom.xml 2013-12-13 12:50:29 UTC (rev 114589) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11-SNAPSHOT + 2.0.11.GA 4.0.0 jboss-kernel Modified: projects/microcontainer/branches/Branch_2_0/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/pom.xml 2013-12-13 12:44:11 UTC (rev 114588) +++ projects/microcontainer/branches/Branch_2_0/pom.xml 2013-12-13 12:50:29 UTC (rev 114589) @@ -7,7 +7,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11-SNAPSHOT + 2.0.11.GA pom JBoss Microcontainer Parent POM http://www.jboss.org/jbossmc/ @@ -16,9 +16,9 @@ and configuration. - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/ - scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/ - http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/branches/Branch_2_0/ + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA + scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA + http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/tags/2.0.11.GA Modified: projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml 2013-12-13 12:44:11 UTC (rev 114588) +++ projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml 2013-12-13 12:50:29 UTC (rev 114589) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11-SNAPSHOT + 2.0.11.GA 4.0.0 jboss-spring-int From jboss-cvs-commits at lists.jboss.org Fri Dec 13 07:50:36 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 13 Dec 2013 07:50:36 -0500 Subject: [jboss-cvs] JBossAS SVN: r114590 - projects/microcontainer/tags. Message-ID: <201312131250.rBDCoaIC025034@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-13 07:50:36 -0500 (Fri, 13 Dec 2013) New Revision: 114590 Added: projects/microcontainer/tags/2.0.11.GA/ Log: [maven-scm] copy for tag 2.0.11.GA From jboss-cvs-commits at lists.jboss.org Fri Dec 13 07:50:43 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 13 Dec 2013 07:50:43 -0500 Subject: [jboss-cvs] JBossAS SVN: r114591 - in projects/microcontainer/branches/Branch_2_0: aop-mc-int and 5 other directories. Message-ID: <201312131250.rBDCohMB025062@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-13 07:50:43 -0500 (Fri, 13 Dec 2013) New Revision: 114591 Modified: projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml projects/microcontainer/branches/Branch_2_0/build/pom.xml projects/microcontainer/branches/Branch_2_0/dependency/pom.xml projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml projects/microcontainer/branches/Branch_2_0/kernel/pom.xml projects/microcontainer/branches/Branch_2_0/pom.xml projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml 2013-12-13 12:50:36 UTC (rev 114590) +++ projects/microcontainer/branches/Branch_2_0/aop-mc-int/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) @@ -15,7 +15,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11.GA + 2.0.12-SNAPSHOT 4.0.0 jboss-aop-mc-int Modified: projects/microcontainer/branches/Branch_2_0/build/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/build/pom.xml 2013-12-13 12:50:36 UTC (rev 114590) +++ projects/microcontainer/branches/Branch_2_0/build/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) @@ -12,12 +12,12 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11.GA + 2.0.12-SNAPSHOT 4.0.0 org.jboss.microcontainer jboss-microcontainer-dist - 2.0.11.GA + 2.0.12-SNAPSHOT pom JBoss Microcontainer Distribution Build Modified: projects/microcontainer/branches/Branch_2_0/dependency/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/dependency/pom.xml 2013-12-13 12:50:36 UTC (rev 114590) +++ projects/microcontainer/branches/Branch_2_0/dependency/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11.GA + 2.0.12-SNAPSHOT 4.0.0 jboss-dependency @@ -11,9 +11,9 @@ http://www.jboss.com/products/jbossmc JBoss Microcontainer Dependency - scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA/dependency - scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA/dependency - scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA/dependency + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/dependency + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/dependency + http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/branches/Branch_2_0/dependency Modified: projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml 2013-12-13 12:50:36 UTC (rev 114590) +++ projects/microcontainer/branches/Branch_2_0/guice-int/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11.GA + 2.0.12-SNAPSHOT 4.0.0 jboss-guice-int Modified: projects/microcontainer/branches/Branch_2_0/kernel/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/kernel/pom.xml 2013-12-13 12:50:36 UTC (rev 114590) +++ projects/microcontainer/branches/Branch_2_0/kernel/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11.GA + 2.0.12-SNAPSHOT 4.0.0 jboss-kernel Modified: projects/microcontainer/branches/Branch_2_0/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/pom.xml 2013-12-13 12:50:36 UTC (rev 114590) +++ projects/microcontainer/branches/Branch_2_0/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) @@ -7,7 +7,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11.GA + 2.0.12-SNAPSHOT pom JBoss Microcontainer Parent POM http://www.jboss.org/jbossmc/ @@ -16,9 +16,9 @@ and configuration. - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA - scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.11.GA - http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/tags/2.0.11.GA + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/ + scm:svn:https://svn.jboss.org/repos/jbossas/projects/microcontainer/branches/Branch_2_0/ + http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/branches/Branch_2_0/ Modified: projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml =================================================================== --- projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml 2013-12-13 12:50:36 UTC (rev 114590) +++ projects/microcontainer/branches/Branch_2_0/spring-int/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) @@ -2,7 +2,7 @@ org.jboss.microcontainer jboss-microcontainer - 2.0.11.GA + 2.0.12-SNAPSHOT 4.0.0 jboss-spring-int From jboss-cvs-commits at lists.jboss.org Mon Dec 16 00:57:07 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 00:57:07 -0500 Subject: [jboss-cvs] JBossAS SVN: r114592 - branches/JBPAPP_5/component-matrix. Message-ID: <201312160557.rBG5v7te020393@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-16 00:57:06 -0500 (Mon, 16 Dec 2013) New Revision: 114592 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10919 Upgrade jboss-metadata to 1.0.7 Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-13 12:50:43 UTC (rev 114591) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-16 05:57:06 UTC (rev 114592) @@ -81,7 +81,7 @@ 1.1.2.GA-patch-01 2.1.1.SP2 2.0.3.GA - 1.0.6.GA + 1.0.7.GA 2.0.10.GA 5.0.3.GA_CP02 2.0.4.GA From jboss-cvs-commits at lists.jboss.org Mon Dec 16 04:35:48 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 04:35:48 -0500 Subject: [jboss-cvs] JBossAS SVN: r114593 - projects/ejb3/trunk/common. Message-ID: <201312160935.rBG9ZmMQ020761@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 04:35:48 -0500 (Mon, 16 Dec 2013) New Revision: 114593 Modified: projects/ejb3/trunk/common/pom.xml Log: [maven-release-plugin] prepare release jboss-ejb3-common-1.0.4 Modified: projects/ejb3/trunk/common/pom.xml =================================================================== --- projects/ejb3/trunk/common/pom.xml 2013-12-16 05:57:06 UTC (rev 114592) +++ projects/ejb3/trunk/common/pom.xml 2013-12-16 09:35:48 UTC (rev 114593) @@ -14,7 +14,7 @@ org.jboss.ejb3 jboss-ejb3-common - 1.0.4-SNAPSHOT + 1.0.4 JBoss EJB 3.0 Common Utilities JBoss EJB 3.0 Utilities Common to all Components @@ -109,4 +109,10 @@ + + + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 + From jboss-cvs-commits at lists.jboss.org Mon Dec 16 04:36:07 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 04:36:07 -0500 Subject: [jboss-cvs] JBossAS SVN: r114594 - in projects/ejb3/tags: jboss-ejb3-common-1.0.4 and 1 other directory. Message-ID: <201312160936.rBG9a74j020780@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 04:36:06 -0500 (Mon, 16 Dec 2013) New Revision: 114594 Added: projects/ejb3/tags/jboss-ejb3-common-1.0.4/ projects/ejb3/tags/jboss-ejb3-common-1.0.4/pom.xml Removed: projects/ejb3/tags/jboss-ejb3-common-1.0.4/pom.xml Log: [maven-release-plugin] copy for tag jboss-ejb3-common-1.0.4 Deleted: projects/ejb3/tags/jboss-ejb3-common-1.0.4/pom.xml =================================================================== --- projects/ejb3/trunk/common/pom.xml 2013-12-16 05:57:06 UTC (rev 114592) +++ projects/ejb3/tags/jboss-ejb3-common-1.0.4/pom.xml 2013-12-16 09:36:06 UTC (rev 114594) @@ -1,112 +0,0 @@ - - - - - jboss-ejb3-build - org.jboss.ejb3 - 1.0.13 - ../build/pom.xml - - - - 4.0.0 - - - org.jboss.ejb3 - jboss-ejb3-common - 1.0.4-SNAPSHOT - JBoss EJB 3.0 Common Utilities - - JBoss EJB 3.0 Utilities Common to all Components - - http://www.jboss.org/jbossejb3/ - - - - - - - - - maven-assembly-plugin - 2.2-beta-1 - - - make-assembly - package - - attached - - - - - - jboss-ejb3-common-client.xml - - true - - false - - - - - - - - - - - - - - - junit - junit - - - - - org.jboss.aop - jboss-aop - - - - - org.jboss.logging - jboss-logging-spi - - - - org.jboss.logging - jboss-logging-log4j - test - - - - org.jboss.microcontainer - jboss-kernel - - - - org.jboss.metadata - jboss-metadata - - - - org.jboss.security - jboss-security-spi - 2.0.2.SP1 - - - - org.jboss.deployers - jboss-deployers-spi - - - - Copied: projects/ejb3/tags/jboss-ejb3-common-1.0.4/pom.xml (from rev 114593, projects/ejb3/trunk/common/pom.xml) =================================================================== --- projects/ejb3/tags/jboss-ejb3-common-1.0.4/pom.xml (rev 0) +++ projects/ejb3/tags/jboss-ejb3-common-1.0.4/pom.xml 2013-12-16 09:36:06 UTC (rev 114594) @@ -0,0 +1,118 @@ + + + + + jboss-ejb3-build + org.jboss.ejb3 + 1.0.13 + ../build/pom.xml + + + + 4.0.0 + + + org.jboss.ejb3 + jboss-ejb3-common + 1.0.4 + JBoss EJB 3.0 Common Utilities + + JBoss EJB 3.0 Utilities Common to all Components + + http://www.jboss.org/jbossejb3/ + + + + + + + + + maven-assembly-plugin + 2.2-beta-1 + + + make-assembly + package + + attached + + + + + + jboss-ejb3-common-client.xml + + true + + false + + + + + + + + + + + + + + + junit + junit + + + + + org.jboss.aop + jboss-aop + + + + + org.jboss.logging + jboss-logging-spi + + + + org.jboss.logging + jboss-logging-log4j + test + + + + org.jboss.microcontainer + jboss-kernel + + + + org.jboss.metadata + jboss-metadata + + + + org.jboss.security + jboss-security-spi + 2.0.2.SP1 + + + + org.jboss.deployers + jboss-deployers-spi + + + + + + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 + + From jboss-cvs-commits at lists.jboss.org Mon Dec 16 04:36:19 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 04:36:19 -0500 Subject: [jboss-cvs] JBossAS SVN: r114595 - projects/ejb3/trunk/common. Message-ID: <201312160936.rBG9aJ0E020798@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 04:36:18 -0500 (Mon, 16 Dec 2013) New Revision: 114595 Modified: projects/ejb3/trunk/common/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/ejb3/trunk/common/pom.xml =================================================================== --- projects/ejb3/trunk/common/pom.xml 2013-12-16 09:36:06 UTC (rev 114594) +++ projects/ejb3/trunk/common/pom.xml 2013-12-16 09:36:18 UTC (rev 114595) @@ -14,7 +14,7 @@ org.jboss.ejb3 jboss-ejb3-common - 1.0.4 + 1.0.5-SNAPSHOT JBoss EJB 3.0 Common Utilities JBoss EJB 3.0 Utilities Common to all Components @@ -109,10 +109,4 @@ - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 - scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 - http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-common-1.0.4 - From jboss-cvs-commits at lists.jboss.org Mon Dec 16 04:49:04 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 04:49:04 -0500 Subject: [jboss-cvs] JBossAS SVN: r114596 - in branches/JBPAPP_5/testsuite/src/resources/jbossts: scripts and 1 other directory. Message-ID: <201312160949.rBG9n4LZ021684@svn01.web.mwc.hst.phx2.redhat.com> Author: ochaloup Date: 2013-12-16 04:49:04 -0500 (Mon, 16 Dec 2013) New Revision: 114596 Added: branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgres92-xa-ds.xml branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgresplus92-xa-ds.xml Modified: branches/JBPAPP_5/testsuite/src/resources/jbossts/scripts/as-tests.xml Log: [JBPAPP-10928] Enhancing crash recovery test to run PostGres (plus) 9.2 dbs Added: branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgres92-xa-ds.xml =================================================================== --- branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgres92-xa-ds.xml (rev 0) +++ branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgres92-xa-ds.xml 2013-12-16 09:49:04 UTC (rev 114596) @@ -0,0 +1,12 @@ + + + + CrashRecoveryDS + true + org.postgresql.xa.PGXADataSource + db14.mw.lab.eng.bos.redhat.com + 5432 + crashrec + @CREDENTIALS@ + + Property changes on: branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgres92-xa-ds.xml ___________________________________________________________________ Added: svn:mime-type + text/xml Added: branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgresplus92-xa-ds.xml =================================================================== --- branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgresplus92-xa-ds.xml (rev 0) +++ branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgresplus92-xa-ds.xml 2013-12-16 09:49:04 UTC (rev 114596) @@ -0,0 +1,12 @@ + + + + CrashRecoveryDS + true + com.edb.xa.PGXADataSource + db15.mw.lab.eng.bos.redhat.com + 5432 + crashrec + @CREDENTIALS@ + + Property changes on: branches/JBPAPP_5/testsuite/src/resources/jbossts/resources/postgresplus92-xa-ds.xml ___________________________________________________________________ Added: svn:mime-type + text/xml Modified: branches/JBPAPP_5/testsuite/src/resources/jbossts/scripts/as-tests.xml =================================================================== --- branches/JBPAPP_5/testsuite/src/resources/jbossts/scripts/as-tests.xml 2013-12-16 09:36:18 UTC (rev 114595) +++ branches/JBPAPP_5/testsuite/src/resources/jbossts/scripts/as-tests.xml 2013-12-16 09:49:04 UTC (rev 114596) @@ -75,6 +75,12 @@ + + + + + + @@ -131,6 +137,8 @@ + + @@ -219,6 +227,8 @@ + + @@ -276,7 +286,23 @@ - + + + + + + + + + + + + + + + + + @@ -757,6 +783,8 @@ + + @@ -767,7 +795,7 @@ - + @@ -775,6 +803,8 @@ + + @@ -821,6 +851,9 @@ get.driver.mssql_2012, get.driver.psql_9.0, get.driver.psql_9.1, + get.driver.psql_9.2, + get.driver.psqlplus_9.2, + get.driver.psql_9.2, get.driver.psql_8.4, get.driver.psql_8.3, get.driver.psql_8.2, @@ -873,10 +906,18 @@ - - - + + + + + + + + + From jboss-cvs-commits at lists.jboss.org Mon Dec 16 06:10:47 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 06:10:47 -0500 Subject: [jboss-cvs] JBossAS SVN: r114597 - projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP. Message-ID: <201312161110.rBGBAlS1004718@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 06:10:47 -0500 (Mon, 16 Dec 2013) New Revision: 114597 Modified: projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml Log: [maven-release-plugin] prepare release jboss-ejb3-proxy-clustered-1.0.3.SP2 Modified: projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml 2013-12-16 09:49:04 UTC (rev 114596) +++ projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml 2013-12-16 11:10:47 UTC (rev 114597) @@ -13,7 +13,7 @@ org.jboss.ejb3 jboss-ejb3-proxy-clustered - 1.0.3.SP1-SNAPSHOT + 1.0.3.SP2 JBoss EJB 3.0 Clustered Proxy JBoss EJB3 Clustered Proxy Component http://www.jboss.org/jbossejb3 @@ -164,8 +164,8 @@ - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 - scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 - http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 From jboss-cvs-commits at lists.jboss.org Mon Dec 16 06:11:08 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 06:11:08 -0500 Subject: [jboss-cvs] JBossAS SVN: r114598 - in projects/ejb3/tags: jboss-ejb3-proxy-clustered-1.0.3.SP2 and 1 other directory. Message-ID: <201312161111.rBGBB8hQ004797@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 06:11:08 -0500 (Mon, 16 Dec 2013) New Revision: 114598 Added: projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/ projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/pom.xml Removed: projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/pom.xml Log: [maven-release-plugin] copy for tag jboss-ejb3-proxy-clustered-1.0.3.SP2 Property changes on: projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 ___________________________________________________________________ Added: svn:ignore + eclipse-target target-eclipse target Added: svn:mergeinfo + /projects/ejb3/trunk/proxy-clustered:111863 Deleted: projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml 2013-12-16 05:57:06 UTC (rev 114592) +++ projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/pom.xml 2013-12-16 11:11:08 UTC (rev 114598) @@ -1,171 +0,0 @@ - - - - - org.jboss.ejb3 - jboss-ejb3-build - 1.0.3 - - - - 4.0.0 - - - org.jboss.ejb3 - jboss-ejb3-proxy-clustered - 1.0.3.SP1-SNAPSHOT - JBoss EJB 3.0 Clustered Proxy - JBoss EJB3 Clustered Proxy Component - http://www.jboss.org/jbossejb3 - - - - - - - - - maven-dependency-plugin - - - build-cp-file - validate - - build-classpath - - - target/cp.txt - - - - - - - - maven-assembly-plugin - 2.2-beta-1 - - - make-assembly - package - - attached - - - - - - jboss-ejb3-proxy-clustered-client.xml - - true - - false - - - - - - - - - - - - - - - - - junit - junit - test - - - - - org.jboss.ejb3 - jboss-ejb3-proxy-impl - 1.0.6 - - - - org.jboss.ejb3 - jboss-ejb3-proxy-spi - 1.0.0 - - - - org.jboss.naming - jnpserver - 5.0.0.CR1 - compile - - - org.jboss - jboss-common-core - - - - - - org.jboss.cluster - jboss-ha-client - 1.1.1.GA - - - org.jboss.aspects - jboss-remoting-aspects - - - jboss.remoting - jboss-remoting - - - org.jboss.aop - jboss-aop - - - - - - org.jboss.cluster - jboss-ha-server-api - 1.1.1.GA - - - org.jboss - jboss-common-core - - - org.jboss.logging - jboss-logging-spi - - - org.jboss.cache - jbosscache-core - - - org.jboss.cache - jbosscache-pojo - - - jgroups - jgroups - - - - - - - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 - scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 - http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 - - Copied: projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/pom.xml (from rev 114597, projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml) =================================================================== --- projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/pom.xml (rev 0) +++ projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2/pom.xml 2013-12-16 11:11:08 UTC (rev 114598) @@ -0,0 +1,171 @@ + + + + + org.jboss.ejb3 + jboss-ejb3-build + 1.0.3 + + + + 4.0.0 + + + org.jboss.ejb3 + jboss-ejb3-proxy-clustered + 1.0.3.SP2 + JBoss EJB 3.0 Clustered Proxy + JBoss EJB3 Clustered Proxy Component + http://www.jboss.org/jbossejb3 + + + + + + + + + maven-dependency-plugin + + + build-cp-file + validate + + build-classpath + + + target/cp.txt + + + + + + + + maven-assembly-plugin + 2.2-beta-1 + + + make-assembly + package + + attached + + + + + + jboss-ejb3-proxy-clustered-client.xml + + true + + false + + + + + + + + + + + + + + + + + junit + junit + test + + + + + org.jboss.ejb3 + jboss-ejb3-proxy-impl + 1.0.6 + + + + org.jboss.ejb3 + jboss-ejb3-proxy-spi + 1.0.0 + + + + org.jboss.naming + jnpserver + 5.0.0.CR1 + compile + + + org.jboss + jboss-common-core + + + + + + org.jboss.cluster + jboss-ha-client + 1.1.1.GA + + + org.jboss.aspects + jboss-remoting-aspects + + + jboss.remoting + jboss-remoting + + + org.jboss.aop + jboss-aop + + + + + + org.jboss.cluster + jboss-ha-server-api + 1.1.1.GA + + + org.jboss + jboss-common-core + + + org.jboss.logging + jboss-logging-spi + + + org.jboss.cache + jbosscache-core + + + org.jboss.cache + jbosscache-pojo + + + jgroups + jgroups + + + + + + + + + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 + + From jboss-cvs-commits at lists.jboss.org Mon Dec 16 06:11:15 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 06:11:15 -0500 Subject: [jboss-cvs] JBossAS SVN: r114599 - projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP. Message-ID: <201312161111.rBGBBFbn004823@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 06:11:15 -0500 (Mon, 16 Dec 2013) New Revision: 114599 Modified: projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml Log: [maven-release-plugin] prepare for next development iteration Modified: projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml =================================================================== --- projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml 2013-12-16 11:11:08 UTC (rev 114598) +++ projects/ejb3/branches/jboss-ejb3-proxy-clustered-1.0.3.SP/pom.xml 2013-12-16 11:11:15 UTC (rev 114599) @@ -13,7 +13,7 @@ org.jboss.ejb3 jboss-ejb3-proxy-clustered - 1.0.3.SP2 + 1.0.3.SP3-SNAPSHOT JBoss EJB 3.0 Clustered Proxy JBoss EJB3 Clustered Proxy Component http://www.jboss.org/jbossejb3 @@ -164,8 +164,8 @@ - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 - scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 - http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP2 + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 + scm:svn:https://svn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 + http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/tags/jboss-ejb3-proxy-clustered-1.0.3.SP1 From jboss-cvs-commits at lists.jboss.org Mon Dec 16 20:59:23 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 20:59:23 -0500 Subject: [jboss-cvs] JBossAS SVN: r114600 - in projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security: vault and 1 other directory. Message-ID: <201312170159.rBH1xNen026766@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 20:59:22 -0500 (Mon, 16 Dec 2013) New Revision: 114600 Added: projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/ projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityActions.java projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVault.java projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultException.java projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultFactory.java projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultUtil.java Log: [SECURITY-775], backport vault functionality in security-spi for EAP5.3 Added: projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityActions.java =================================================================== --- projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityActions.java (rev 0) +++ projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityActions.java 2013-12-17 01:59:22 UTC (rev 114600) @@ -0,0 +1,64 @@ +/* + * 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.vault; + +import java.security.AccessController; +import java.security.PrivilegedAction; + +/** + * Privileged Blocks + * @author Anil.Saldhana at redhat.com + * @since Aug 12, 2011 + */ +public class SecurityActions +{ + static Class loadClass(final Class clazz, final String fqn) + { + return AccessController.doPrivileged(new PrivilegedAction>() + { + public Class run() + { + ClassLoader cl = clazz.getClassLoader(); + Class loadedClass = null; + try + { + loadedClass = cl.loadClass(fqn); + } + catch (ClassNotFoundException e) + { + } + if(loadedClass == null) + { + try + { + loadedClass = Thread.currentThread().getContextClassLoader().loadClass(fqn); + } + catch (ClassNotFoundException e) + { + } + } + return loadedClass; + } + }); + + } +} \ No newline at end of file Added: projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVault.java =================================================================== --- projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVault.java (rev 0) +++ projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVault.java 2013-12-17 01:59:22 UTC (rev 114600) @@ -0,0 +1,101 @@ +/* + * 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.vault; + +import java.util.Map; +import java.util.Set; + +/** + * Vault for secure storage of attributes + * @author Anil.Saldhana at redhat.com + * @since Aug 12, 2011 + */ +public interface SecurityVault +{ + /** + * Initialize the vault + * @param options + */ + void init(Map options) throws SecurityVaultException; + + /** + * Determine if the vault is initialized + * @return + */ + boolean isInitialized(); + + /** + * Retrieve the shared key from the vault + * @param handshakeOptions a set of options that the vault identifies for handshake + * @return + * @throws SecurityVaultException + */ + byte[] handshake(Map handshakeOptions) throws SecurityVaultException; + + /** + * Get the currently vaulted VaultBlock_attribute Names + * @return + * @throws SecurityVaultException + */ + Set keyList() throws SecurityVaultException; + + /** + * Check whether an attribute value exists in the vault + * @param vaultBlock + * @param attributeName + * @return + * @throws SecurityVaultException + * @since v4.0.3 + */ + boolean exists(String vaultBlock, String attributeName) throws SecurityVaultException; + + /** + * Store an attribute value + * @param vaultBlock a string value that brings in the uniqueness + * @param attributeName name of the attribute + * @param attributeValue + * @param sharedKey + * @throws SecurityVaultException + */ + void store(String vaultBlock, String attributeName,char[] attributeValue, byte[] sharedKey) throws SecurityVaultException; + + /** + * Retrieve the attribute value + * @param vaultBlock + * @param attributeName + * @param sharedKey + * @return + * @throws SecurityVaultException + */ + char[] retrieve(String vaultBlock, String attributeName, byte[] sharedKey) throws SecurityVaultException; + + /** + * Remove an existing attribute value + * @param vaultBlock + * @param attributeName + * @param sharedKey + * @return true if remove was successful, false otherwise + * @throws SecurityVaultException + * @since v4.0.4.final + */ + boolean remove(String vaultBlock, String attributeName, byte[] sharedKey) throws SecurityVaultException; +} \ No newline at end of file Added: projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultException.java =================================================================== --- projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultException.java (rev 0) +++ projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultException.java 2013-12-17 01:59:22 UTC (rev 114600) @@ -0,0 +1,54 @@ +/* + * 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.vault; + +import java.security.GeneralSecurityException; + +/** + * General exception thrown from the vault operations + * @author Anil.Saldhana at redhat.com + * @since Aug 12, 2011 + */ +public class SecurityVaultException extends GeneralSecurityException +{ + private static final long serialVersionUID = -463686701228652165L; + + public SecurityVaultException() + { + super(); + } + + public SecurityVaultException(String message, Throwable cause) + { + super(message, cause); + } + + public SecurityVaultException(String msg) + { + super(msg); + } + + public SecurityVaultException(Throwable cause) + { + super(cause); + } +} \ No newline at end of file Added: projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultFactory.java =================================================================== --- projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultFactory.java (rev 0) +++ projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultFactory.java 2013-12-17 01:59:22 UTC (rev 114600) @@ -0,0 +1,73 @@ +/* + * 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.vault; + +/** + * A factory to instantiate a {@link SecurityVault} + * @author Anil.Saldhana at redhat.com + * @since Aug 12, 2011 + */ +public class SecurityVaultFactory +{ + private static String defaultVault = "org.jboss.security.plugins.vault.PicketBoxSecurityVault"; + private static SecurityVault vault= null; + + /** + * Get an instance of {@link SecurityVault} + * Remember to initialize the vault by checking {@link SecurityVault#isInitialized()} + * @return an instance of {@link SecurityVault} + * @throws SecurityVaultException + */ + public static SecurityVault get() throws SecurityVaultException + { + return get(defaultVault); + } + + /** + * Get an instance of {@link SecurityVault} + * Remember to initialize the vault by checking {@link SecurityVault#isInitialized()} + * @param fqn fully qualified name of the vault implementation + * @return an instance of {@link SecurityVault} + * @throws SecurityVaultException + */ + public static SecurityVault get(String fqn) throws SecurityVaultException + { + if(fqn == null) + return get(); + + if(vault == null) + { + Class vaultClass = SecurityActions.loadClass(SecurityVaultFactory.class,fqn); + if(vaultClass == null) + throw new SecurityVaultException("Unable to load vault class"); + try + { + vault = (SecurityVault) vaultClass.newInstance(); + } + catch (Exception e) + { + throw new SecurityVaultException("Unable to instantiate vault class"); + } + } + return vault; + } +} \ No newline at end of file Added: projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultUtil.java =================================================================== --- projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultUtil.java (rev 0) +++ projects/security/security-spi/branches/Branch_2_0/spi/src/main/java/org/jboss/security/vault/SecurityVaultUtil.java 2013-12-17 01:59:22 UTC (rev 114600) @@ -0,0 +1,140 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2011, Red Hat, Inc., 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.vault; + +import java.util.StringTokenizer; + +/** + * Common utility methods associated with the {@link SecurityVault} + * + * @author anil saldhana + */ +public class SecurityVaultUtil +{ + public static final String VAULT_PREFIX = "VAULT"; + + /** + * Check whether the string has the format of the vault + * + * @param chars + * @return + */ + public static boolean isVaultFormat(char[] chars) + { + if(chars == null) + { + return false; + } + String str = new String(chars); + return str.startsWith(VAULT_PREFIX); + } + + /** + * Check whether the string has the format of the vault + * + * @param str + * @return + */ + public static boolean isVaultFormat(String str) + { + return str != null && str.startsWith(VAULT_PREFIX); + } + + /** + *

+ * Given the vault formatted string, retrieve the attribute value from the + * vault + *

+ *

+ * Note: the vault formatted string will be of the form + * VAULT::vault_block::attribute_name::sharedKey + *

+ * + *

+ * Vault Block acts as the unique id of a block such as "messaging", + * "security" etc Attribute Name is the name of the attribute whose value we + * are preserving Shared Key is the key generated by the off line vault + * during storage of the attribute value + *

+ * + * @param vaultString + * @return + * @throws SecurityVaultException + */ + public static char[] getValue(String vaultString) + throws SecurityVaultException + { + if (!isVaultFormat(vaultString)) + throw new IllegalArgumentException("Invalid vaultString format: " + vaultString); + + String[] tokens = tokens(vaultString); + + SecurityVault vault = SecurityVaultFactory.get(); + if (!vault.isInitialized()) + throw new SecurityVaultException("Vault is not initialized"); + return vault.retrieve(tokens[1], tokens[2], tokens[3].getBytes()); + } + + /** + * @see #getValue(String) + * @param vaultString + * @return + * @throws SecurityVaultException + */ + public static String getValueAsString(String vaultString) + throws SecurityVaultException + { + char[] val = getValue(vaultString); + if (val != null) + return new String(val); + return null; + } + + /** + * Get the value from the vault + * @param chars vaultified set of characters + * @return + * @throws SecurityVaultException + */ + public static char[] getValue(char[] chars) + throws SecurityVaultException + { + if(chars == null) + return null; + String vaultString = new String(chars); + return getValue(vaultString); + } + + private static String[] tokens(String vaultString) + { + StringTokenizer tokenizer = new StringTokenizer(vaultString, "::"); + int length = tokenizer.countTokens(); + String[] tokens = new String[length]; + + int index = 0; + while (tokenizer != null && tokenizer.hasMoreTokens()) + { + tokens[index++] = tokenizer.nextToken(); + } + return tokens; + } +} \ No newline at end of file From jboss-cvs-commits at lists.jboss.org Mon Dec 16 21:09:48 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 16 Dec 2013 21:09:48 -0500 Subject: [jboss-cvs] JBossAS SVN: r114601 - in projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src: main/java/org/jboss/security and 18 other directories. Message-ID: <201312170209.rBH29mgF000470@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-16 21:09:47 -0500 (Mon, 16 Dec 2013) New Revision: 114601 Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/SecurityVaultData.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/EncryptionUtil.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/KeyStoreUtil.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/SecurityActions.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/StringUtil.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/EncryptionUtilUnitTestCase.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/readme.txt projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault.jks projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault_data/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault_data/ENC.dat projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault_data/Shared.dat projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/readme.txt projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault.jks projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault_data/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault_data/readme.txt projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/replacement_keystore/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/replacement_keystore/replacement-vault.keystore projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/readme.txt projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault-jks.keystore projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault_data/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault_data/ENC.dat projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault_data/Shared.dat projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/readme.txt projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault-jceks.keystore projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault-replacement-jceks.keystore projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault_data/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault_data/VAULT.dat projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/readme.txt projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault-jceks.keystore projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault-replacement-jceks.keystore projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault_data/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault_data/VAULT.dat Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/CallerIdentityLoginModule.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/ConfiguredIdentityLoginModule.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapLoginModule.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/UsernamePasswordLoginModule.java Log: [SECURITY-775], backport vault functionality in jbosssx for EAP5.3 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/CallerIdentityLoginModule.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/CallerIdentityLoginModule.java 2013-12-17 01:59:22 UTC (rev 114600) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/CallerIdentityLoginModule.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -34,6 +34,8 @@ import org.jboss.logging.Logger; import org.jboss.security.RunAsIdentity; import org.jboss.security.SimplePrincipal; +import org.jboss.security.vault.SecurityVaultException; +import org.jboss.security.vault.SecurityVaultUtil; /** * A simple login module that simply associates the principal making the @@ -112,8 +114,17 @@ } else { - password = pass.toCharArray(); - } + if (SecurityVaultUtil.isVaultFormat(pass)) { + try { + pass = SecurityVaultUtil.getValueAsString(pass); + } catch (SecurityVaultException e) { + throw new RuntimeException(e); + } + password = pass.toCharArray(); + } else { + password = pass.toCharArray(); + } + } // Check the addRunAsRoles String flag = (String) options.get("addRunAsRoles"); @@ -151,6 +162,10 @@ if( userPassword != null ) { password = userPassword; + if(SecurityVaultUtil.isVaultFormat(password)) + { + password = SecurityVaultUtil.getValue(password); + } } if (user != null) Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/ConfiguredIdentityLoginModule.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/ConfiguredIdentityLoginModule.java 2013-12-17 01:59:22 UTC (rev 114600) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/resource/security/ConfiguredIdentityLoginModule.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -33,6 +33,8 @@ import org.jboss.logging.Logger; import org.jboss.security.SimplePrincipal; +import org.jboss.security.vault.SecurityVaultException; +import org.jboss.security.vault.SecurityVaultUtil; /** * A simple login module that simply associates the principal specified @@ -85,6 +87,20 @@ log.warn("Creating LoginModule with no configured password!"); password = ""; } + else + { + if(SecurityVaultUtil.isVaultFormat(password)) + { + try + { + password = SecurityVaultUtil.getValueAsString(password); + } + catch (SecurityVaultException e) + { + throw new RuntimeException(e); + } + } + } if(trace) log.trace("got principal: " + principalName + ", username: " + userName + ", password: ***"); Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java 2013-12-17 01:59:22 UTC (rev 114600) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -46,6 +46,7 @@ import org.jboss.security.SimpleGroup; import org.jboss.security.Util; +import org.jboss.security.vault.SecurityVaultUtil; /** The org.jboss.security.auth.spi.LdapExtLoginModule, added in jboss-4.0.3, is an @@ -391,6 +392,11 @@ char[] tmp = DecodeAction.decode(bindCredential, serviceName); bindCredential = new String(tmp); } + //Check if the credential is vaultified + if(bindCredential != null && SecurityVaultUtil.isVaultFormat(bindCredential)) + { + bindCredential = SecurityVaultUtil.getValueAsString(bindCredential); + } allowReferralsForAuth = Boolean.valueOf((String)options.get(ALLOW_REFERRALS_FOR_AUTH)).booleanValue(); baseDN = (String) options.get(BASE_CTX_DN); Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapLoginModule.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapLoginModule.java 2013-12-17 01:59:22 UTC (rev 114600) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapLoginModule.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -43,6 +43,7 @@ import javax.security.auth.login.LoginException; import org.jboss.security.SimpleGroup; +import org.jboss.security.vault.SecurityVaultUtil; /** * An implementation of LoginModule that authenticates against an LDAP server @@ -332,6 +333,11 @@ char[] tmp = DecodeAction.decode(bindCredential, serviceName); bindCredential = new String(tmp); } + //Check if the credential is vaultified + if(bindCredential != null && SecurityVaultUtil.isVaultFormat(bindCredential)) + { + bindCredential = SecurityVaultUtil.getValueAsString(bindCredential); + } String principalDNPrefix = (String) options.get(PRINCIPAL_DN_PREFIX_OPT); if (principalDNPrefix == null) Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/UsernamePasswordLoginModule.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/UsernamePasswordLoginModule.java 2013-12-17 01:59:22 UTC (rev 114600) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/UsernamePasswordLoginModule.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -39,6 +39,8 @@ import org.jboss.crypto.digest.DigestCallback; +import org.jboss.security.vault.SecurityVaultException; +import org.jboss.security.vault.SecurityVaultUtil; /** An abstract subclass of AbstractServerLoginModule that imposes * an identity == String username, credentials == String password view on @@ -263,8 +265,23 @@ // Hash the user entered password if password hashing is in use if( hashAlgorithm != null && hashUserPassword == true ) password = createPasswordHash(username, password, DIGEST_CALLBACK); + // Validate the password supplied by the subclass String expectedPassword = getUsersPassword(); + // Check if the password is vaultified + if(SecurityVaultUtil.isVaultFormat(expectedPassword)) + { + try + { + expectedPassword = SecurityVaultUtil.getValueAsString(expectedPassword); + } + catch (SecurityVaultException e) + { + LoginException le = new LoginException("Unable to get password value from vault"); + le.initCause(e); + throw le; + } + } // Allow the storeDigestCallback to hash the expected password if( hashAlgorithm != null && hashStorePassword == true ) expectedPassword = createPasswordHash(username, expectedPassword, STORE_DIGEST_CALLBACK); Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,653 @@ +/* + * 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.plugins.vault; + +import org.jboss.logging.Logger; +import org.jboss.security.plugins.PBEUtils; +import org.jboss.security.util.EncryptionUtil; +import org.jboss.security.util.KeyStoreUtil; +import org.jboss.security.util.StringUtil; +import org.jboss.security.vault.SecurityVault; +import org.jboss.security.vault.SecurityVaultException; + +import javax.crypto.SecretKey; +import javax.crypto.SecretKeyFactory; +import javax.crypto.spec.PBEKeySpec; +import javax.crypto.spec.PBEParameterSpec; +import javax.crypto.spec.SecretKeySpec; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.io.OutputStream; +import java.nio.channels.FileChannel; +import java.security.*; +import java.security.KeyStore.Entry; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; +import java.util.StringTokenizer; + +/** + * An instance of {@link SecurityVault} that uses + * a {@link KeyStore} + * The shared key just uses a concatenation of a {@link java.util.UUID} + * and a keystore alias. + * + * The following options are expected in the {@link SecurityVault#init(Map)} call: + * ENC_FILE_DIR: the location where the encoded files will be kept. End with "/" or "\" based on your platform + * KEYSTORE_URL: location where your keystore is located + * KEYSTORE_PASSWORD: Masked keystore password. Has to be prepended with MASK- + * KEYSTORE_ALIAS: Alias where the keypair is located + * SALT: salt of the masked password. Ensured it is 8 characters in length + * ITERATION_COUNT: Iteration Count of the masked password. + * KEY_SIZE: Key size of encryption. Default is 128 bytes. + * CREATE_KEYSTORE: Whether PicketBox Security Vault has to create missing key store in time of initialization. Default is "FALSE". Implies KEYSTORE_TYPE "JCEKS". + * KEYSTORE_TYPE: Key store type. Default is JCEKS. + * + * @author Anil.Saldhana at redhat.com + * @author Peter Skopek (pskopek_at_redhat_dot_com) + * @since Aug 12, 2011 + */ +public class PicketBoxSecurityVault implements SecurityVault +{ + protected boolean finishedInit = false; + + protected KeyStore keystore = null; + + protected String encryptionAlgorithm = "AES"; + + protected int keySize = 128; + + private char[] keyStorePWD = null; + + private String alias = null; + + private SecurityVaultData vaultContent = null; + + private SecretKey adminKey; + + private String decodedEncFileDir; + + private boolean createKeyStore = false; + + private String keyStoreType = defaultKeyStoreType; + + // options + public static final String ENC_FILE_DIR = "ENC_FILE_DIR"; + + public static final String KEYSTORE_URL = "KEYSTORE_URL"; + + public static final String KEYSTORE_PASSWORD = "KEYSTORE_PASSWORD"; + + public static final String KEYSTORE_ALIAS = "KEYSTORE_ALIAS"; + + public static final String SALT = "SALT"; + + public static final String ITERATION_COUNT = "ITERATION_COUNT"; + + public static final String PASS_MASK_PREFIX = "MASK-"; + + public static final String PUBLIC_CERT = "PUBLIC_CERT"; + + public static final String KEY_SIZE = "KEY_SIZE"; + + public static final String CREATE_KEYSTORE = "CREATE_KEYSTORE"; + + public static final String KEYSTORE_TYPE = "KEYSTORE_TYPE"; + + // backward compatibility constants + private static final String ENCODED_FILE = "ENC.dat"; + private static final String SHARED_KEY_FILE = "Shared.dat"; + private static final String ADMIN_KEY = "ADMIN_KEY"; + + protected static final String VAULT_CONTENT_FILE = "VAULT.dat"; // versioned vault data file + protected static final String defaultKeyStoreType = "JCEKS"; + + private static final Logger log = Logger.getLogger(PicketBoxSecurityVault.class); + + + /* + * @see org.jboss.security.vault.SecurityVault#init(java.util.Map) + */ + public void init(Map options) throws SecurityVaultException + { + if(options == null || options.isEmpty()) + throw new IllegalArgumentException("Options map options is null or empty"); + + String keystoreURL = (String) options.get(KEYSTORE_URL); + if(keystoreURL == null) + throw new SecurityVaultException("Option " + KEYSTORE_URL + "is null or empty"); + + if (keystoreURL.contains("${")){ + keystoreURL = keystoreURL.replaceAll(":", StringUtil.PROPERTY_DEFAULT_SEPARATOR); // replace single ":" with PL default + } + keystoreURL = StringUtil.getSystemPropertyAsString(keystoreURL); + + String maskedPassword = (String) options.get(KEYSTORE_PASSWORD); + if(maskedPassword == null) + throw new SecurityVaultException("Option " + KEYSTORE_PASSWORD + "is null or empty"); + if(maskedPassword.startsWith(PASS_MASK_PREFIX) == false) + throw new SecurityVaultException("Keystore password is not masked"); + + String salt = (String) options.get(SALT); + if(salt == null) + throw new SecurityVaultException("Option " + SALT + "is null or empty"); + + String iterationCountStr = (String) options.get(ITERATION_COUNT); + if(iterationCountStr == null) + throw new SecurityVaultException("Option " + ITERATION_COUNT + "is null or empty"); + int iterationCount = Integer.parseInt(iterationCountStr); + + this.alias = (String) options.get(KEYSTORE_ALIAS); + if(alias == null) + throw new SecurityVaultException("Option " + KEYSTORE_ALIAS + "is null or empty"); + + String keySizeStr = (String) options.get(KEY_SIZE); + if(keySizeStr != null) + { + keySize = Integer.parseInt(keySizeStr); + } + + String encFileDir = (String) options.get(ENC_FILE_DIR); + if(encFileDir == null) + throw new SecurityVaultException("Option " + ENC_FILE_DIR + "is null or empty"); + + + createKeyStore = (options.get(CREATE_KEYSTORE) != null ? Boolean.parseBoolean((String) options.get(CREATE_KEYSTORE)) + : createKeyStore); + keyStoreType = (options.get(KEYSTORE_TYPE) != null ? (String) options.get(KEYSTORE_TYPE) : defaultKeyStoreType); + + try { + String keystorePass = decode(maskedPassword, salt, iterationCount); + keyStorePWD = keystorePass.toCharArray(); + keystore = getKeyStore(keystoreURL); + + checkAndConvertKeyStoreToJCEKS(keystoreURL); + + } catch (Exception e) { + throw new SecurityVaultException(e); + } + + // read and possibly convert vault content + readVaultContent(keystoreURL, encFileDir); + + log.debug("Default Security Vault Implementation Initialized and Ready"); + finishedInit = true; + + + } + + /* + * @see org.jboss.security.vault.SecurityVault#isInitialized() + */ + public boolean isInitialized() + { + return finishedInit; + } + + /* + * @see org.jboss.security.vault.SecurityVault#handshake(java.util.Map) + */ + public byte[] handshake(Map handshakeOptions) throws SecurityVaultException { + return new byte[keySize]; + } + + /* + * @see org.jboss.security.vault.SecurityVault#keyList() + */ + public Set keyList() throws SecurityVaultException { + return vaultContent.getVaultDataKeys(); + } + + /* + * @see org.jboss.security.vault.SecurityVault#store(java.lang.String, java.lang.String, char[], byte[]) + */ + public void store(String vaultBlock, String attributeName, char[] attributeValue, byte[] sharedKey) + throws SecurityVaultException + { + if(StringUtil.isNullOrEmpty(vaultBlock)) + throw new IllegalArgumentException("Argument vaultBlock cannot be null"); + if(StringUtil.isNullOrEmpty(attributeName)) + throw new IllegalArgumentException("Argument attributeName cannot be null"); + + String av = new String(attributeValue); + + EncryptionUtil util = new EncryptionUtil(encryptionAlgorithm, keySize); + try + { + SecretKeySpec sKeySpec = new SecretKeySpec(adminKey.getEncoded(), encryptionAlgorithm); + byte[] encryptedData = util.encrypt(av.getBytes(), sKeySpec); + vaultContent.addVaultData(alias, vaultBlock, attributeName, encryptedData); + } + catch (Exception e1) + { + throw new SecurityVaultException("Unable to encrypt data", e1); + } + + try { + writeVaultData(); + } + catch (IOException e) { + throw new SecurityVaultException("Unable to write vault data file VAULT_CONTENT_FILE", e); + } + } + + /* + * @see org.jboss.security.vault.SecurityVault#retrieve(java.lang.String, java.lang.String, byte[]) + */ + public char[] retrieve(String vaultBlock, String attributeName, byte[] sharedKey) throws SecurityVaultException + { + if(StringUtil.isNullOrEmpty(vaultBlock)) + throw new IllegalArgumentException("Argument vaultBlock cannot be null"); + if(StringUtil.isNullOrEmpty(attributeName)) + throw new IllegalArgumentException("Argument attributeName cannot be null"); + + byte[] encryptedValue = vaultContent.getVaultData(alias, vaultBlock, attributeName); + + SecretKeySpec secretKeySpec = new SecretKeySpec(adminKey.getEncoded(), encryptionAlgorithm); + EncryptionUtil encUtil = new EncryptionUtil(encryptionAlgorithm, keySize); + try + { + return (new String(encUtil.decrypt(encryptedValue, secretKeySpec))).toCharArray(); + } + catch (Exception e) + { + throw new SecurityVaultException(e); + } + } + + /** + * @see org.jboss.security.vault.SecurityVault#exists(String, String) + */ + public boolean exists(String vaultBlock, String attributeName) throws SecurityVaultException { + return vaultContent.getVaultData(alias, vaultBlock, attributeName) != null; + } + + /* + * @see org.jboss.security.vault.SecurityVault#remove(java.lang.String, java.lang.String, byte[]) + */ + public boolean remove(String vaultBlock, String attributeName, byte[] sharedKey) + throws SecurityVaultException + { + try { + vaultContent.deleteVaultData(alias, vaultBlock, attributeName); + } + catch(Exception e) { + return false; + } + return true; + } + + private String decode(String maskedString, String salt, int iterationCount) throws Exception + { + String pbeAlgo = "PBEwithMD5andDES"; + if (maskedString.startsWith(PASS_MASK_PREFIX)) + { + // Create the PBE secret key + SecretKeyFactory factory = SecretKeyFactory.getInstance(pbeAlgo); + + char[] password = "somearbitrarycrazystringthatdoesnotmatter".toCharArray(); + PBEParameterSpec cipherSpec = new PBEParameterSpec(salt.getBytes(), iterationCount); + PBEKeySpec keySpec = new PBEKeySpec(password); + SecretKey cipherKey = factory.generateSecret(keySpec); + + maskedString = maskedString.substring(PASS_MASK_PREFIX.length()); + String decodedValue = PBEUtils.decode64(maskedString, pbeAlgo, cipherKey, cipherSpec); + + maskedString = decodedValue; + } + return maskedString; + } + + private void setUpVault(String keystoreURL, String decodedEncFileDir) throws NoSuchAlgorithmException, IOException + { + vaultContent = new SecurityVaultData(); + writeVaultData(); + + SecretKey sk = getAdminKey(); + if (sk != null) { + adminKey = sk; + } + else { + // try to generate new admin key and store it under specified alias + EncryptionUtil util = new EncryptionUtil(encryptionAlgorithm, keySize); + sk = util.generateKey(); + KeyStore.SecretKeyEntry skEntry = new KeyStore.SecretKeyEntry(sk); + try { + keystore.setEntry(alias, skEntry, new KeyStore.PasswordProtection(keyStorePWD)); + adminKey = sk; + saveKeyStoreToFile(keystoreURL); + } + catch (KeyStoreException e) { + throw new RuntimeException("There is no SecretKey under the alias " + alias +" and the alias is already used to denote diffrent crypto object in the keystore."); + } + catch (Exception e) { + throw new RuntimeException("Unable to store keystore to file " + keystoreURL, e); + } + } + } + + private void writeVaultData() throws IOException + { + FileOutputStream fos = null; + ObjectOutputStream oos = null; + try + { + fos = new FileOutputStream(decodedEncFileDir + VAULT_CONTENT_FILE); + oos = new ObjectOutputStream(fos); + oos.writeObject(vaultContent); + } + finally + { + safeClose(oos); + safeClose(fos); + } + } + + private boolean vaultFileExists(String fileName) + { + File file = new File(this.decodedEncFileDir + fileName); + return file != null && file.exists(); + } + + private boolean directoryExists(String dir) + { + File file = new File(dir); + return file != null && file.exists(); + } + + private void safeClose(InputStream fis) + { + try + { + if(fis != null) + { + fis.close(); + } + } + catch(Exception e) + {} + } + + private void safeClose(OutputStream os) + { + try + { + if(os != null) + { + os.close(); + } + } + catch(Exception e) + {} + } + + private void readVaultContent(String keystoreURL, String encFileDir) throws SecurityVaultException { + + try { + if (encFileDir.contains("${)")) { + encFileDir = encFileDir.replaceAll(":", StringUtil.PROPERTY_DEFAULT_SEPARATOR); + } + decodedEncFileDir = StringUtil.getSystemPropertyAsString(encFileDir); // replace single ":" with PL default + + if (directoryExists(decodedEncFileDir) == false) + throw new SecurityVaultException("File or directory " + decodedEncFileDir + " does not exist"); + + if (!(decodedEncFileDir.endsWith("/") || decodedEncFileDir.endsWith("\\"))) { + decodedEncFileDir = decodedEncFileDir + File.separator; + } + + if (vaultFileExists(ENCODED_FILE)) { + if (vaultFileExists(VAULT_CONTENT_FILE)) { + log.error("Security Vault contains both covnerted " + VAULT_CONTENT_FILE + " and pre-conversion data " + ENCODED_FILE + ". Try to delete " + decodedEncFileDir + ENCODED_FILE + " file and start over again."); + throw new RuntimeException("Security Vault contains both covnerted " + VAULT_CONTENT_FILE + " and pre-conversion data " + ENCODED_FILE + ", failed to load vault"); + } else { + convertVaultContent(keystoreURL, alias); + } + } else { + if (vaultFileExists(VAULT_CONTENT_FILE)) { + readVersionedVaultContent(); + } else { + setUpVault(keystoreURL, decodedEncFileDir); + } + } + + } catch (Exception e) { + throw new SecurityVaultException(e); + } + + } + + @SuppressWarnings("unchecked") + private void convertVaultContent(String keystoreURL, String alias) throws Exception { + FileInputStream fis = null; + ObjectInputStream ois = null; + Map theContent; + + try { + fis = new FileInputStream(decodedEncFileDir + ENCODED_FILE); + ois = new ObjectInputStream(fis); + theContent = (Map) ois.readObject(); + } finally { + safeClose(fis); + safeClose(ois); + } + + // create new SecurityVaultData object for transformed vault data + vaultContent = new SecurityVaultData(); + + adminKey = null; + for (String key: theContent.keySet()) { + if (key.equals(ADMIN_KEY)) { + byte[] admin_key = theContent.get(key); + adminKey = new SecretKeySpec(admin_key, encryptionAlgorithm); + } + else { + if (key.contains("_")) { + StringTokenizer tokenizer = new StringTokenizer(key, "_"); + String vaultBlock = tokenizer.nextToken(); + String attributeName = tokenizer.nextToken(); + if (tokenizer.hasMoreTokens()) { + attributeName = key.substring(vaultBlock.length() + 1); + log.info("Ambiguos vault block and attribute name stored in original security vault. Delimiter _ is part of vault block or attribute name. Took the first delimiter. Result vault block " + vaultBlock + " attribute name " + attributeName + ". Modify security vault manually."); + } + byte[] encodedAttributeValue = theContent.get(key); + vaultContent.addVaultData(alias, vaultBlock, attributeName, encodedAttributeValue); + } + } + } + if (adminKey == null) { + throw new RuntimeException("Security Vault conversion unsuccessful missing admin key in original vault data"); + } + + // add secret key (admin_key) to keystore + KeyStore.SecretKeyEntry skEntry = new KeyStore.SecretKeyEntry(adminKey); + KeyStore.PasswordProtection p = new KeyStore.PasswordProtection(keyStorePWD); + Entry e = keystore.getEntry(alias, p); + if (e != null) { + // rename the old entry + String originalAlias = alias + "-original"; + keystore.setEntry(originalAlias, e, p); + keystore.deleteEntry(alias); + } + keystore.setEntry(alias, skEntry, new KeyStore.PasswordProtection(keyStorePWD)); + + // save the current keystore + saveKeyStoreToFile(keystoreURL); + + // backup original vault file (shared key file cannot be saved for obvious reasons + copyFile(new File(decodedEncFileDir + ENCODED_FILE), new File(decodedEncFileDir + ENCODED_FILE + ".original")); + + // save vault data file + writeVaultData(); + + // delete original vault files + File f = new File(decodedEncFileDir + ENCODED_FILE); + if (!f.delete()) { + log.warn("Cannot delete original security vault file " + f.getCanonicalPath() + ". Delete the file manually before next start, please."); + } + f = new File(decodedEncFileDir + SHARED_KEY_FILE); + if (!f.delete()) { + log.warn("Cannot delete original security vault file " + f.getCanonicalPath() + ". Delete the file manually before next start, please."); + } + + } + + private void saveKeyStoreToFile(String keystoreURL) throws Exception { + keystore.store(new FileOutputStream(new File(keystoreURL)), keyStorePWD); + } + + private void checkAndConvertKeyStoreToJCEKS(String keystoreURL) throws Exception { + if (keystore.getType().equalsIgnoreCase("JKS")) { + + // backup original keystore file + copyFile(new File(keystoreURL), new File(keystoreURL + ".original")); + + KeyStore jceks = KeyStoreUtil.createKeyStore("JCEKS", keyStorePWD); + + Enumeration aliases = keystore.aliases(); + while (aliases.hasMoreElements()) { + String entryAlias = aliases.nextElement(); + KeyStore.PasswordProtection p = new KeyStore.PasswordProtection(keyStorePWD); + KeyStore.Entry e = keystore.getEntry(entryAlias, p); + jceks.setEntry(entryAlias, e, p); + } + keystore = jceks; + keyStoreType = "JCEKS"; // after conversion we have to change keyStoreType to the one we really have + saveKeyStoreToFile(keystoreURL); + log.info("Security Vault key store successfuly converted to JCEKS type " + KEYSTORE_URL + ". From now on use JCEKS as KEYSTORE_TYPE in Security Vault configuration."); + } + } + + + + private void readVersionedVaultContent() throws Exception { + FileInputStream fis = null; + ObjectInputStream ois = null; + try { + fis = new FileInputStream(decodedEncFileDir + VAULT_CONTENT_FILE); + ois = new ObjectInputStream(fis); + vaultContent = (SecurityVaultData) ois.readObject(); + } finally { + safeClose(fis); + safeClose(ois); + } + + adminKey = getAdminKey(); + if (adminKey == null) { + throw new RuntimeException("Security Vault does not contain SecretKey entry under alias " + alias); + } + } + + /** + * Returns SecretKey stored in defined keystore under defined alias. + * If no such SecretKey exists returns null. + * @return + */ + private SecretKey getAdminKey() { + try { + Entry e = keystore.getEntry(alias, new KeyStore.PasswordProtection(keyStorePWD)); + if (e instanceof KeyStore.SecretKeyEntry) { + return ((KeyStore.SecretKeyEntry)e).getSecretKey(); + } + } + catch (Exception e) { + log.info("Security Vault does not contain SecretKey entry under alias " + alias); + return null; + } + return null; + } + + /** + * Copy file method. + * + * @param sourceFile + * @param destFile + * @throws IOException + */ + public static void copyFile(File sourceFile, File destFile) throws IOException { + if (!destFile.exists()) { + destFile.createNewFile(); + } + FileInputStream fIn = null; + FileOutputStream fOut = null; + FileChannel source = null; + FileChannel destination = null; + try { + fIn = new FileInputStream(sourceFile); + source = fIn.getChannel(); + fOut = new FileOutputStream(destFile); + destination = fOut.getChannel(); + long transfered = 0; + long bytes = source.size(); + while (transfered < bytes) { + transfered += destination.transferFrom(source, 0, source.size()); + destination.position(transfered); + } + } finally { + if (source != null) { + source.close(); + } else if (fIn != null) { + fIn.close(); + } + if (destination != null) { + destination.close(); + } else if (fOut != null) { + fOut.close(); + } + } + } + + /** + * Get key store based on options passed to PicketBoxSecurityVault. + * @return + */ + private KeyStore getKeyStore(String keystoreURL) { + + try { + return KeyStoreUtil.getKeyStore(keyStoreType, keystoreURL, keyStorePWD); + } + catch (IOException e) { + // deliberately empty + } + catch (GeneralSecurityException e) { + throw new RuntimeException("Unable to get keystore " + keystoreURL, e); + } + + try { + if (createKeyStore) { + return KeyStoreUtil.createKeyStore(keyStoreType, keyStorePWD); + } + } + catch (Throwable e) { + throw new RuntimeException("Unable to get keystore " + keystoreURL, e); + } + + return null; + } + +} \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/SecurityVaultData.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/SecurityVaultData.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/SecurityVaultData.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,153 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2012, Red Hat, Inc., 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.plugins.vault; + +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.io.Serializable; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; + +import org.jboss.logging.Logger; +import org.jboss.security.util.StringUtil; + +/** + * Security vault data store with version serialized data storage. + * + * @author Peter Skopek (pskopek_at_redhat_dot_com) + * + */ +public class SecurityVaultData implements Serializable { + + /** + * Do not change this suid, it is used for handling different versions of serialized data. + */ + private static final long serialVersionUID = 1L; + + /** + * Version to denote actual version of SecurityVaultData object. + */ + private static final int VERSION = 1; + + private transient Map vaultData = new ConcurrentHashMap(); + + private static final Logger log = Logger.getLogger(SecurityVaultData.class); + + /** + * Default constructor. + */ + public SecurityVaultData() { + } + + /** + * Writes object to the ObjectOutputSteream. + * + * @param oos + * @throws IOException + */ + private void writeObject(ObjectOutputStream oos) throws IOException { + oos.writeObject(new Integer(VERSION)); + oos.writeObject(vaultData); + } + + /** + * Reads object from the ObjectInputStream. This method needs to be changed when implementing + * changes in data and {@link VERSION} is changed. + * + * @param ois + * @throws IOException + * @throws ClassNotFoundException + */ + @SuppressWarnings("unchecked") + private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { + int version = (Integer) ois.readObject(); + + if (log.isDebugEnabled()) { + log.debug("Reading security vault data version " + String.valueOf(version) + " target version is " + String.valueOf(VERSION)); + } + + if (version == 1) { + this.vaultData = (Map)ois.readObject(); + } + else { + throw new RuntimeException("Unrecognized security vault content version " + String.valueOf(version) + ", expecting (from 1 to " + String.valueOf(VERSION)); + } + } + + /** + * Retrieves the data stored in vault storage. + * + * @param keyAlias - currently not used (for possible future extension) + * @param vaultBlock + * @param attributeName + * @return + */ + byte[] getVaultData(String keyAlias, String vaultBlock, String attributeName) { + return vaultData.get(dataKey(keyAlias, vaultBlock, attributeName)); + } + + /** + * + * @param keyAlias + * @param vaultBlock + * @param attributeName + * @param encryptedData + */ + void addVaultData(String keyAlias, String vaultBlock, String attributeName, byte[] encryptedData) { + vaultData.put(dataKey(keyAlias, vaultBlock, attributeName), encryptedData); + } + + /** + * + * @param keyAlias + * @param vaultBlock + * @param attributeName + */ + void deleteVaultData(String keyAlias, String vaultBlock, String attributeName) { + vaultData.remove(dataKey(keyAlias, vaultBlock, attributeName)); + } + + /** + * Returns mapping keys for all stored data. + * @return + */ + Set getVaultDataKeys() { + return vaultData.keySet(); + } + + /** + * Creates new format for data key in vault. All parameters has to be non-null. + * + * @param keyAlias - currently not used (for possible future extension) + * @param vaultBlock + * @param attributeName + * @param alias + * @return + */ + private static String dataKey(String keyAlias, String vaultBlock, String attributeName) { + return vaultBlock + StringUtil.PROPERTY_DEFAULT_SEPARATOR + attributeName; + } + +} Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/EncryptionUtil.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/EncryptionUtil.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/EncryptionUtil.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,138 @@ +/* + * 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.util; + +import java.security.KeyPair; +import java.security.NoSuchAlgorithmException; +import java.security.PublicKey; + +import javax.crypto.Cipher; +import javax.crypto.KeyGenerator; +import javax.crypto.SecretKey; +import javax.crypto.spec.SecretKeySpec; + +/** + * Encryption/Decryption utility + * @author Anil.Saldhana at redhat.com + * @since Aug 12, 2011 + */ +public class EncryptionUtil +{ + private String encryptionAlgorithm; + private int keySize; + + public EncryptionUtil(String encryptionAlgorithm, int keySize) + { + this.encryptionAlgorithm = encryptionAlgorithm; + this.keySize = keySize; + } + + public SecretKey generateKey() throws NoSuchAlgorithmException + { + KeyGenerator kgen = KeyGenerator.getInstance(encryptionAlgorithm); + kgen.init(keySize); + SecretKey key = kgen.generateKey(); + return key; + } + + public byte[] encrypt(byte[] data, PublicKey publicKey, SecretKey key) throws Exception + { + // Get the KeyGenerator + KeyGenerator kgen = KeyGenerator.getInstance(this.encryptionAlgorithm); + kgen.init(keySize); + + byte[] publicKeyEncoded = publicKey.getEncoded(); + + SecretKeySpec skeySpec = new SecretKeySpec(key.getEncoded(), encryptionAlgorithm); + + + // Instantiate the cipher + Cipher cipher = Cipher.getInstance(encryptionAlgorithm); + + cipher.init(Cipher.ENCRYPT_MODE, skeySpec); + + byte[] encrypted = + cipher.doFinal( data); + return encrypted; + } + + public byte[] decrypt(byte[] encryptedData, KeyPair keypair, SecretKeySpec keySpec ) throws Exception + { + // Get the KeyGenerator + KeyGenerator kgen = KeyGenerator.getInstance(this.encryptionAlgorithm); + kgen.init(keySize); + + byte[] publicKeyEncoded = keypair.getPrivate().getEncoded(); + + + // Instantiate the cipher + Cipher cipher = Cipher.getInstance(encryptionAlgorithm); + + cipher.init(Cipher.DECRYPT_MODE, keySpec); + byte[] original = cipher.doFinal(encryptedData); + return original; + } + + public byte[] decrypt(byte[] encryptedData, KeyPair keypair, SecretKey key ) throws Exception + { + // Get the KeyGenerator + KeyGenerator kgen = KeyGenerator.getInstance(this.encryptionAlgorithm); + kgen.init(keySize); + + byte[] publicKeyEncoded = keypair.getPrivate().getEncoded(); + + SecretKeySpec skeySpec = new SecretKeySpec(key.getEncoded(), encryptionAlgorithm); + + // Instantiate the cipher + Cipher cipher = Cipher.getInstance(encryptionAlgorithm); + + cipher.init(Cipher.DECRYPT_MODE, skeySpec); + byte[] original = cipher.doFinal(encryptedData); + return original; + } + + public byte[] encrypt(byte[] data, SecretKey key) throws Exception + { + SecretKeySpec skeySpec = new SecretKeySpec(key.getEncoded(), encryptionAlgorithm); + + // Instantiate the cipher + Cipher cipher = Cipher.getInstance(encryptionAlgorithm); + + cipher.init(Cipher.ENCRYPT_MODE, skeySpec); + + byte[] encrypted = + cipher.doFinal( data); + return encrypted; + } + + public byte[] decrypt(byte[] encryptedData, SecretKeySpec keySpec ) throws Exception + { + + // Instantiate the cipher + Cipher cipher = Cipher.getInstance(encryptionAlgorithm); + + cipher.init(Cipher.DECRYPT_MODE, keySpec); + byte[] original = cipher.doFinal(encryptedData); + return original; + } + +} \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/KeyStoreUtil.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/KeyStoreUtil.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/KeyStoreUtil.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,359 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2011, 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.util; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.URL; +import java.security.GeneralSecurityException; +import java.security.Key; +import java.security.KeyPair; +import java.security.KeyPairGenerator; +import java.security.KeyStore; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; +import java.security.PrivateKey; +import java.security.PublicKey; +import java.security.cert.Certificate; + +/** + * Utility to handle Java Keystore + * + * @author Anil.Saldhana at redhat.com + * @author Peter Skopek (pskopek_at_redhat_dot_com) + * @since Jan 12, 2009 + */ +public class KeyStoreUtil +{ + /** + * Get the KeyStore + * @param keyStoreFile + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + */ + public static KeyStore getKeyStore(File keyStoreFile, char[] storePass) throws GeneralSecurityException, IOException + { + return getKeyStore(KeyStore.getDefaultType(), keyStoreFile, storePass); + } + + /** + * Get the Keystore given the url to the keystore file as a string + * @param fileURL + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + */ + public static KeyStore getKeyStore(String fileURL, char[] storePass) throws GeneralSecurityException, IOException + { + return getKeyStore(KeyStore.getDefaultType(), fileURL, storePass); + } + + /** + * Get the Keystore given the URL to the keystore + * @param url + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + */ + public static KeyStore getKeyStore(URL url, char[] storePass) throws GeneralSecurityException, IOException + { + return getKeyStore(KeyStore.getDefaultType(), url, storePass); + } + + /** + * Get the Key Store + * Note: This method wants the InputStream to be not null. + * @param ksStream + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + * @throws IllegalArgumentException if ksStream is null + */ + public static KeyStore getKeyStore(InputStream ksStream, char[] storePass) throws GeneralSecurityException, + IOException + { + return getKeyStore(KeyStore.getDefaultType(), ksStream, storePass); + } + + /** + * Get the KeyStore + * @param keyStoreType or null for default + * @param keyStoreFile + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + */ + public static KeyStore getKeyStore(String keyStoreType, File keyStoreFile, char[] storePass) throws GeneralSecurityException, IOException + { + FileInputStream fis = null; + try + { + fis = new FileInputStream(keyStoreFile); + return getKeyStore(keyStoreType, fis, storePass); + } + finally + { + safeClose(fis); + } + } + + /** + * Get the Keystore given the url to the keystore file as a string + * @param keyStoreType or null for default + * @param fileURL + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + */ + public static KeyStore getKeyStore(String keyStoreType, String fileURL, char[] storePass) throws GeneralSecurityException, IOException + { + if (fileURL == null) + throw new IllegalArgumentException("Argument fileURL cannot be null"); + + File file = new File(fileURL); + FileInputStream fis = null; + try + { + fis = new FileInputStream(file); + return getKeyStore(keyStoreType, fis, storePass); + } + finally + { + safeClose(fis); + } + } + + /** + * Get the Keystore given the URL to the keystore + * @param keyStoreType or null for default + * @param url + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + */ + public static KeyStore getKeyStore(String keyStoreType, URL url, char[] storePass) throws GeneralSecurityException, IOException + { + if (url == null) + throw new IllegalArgumentException("Argument url cannot be null"); + + InputStream is = null; + try + { + is = url.openStream(); + return getKeyStore(keyStoreType, is, storePass); + } + finally + { + safeClose(is); + } + } + + /** + * Get the Key Store + * Note: This method wants the InputStream to be not null. + * @param keyStoreType or null for default + * @param ksStream + * @param storePass + * @return + * @throws GeneralSecurityException + * @throws IOException + * @throws IllegalArgumentException if ksStream is null + */ + public static KeyStore getKeyStore(String keyStoreType, InputStream ksStream, char[] storePass) throws GeneralSecurityException, IOException + { + if (ksStream == null) + throw new IllegalArgumentException("Argument ksStream cannot be null"); + KeyStore ks = KeyStore.getInstance((keyStoreType == null ? KeyStore.getDefaultType() : keyStoreType)); + ks.load(ksStream, storePass); + return ks; + } + + /** + * Generate a Key Pair + * @param algo (RSA, DSA etc) + * @return + * @throws GeneralSecurityException + */ + public static KeyPair generateKeyPair(String algo) throws GeneralSecurityException + { + KeyPairGenerator kpg = KeyPairGenerator.getInstance(algo); + return kpg.genKeyPair(); + } + + /** + * Get the Public Key from the keystore + * @param ks + * @param alias + * @param password + * @return + * @throws GeneralSecurityException + */ + public static PublicKey getPublicKey(KeyStore ks, String alias, char[] password) throws KeyStoreException, + NoSuchAlgorithmException, GeneralSecurityException + { + PublicKey publicKey = null; + + // Get private key + Key key = ks.getKey(alias, password); + if (key instanceof PrivateKey) + { + // Get certificate of public key + Certificate cert = ks.getCertificate(alias); + + // Get public key + publicKey = cert.getPublicKey(); + } + // if alias is a certificate alias, get the public key from the certificate. + if (publicKey == null) + { + Certificate cert = ks.getCertificate(alias); + if (cert != null) + publicKey = cert.getPublicKey(); + } + return publicKey; + } + + /** + * Add a certificate to the KeyStore + * @param keystoreFile + * @param storePass + * @param alias + * @param cert + * @throws GeneralSecurityException + * @throws IOException + */ + public static void addCertificate(File keystoreFile, char[] storePass, String alias, Certificate cert) + throws GeneralSecurityException, IOException + { + addCertificate(KeyStore.getDefaultType(), keystoreFile, storePass, alias, cert); + } + + /** + * Add a certificate to the KeyStore + * @param keystoreFile + * @param storePass + * @param alias + * @param cert + * @throws GeneralSecurityException + * @throws IOException + */ + public static void addCertificate(String keyStoreType, File keystoreFile, char[] storePass, String alias, Certificate cert) + throws GeneralSecurityException, IOException + { + KeyStore keystore = getKeyStore(keyStoreType, keystoreFile, storePass); + + // Add the certificate + keystore.setCertificateEntry(alias, cert); + + // Save the new keystore contents + FileOutputStream out = null; + try + { + out = new FileOutputStream(keystoreFile); + keystore.store(out, storePass); + out.close(); + } + finally + { + safeClose(out); + } + } + + /** + * Get the key pair from the keystore + * @param keystore + * @param alias + * @param password + * @return + * @throws Exception + */ + public static KeyPair getPrivateKey(KeyStore keystore, String alias, char[] password) throws Exception + { + // Get private key + Key key = keystore.getKey(alias, password); + if (key instanceof PrivateKey) + { + // Get certificate of public key + java.security.cert.Certificate cert = keystore.getCertificate(alias); + + // Get public key + PublicKey publicKey = cert.getPublicKey(); + + // Return a key pair + return new KeyPair(publicKey, (PrivateKey)key); + } + return null; + } + + /** + * Create new empty keystore with specified keyStoreType and keyStorePWD + * @param keyStoreType - key store type + * @param keyStorePWD - key store password + * @return + * @throws Exception + */ + public static KeyStore createKeyStore(String keyStoreType, char[] keyStorePWD) throws Exception { + KeyStore ks = KeyStore.getInstance(keyStoreType); + ks.load(null, keyStorePWD); + return ks; + } + + + private static void safeClose(InputStream fis) + { + try + { + if(fis != null) + { + fis.close(); + } + } + catch(Exception e) + {} + } + + private static void safeClose(OutputStream os) + { + try + { + if(os != null) + { + os.close(); + } + } + catch(Exception e) + {} + } + +} \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/SecurityActions.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/SecurityActions.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/SecurityActions.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,134 @@ +/* + * 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.util; + +import java.net.URL; +import java.security.AccessController; +import java.security.PrivilegedAction; + +/** + * Privileged Blocks + * @author Anil.Saldhana at redhat.com + * @since Dec 9, 2008 + */ +class SecurityActions +{ + static Class loadClass(final Class theClass, final String fqn) + { + return AccessController.doPrivileged(new PrivilegedAction>() + { + public Class run() + { + ClassLoader classLoader = theClass.getClassLoader(); + + Class clazz = loadClass(classLoader, fqn); + if (clazz == null) + { + classLoader = Thread.currentThread().getContextClassLoader(); + clazz = loadClass(classLoader, fqn); + } + return clazz; + } + }); + } + + static Class loadClass(final ClassLoader cl, final String fqn) + { + return AccessController.doPrivileged(new PrivilegedAction>() + { + public Class run() + { + try + { + return cl.loadClass(fqn); + } + catch (ClassNotFoundException e) + { + } + return null; + } + }); + } + + /** + * Set the system property + * @param key + * @param value + * @return + */ + static void setSystemProperty(final String key, final String value) + { + AccessController.doPrivileged(new PrivilegedAction() + { + public Object run() + { + System.setProperty(key, value); + return null; + } + }); + } + + /** + * Get the system property + * @param key + * @param defaultValue + * @return + */ + static String getSystemProperty(final String key, final String defaultValue) + { + return AccessController.doPrivileged(new PrivilegedAction() + { + public String run() + { + return System.getProperty(key, defaultValue); + } + }); + } + + /** + * Load a resource based on the passed {@link Class} classloader. + * Failing which try with the Thread Context CL + * @param clazz + * @param resourceName + * @return + */ + static URL loadResource(final Class clazz, final String resourceName) + { + return AccessController.doPrivileged(new PrivilegedAction() + { + public URL run() + { + URL url = null; + ClassLoader clazzLoader = clazz.getClassLoader(); + url = clazzLoader.getResource(resourceName); + + if (url == null) + { + clazzLoader = Thread.currentThread().getContextClassLoader(); + url = clazzLoader.getResource(resourceName); + } + + return url; + } + }); + } +} \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/StringUtil.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/StringUtil.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/util/StringUtil.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,182 @@ +/* + * 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.util; + +import java.util.ArrayList; +import java.util.List; +import java.util.StringTokenizer; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import javax.crypto.SecretKey; +import javax.crypto.SecretKeyFactory; +import javax.crypto.spec.PBEKeySpec; +import javax.crypto.spec.PBEParameterSpec; + +import org.jboss.security.plugins.PBEUtils; + +/** + * Utility dealing with Strings + * @author Anil.Saldhana at redhat.com + * @since Oct 21, 2009 + */ +public class StringUtil +{ + public static final String PROPERTY_DEFAULT_SEPARATOR = "::"; + + /** + * Check whether the passed string is null or empty + * @param str + * @return + */ + public static boolean isNotNull(String str) + { + return str != null && !"".equals(str.trim()); + } + + /** + * Check whether the string is null or empty + * @param str + * @return + */ + public static boolean isNullOrEmpty(String str) + { + return str == null || str.isEmpty(); + } + + /** + *

+ * Get the system property value if the string is of the format ${sysproperty} + *

+ *

+ * You can insert default value when the system property is not set, by + * separating it at the beginning with :: + *

+ *

+ * Examples: + *

+ * + *

+ * ${idp} should resolve to a value if the system property "idp" is set. + *

+ *

+ * ${idp::http://localhost:8080} will resolve to http://localhost:8080 if the system property "idp" is not set. + *

+ * @param str + * @return + */ + public static String getSystemPropertyAsString(String str) + { + if (str == null) + throw new IllegalArgumentException("Argument str cannot be null"); + if (str.contains("${")) + { + Pattern pattern = Pattern.compile("\\$\\{([^}]+)}"); + Matcher matcher = pattern.matcher(str); + + StringBuffer buffer = new StringBuffer(); + String sysPropertyValue = null; + + while (matcher.find()) + { + String subString = matcher.group(1); + String defaultValue = ""; + + //Look for default value + if (subString.contains(StringUtil.PROPERTY_DEFAULT_SEPARATOR)) + { + int index = subString.indexOf(StringUtil.PROPERTY_DEFAULT_SEPARATOR); + defaultValue = subString.substring(index + StringUtil.PROPERTY_DEFAULT_SEPARATOR.length()); + subString = subString.substring(0, index); + } + sysPropertyValue = SecurityActions.getSystemProperty(subString, defaultValue); + if (sysPropertyValue.isEmpty()) + { + throw new IllegalArgumentException("The specified system property " + matcher.group(1) + " is missing"); + } + // in case of backslash on Win replace with double backslash + matcher.appendReplacement(buffer, sysPropertyValue.replace("\\", "\\\\")); + } + + matcher.appendTail(buffer); + str = buffer.toString(); + } + return str; + } + + /** + * Match two strings else throw a {@link RuntimeException} + * @param first + * @param second + */ + public static void match(String first, String second) + { + if (first.equals(second) == false) + throw new RuntimeException("Failed to match " + first + " and " + second); + } + + /** + * Given a comma separated string, get the tokens as a {@link List} + * @param str + * @return + */ + public static List tokenize(String str) + { + List list = new ArrayList(); + StringTokenizer tokenizer = new StringTokenizer(str, ","); + while (tokenizer.hasMoreTokens()) + { + list.add(tokenizer.nextToken()); + } + return list; + } + + /** + * Given a masked password {@link String}, decode it + * @param maskedString a password string that is masked + * @param salt Salt + * @param iterationCount Iteration Count + * @return Decoded String + * @throws Exception + */ + public static String decode(String maskedString, String salt, int iterationCount) throws Exception + { + String PASS_MASK_PREFIX = "MASK-"; + String pbeAlgo = "PBEwithMD5andDES"; + if (maskedString.startsWith(PASS_MASK_PREFIX)) + { + // Create the PBE secret key + SecretKeyFactory factory = SecretKeyFactory.getInstance(pbeAlgo); + + char[] password = "somearbitrarycrazystringthatdoesnotmatter".toCharArray(); + PBEParameterSpec cipherSpec = new PBEParameterSpec(salt.getBytes(), iterationCount); + PBEKeySpec keySpec = new PBEKeySpec(password); + SecretKey cipherKey = factory.generateSecret(keySpec); + + maskedString = maskedString.substring(PASS_MASK_PREFIX.length()); + String decodedValue = PBEUtils.decode64(maskedString, pbeAlgo, cipherKey, cipherSpec); + + maskedString = decodedValue; + } + return maskedString; + } +} \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/EncryptionUtilUnitTestCase.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/EncryptionUtilUnitTestCase.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/EncryptionUtilUnitTestCase.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,72 @@ +/* + * 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.test.security.vault; + +//import static org.junit.Assert.assertEquals; +//import static org.junit.Assert.assertNotNull; +import junit.framework.TestCase; + +import java.security.KeyPair; +import java.security.KeyStore; +import java.security.PublicKey; + +import javax.crypto.SecretKey; + +//import org.junit.Test; +import org.jboss.security.util.EncryptionUtil; +import org.jboss.security.util.KeyStoreUtil; + +/** + * Unit test {@link EncryptionUtil} + * @author Anil.Saldhana at redhat.com + * @since Aug 12, 2011 + */ +public class EncryptionUtilUnitTestCase extends TestCase +{ + String keyStoreURL = "target/vaults/vault-enc/vault.jks"; + String keyStorePass = "vault22"; + String alias = "vault"; + + public void testEncryptDecrypt() throws Exception + { + SecurityVaultUnitTestCase.setInitialVaulConditions( + "src/test/resources/keystore/vault.jks", "target/vaults/vault-enc/vault.jks", + "src/test/resources/keystore/vault_data", "target/vaults/vault-enc/vault_data"); + + + KeyStore ks = KeyStoreUtil.getKeyStore(keyStoreURL, keyStorePass.toCharArray()); + assertNotNull(ks); + EncryptionUtil encUtil = new EncryptionUtil("AES", 128); + + PublicKey publicKey = KeyStoreUtil.getPublicKey(ks, "vault", keyStorePass.toCharArray()); + assertNotNull(publicKey); + + SecretKey secretKey = encUtil.generateKey(); + + byte[] encryptedData = encUtil.encrypt(keyStorePass.getBytes(), publicKey, secretKey); + + KeyPair keypair = KeyStoreUtil.getPrivateKey(ks, alias, keyStorePass.toCharArray()); + byte[] decryptedData = encUtil.decrypt(encryptedData, keypair, secretKey); + assertEquals(keyStorePass, new String(decryptedData)); + } + +} \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,481 @@ +/* + * 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.test.security.vault; + +import junit.framework.TestCase; + +import org.jboss.security.plugins.PBEUtils; +import org.jboss.security.vault.SecurityVault; +import org.jboss.security.vault.SecurityVaultException; +import org.jboss.security.vault.SecurityVaultFactory; +import org.jboss.security.vault.SecurityVaultUtil; +import org.jboss.security.plugins.vault.PicketBoxSecurityVault; +import org.jboss.test.SecurityActions; + +import javax.crypto.SecretKey; +import javax.crypto.SecretKeyFactory; +import javax.crypto.spec.PBEKeySpec; +import javax.crypto.spec.PBEParameterSpec; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.nio.channels.FileChannel; +import java.security.AccessController; +import java.security.PrivilegedAction; +import java.util.HashMap; +import java.util.Map; + + +/** + * Unit Test the {@link SecurityVault} Implementation + * + * Note: replacement-vault.keystore has been created using: + * keytool -genkey -alias mykey -keystore replacement-vault.keystore -keyalg RSA -keysize 1024 -storepass supersecret11 -keypass supersecret11 -dname "CN=Picketbox vault,OU=picketbox,O=JBoss" + * + * @author Anil.Saldhana at redhat.com + * @since Aug 12, 2011 + */ +public class SecurityVaultUnitTestCase extends TestCase +{ + //String dataDir = "${java.io.tmpdir}/enc/"; + + public void testDefaultVault() throws Exception + { + SecurityVault vault = SecurityVaultFactory.get(); + assertNotNull(vault); + assertTrue(vault instanceof PicketBoxSecurityVault); + assertFalse(vault.isInitialized()); + } + + public void testHandshake() throws Exception + { + + setInitialVaulConditions("src/test/resources/keystore/vault.jks", "target/vaults/vault1/vault.jks", + "src/test/resources/keystore/vault_data", "target/vaults/vault1/vault_data"); + + SecurityVault vault = getNewSecurityVaultInstance(); + Map options = getVaultOptionsMap( + "target/vaults/vault1/vault.jks", + "target/vaults/vault1/vault_data", + "vault", "12438567", 50, "vault22"); + + vault.init(options); + assertTrue(vault.isInitialized()); + + Map handshakeOptions = new HashMap(); + handshakeOptions.put(PicketBoxSecurityVault.PUBLIC_CERT,"vault"); + + byte[] sharedKey = vault.handshake(handshakeOptions); + assertNotNull(sharedKey); + } + + public void testHandshakeAnConversionForLongAlias() throws Exception + { + setInitialVaulConditions("src/test/resources/long_alias_keystore/vault.jks", "target/vaults/long_alias_keystore/vault.jks", + "src/test/resources/long_alias_keystore/vault_data", "target/vaults/long_alias_keystore/vault_data"); + + SecurityVault vault = getNewSecurityVaultInstance(); + Map options = getVaultOptionsMap( + "target/vaults/long_alias_keystore/vault.jks", + "target/vaults/long_alias_keystore/vault_data", + "superverylongvaultname", "87654321", 23, "password1234"); + + vault.init(options); + assertTrue("Vault is supposed to be inicialized", vault.isInitialized()); + + Map handshakeOptions = new HashMap(); + byte[] sharedKey = vault.handshake(handshakeOptions); + assertNotNull(sharedKey); + + // not relevant anymore, but leaving it as is + boolean containsLineBreaks = false; + for (byte b: sharedKey) { + if (b == '\n') { + containsLineBreaks = true; + break; + } + } + assertFalse("Shared key returned from hadshake cannot contain line break character", containsLineBreaks); + } + + public void testStoreAndRetrieve() throws Exception + { + + setInitialVaulConditions("src/test/resources/keystore/vault.jks", "target/vaults/vault2/vault.jks", + "src/test/resources/keystore/vault_data", "target/vaults/vault2/vault_data"); + + Map options = getVaultOptionsMap( + "target/vaults/vault2/vault.jks", + "target/vaults/vault2/vault_data", + "vault", "12438567", 50, "vault22"); + + String vaultBlock = "SecBean"; + String attributeName = "theAttribute"; + + char[] attributeValue = "someValue".toCharArray(); + + SecurityVault vault = getNewSecurityVaultInstance(); + + vault.init(options); + assertTrue(vault.isInitialized()); + + Map handshakeOptions = new HashMap(); + + byte[] sharedKey = vault.handshake(handshakeOptions); + assertNotNull(sharedKey); + + vault.store(vaultBlock, attributeName, attributeValue , sharedKey); + + assertTrue(vault.exists(vaultBlock, attributeName)); + //Now retrieve + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock, attributeName, sharedKey))); + + vault.store(vaultBlock+"1", attributeName+"2", attributeValue , sharedKey); + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock+"1", attributeName+"2", sharedKey))); + + System.out.println("Currently storing:" + vault.keyList()); + + assertTrue(vault.remove(vaultBlock+"1", attributeName+"2", sharedKey)); + assertFalse(vault.exists(vaultBlock+"1", attributeName+"2")); + } + + /** + * See src/test/resources/vault-v0/readme.txt for initial vault setup (including secured attributes). + * @throws Exception + */ + public void testConversion() throws Exception { + + setInitialVaulConditions("src/test/resources/vault-v0/vault-jks.keystore", "target/vaults/vault-v0/vault-jks.keystore", + "src/test/resources/vault-v0/vault_data", "target/vaults/vault-v0/vault_data"); + + final Map options = getVaultOptionsMap( + "target/vaults/vault-v0/vault-jks.keystore", + "target/vaults/vault-v0/vault_data", + "thealias", "24681359", 88, "secretsecret"); + + SecurityVault vault = getNewSecurityVaultInstance(); + + // init should do the automatic conversion + vault.init(options); + assertTrue(vault.isInitialized()); + + byte[] sharedKey = vault.handshake(null); + assertNotNull(sharedKey); + + // let's try to check if the converted vault contains all secret attributes from initial vault + assertSecretValue(vault, "vb", "attr1", "pwd1"); + assertSecretValue(vault, "vb", "attr2", "pwd2"); + assertSecretValue(vault, "vb1", "attr1", "pwd3"); + assertSecretValue(vault, "vb2", "attr2", "pwd4"); + assertSecretValue(vault, "vb2", "attr3", "pwd5"); + assertSecretValue(vault, "vb", "attr3", "pwd6"); + + + // get new instance of vault to simulate restart of application server + SecurityVault convertedVault = getNewSecurityVaultInstance(); + assertFalse(convertedVault.isInitialized()); + convertedVault.init(options); + assertTrue(convertedVault.isInitialized()); + + convertedVault.handshake(null); + + // now try the same attributes on converted vault after restart + assertSecretValue(convertedVault, "vb", "attr1", "pwd1"); + assertSecretValue(convertedVault, "vb", "attr2", "pwd2"); + assertSecretValue(convertedVault, "vb1", "attr1", "pwd3"); + assertSecretValue(convertedVault, "vb2", "attr2", "pwd4"); + assertSecretValue(convertedVault, "vb2", "attr3", "pwd5"); + assertSecretValue(convertedVault, "vb", "attr3", "pwd6"); + + } + + public void testVault_V1_open_retrieve() throws Exception { + + setInitialVaulConditions("src/test/resources/vault-v1/vault-jceks.keystore", "target/vaults/vault-v1/vault-jceks.keystore", + "src/test/resources/vault-v1/vault_data", "target/vaults/vault-v1/vault_data"); + + final Map options = getVaultOptionsMap( + "target/vaults/vault-v1/vault-jceks.keystore", + "target/vaults/vault-v1/vault_data", + "test", "12345678", 34, "secretsecret"); + + SecurityVault vault = getNewSecurityVaultInstance(); + assertFalse(vault.isInitialized()); + + vault.init(options); + assertTrue(vault.isInitialized()); + + vault.handshake(null); + + // let's try to check if proper values are stored in the vault + assertSecretValue(vault, "vb1", "attr11", "secret11"); + assertSecretValue(vault, "vb1", "attr12", "secret12"); + + } + + public void testVault_V1_open_wrong_alias() throws Exception { + + setInitialVaulConditions("src/test/resources/vault-v1/vault-jceks.keystore", "target/vaults/vault-v1-wrong/vault-jceks.keystore", + "src/test/resources/vault-v1/vault_data", "target/vaults/vault-v1-wrong/vault_data"); + + final Map options = getVaultOptionsMap( + "target/vaults/vault-v1-wrong/vault-jceks.keystore", + "target/vaults/vault-v1-wrong/vault_data", + "thewrongalias", "12345678", 34, "secretsecret"); + + SecurityVault vault = getNewSecurityVaultInstance(); + assertFalse(vault.isInitialized()); + try{ + vault.init(options); + fail("Expected SecurityVaultException"); + } + catch(SecurityVaultException e){ + //expected SecurityVaultException + } + } + + public void testVaultWithReplacedKeystore() throws Exception { + + setInitialVaulConditions("src/test/resources/vault-v1/vault-replacement-jceks.keystore", "target/vaults/vault-v1/vault-jceks.keystore", + "src/test/resources/vault-v1/vault_data", "target/vaults/vault-v1/vault_data"); + + final Map options = getVaultOptionsMap( + "target/vaults/vault-v1/vault-jceks.keystore", + "target/vaults/vault-v1/vault_data", + "test", "12345678", 34, "secretsecret"); + + SecurityVault vault = getNewSecurityVaultInstance(); + assertFalse(vault.isInitialized()); + + vault.init(options); + assertTrue(vault.isInitialized()); + + vault.handshake(null); + + // let's try to check if the converted vault contains all secret attributes from initial vault + try{ + assertSecretValue(vault, "vb1", "attr11", "secret11"); + fail("Expected SecurityVaultException"); + }catch(SecurityVaultException e){ + //expected SecurityVaultException + } + try{ + assertSecretValue(vault, "vb1", "attr12", "secret12"); + fail("Expected SecurityVaultException"); + }catch(SecurityVaultException e){ + //expected SecurityVaultException + } + } + + public void testMoreSecretKeys() throws Exception { + setInitialVaulConditions("src/test/resources/vault-v1-more/vault-jceks.keystore", "target/vaults/vault-v1-more/vault-jceks.keystore", + "src/test/resources/vault-v1-more/vault_data", "target/vaults/vault-v1-more/vault_data"); + + final Map options = getVaultOptionsMap( + "target/vaults/vault-v1-more/vault-jceks.keystore", + "target/vaults/vault-v1-more/vault_data", + "test", "12345678", 34, "secretsecret"); + + SecurityVault vault = getNewSecurityVaultInstance(); + assertFalse(vault.isInitialized()); + + vault.init(options); + assertTrue(vault.isInitialized()); + + vault.handshake(null); + + // let's try to check if proper values are stored in the vault + assertSecretValue(vault, "vb1", "attr11", "secret11"); + assertSecretValue(vault, "vb1", "attr12", "secret12"); + + final Map options2 = getVaultOptionsMap( + "target/vaults/vault-v1-more/vault-jceks.keystore", + "target/vaults/vault-v1-more/vault_data", + "test2", "12345678", 34, "secretsecret"); + + SecurityVault vault2 = getNewSecurityVaultInstance(); + assertFalse(vault2.isInitialized()); + + vault2.init(options2); + assertTrue(vault2.isInitialized()); + + vault2.handshake(null); + + // let's try to check different alias can retrieve proper attribute + assertSecretValue(vault2, "vb1", "attr13", "secret13"); + + try { + assertSecretValue(vault2, "vb1", "attr11", "secret11"); + fail("retrieving security attribute with different secret key alias has to fail."); + } + catch (SecurityVaultException e) { + // deliberately empty + } + catch (Throwable e) { + fail("unexpected exception " + e.getStackTrace().toString()); + } + + + } + + public void testUtil() throws Exception + { + assertFalse(SecurityVaultUtil.isVaultFormat((String)null)); + assertFalse(SecurityVaultUtil.isVaultFormat((char[])null)); + } + + private String getMaskedPassword(String pwd, String salt, int iterationCount) throws Exception + { + String algo = "PBEwithMD5andDES"; + + // Create the PBE secret key + SecretKeyFactory factory = SecretKeyFactory.getInstance("PBEwithMD5andDES"); + + char[] password = "somearbitrarycrazystringthatdoesnotmatter".toCharArray(); + PBEParameterSpec cipherSpec = new PBEParameterSpec(salt.getBytes(), iterationCount); + PBEKeySpec keySpec = new PBEKeySpec(password); + SecretKey cipherKey = factory.generateSecret(keySpec); + + String maskedPass = PBEUtils.encode64(pwd.getBytes(), algo, cipherKey, cipherSpec); + + return new String(PicketBoxSecurityVault.PASS_MASK_PREFIX) + maskedPass; + } + + + private Map getVaultOptionsMap(String keystore, String encDataDir, String alias, String salz, int iter, + String password) throws Exception { + Map options = new HashMap(); + options.put(PicketBoxSecurityVault.KEYSTORE_URL, keystore); + options.put(PicketBoxSecurityVault.KEYSTORE_PASSWORD, getMaskedPassword(password, salz, iter)); + options.put(PicketBoxSecurityVault.KEYSTORE_ALIAS, alias); + options.put(PicketBoxSecurityVault.SALT, salz); + options.put(PicketBoxSecurityVault.ITERATION_COUNT, String.valueOf(iter)); + options.put(PicketBoxSecurityVault.ENC_FILE_DIR, encDataDir); + return options; + } + + public static void setInitialVaulConditions(String originalKeyStoreFile, String targetKeyStoreFile, + String originalVaultContentDir, String targetVaultContentDir) throws Exception { + + File tKS = new File(targetKeyStoreFile); + File parent = tKS.getParentFile(); + if (!parent.exists()) { + parent.mkdirs(); + } + SecurityVaultUnitTestCase.copyFile(new File(originalKeyStoreFile), tKS); + + File targetVaultContent = new File(targetVaultContentDir); + cleanDirectory(targetVaultContent); + File originVault = new File(originalVaultContentDir); + for (File f : originVault.listFiles()) { + if (f.isFile()) // some version control systems add a hidden directory, we must make sure we won't copy those. + SecurityVaultUnitTestCase.copyFile(f, new File(targetVaultContent.getAbsolutePath() + File.separator + f.getName())); + } + } + + /** + * Make clean new directory. + * + * @param directory + */ + public static void cleanDirectory(File directory) { + if (directory.exists()) { + for (File f: directory.listFiles()) { f.delete(); } + directory.delete(); + } + directory.mkdirs(); + } + + /** + * Copy file method. + * + * @param sourceFile + * @param destFile + * @throws IOException + */ + public static void copyFile(File sourceFile, File destFile) throws IOException { + if (!destFile.exists()) { + destFile.createNewFile(); + } + FileInputStream fIn = null; + FileOutputStream fOut = null; + FileChannel source = null; + FileChannel destination = null; + try { + fIn = new FileInputStream(sourceFile); + source = fIn.getChannel(); + fOut = new FileOutputStream(destFile); + destination = fOut.getChannel(); + long transfered = 0; + long bytes = source.size(); + while (transfered < bytes) { + transfered += destination.transferFrom(source, 0, source.size()); + destination.position(transfered); + } + } finally { + if (source != null) { + source.close(); + } else if (fIn != null) { + fIn.close(); + } + if (destination != null) { + destination.close(); + } else if (fOut != null) { + fOut.close(); + } + } + } + + static Class loadClass(final Class clazz, final String fqn) { + return AccessController.doPrivileged(new PrivilegedAction>() { + public Class run() { + ClassLoader cl = clazz.getClassLoader(); + Class loadedClass = null; + try { + loadedClass = cl.loadClass(fqn); + } catch (ClassNotFoundException e) { + } + return loadedClass; + } + }); + + } + + private void assertSecretValue(SecurityVault vault, String vaultBlock, String attributeName, String expectedSecuredAttributeValue) throws SecurityVaultException { + assertEquals("Expected value has to match the one in vault. " + vaultBlock + ":" + attributeName + "=" + expectedSecuredAttributeValue, + new String(expectedSecuredAttributeValue), + new String(vault.retrieve(vaultBlock, attributeName, null))); + } + + /** + * get new instance of vault to simulate restart of application server + * @return + * @throws Exception + */ + private SecurityVault getNewSecurityVaultInstance() throws Exception { + Class vaultClass = loadClass(SecurityVaultFactory.class, "org.jboss.security.plugins.vault.PicketBoxSecurityVault"); + return (SecurityVault)vaultClass.newInstance(); + } + +} \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/readme.txt =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/readme.txt (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/readme.txt 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,22 @@ + +anil at localhost:~/picketbox/trunk/security-jboss-sx/jbosssx/src/test/resources/keystore$ keytool -genkey -alias vault -keyalg RSA -keysize 1024 -keystore vault.keystore -storetype JCEKS +Enter keystore password: vault22 +Re-enter new password:vault22 +What is your first and last name? + [Unknown]: Picketbox vault +What is the name of your organizational unit? + [Unknown]: picketbox +What is the name of your organization? + [Unknown]: JBoss +What is the name of your City or Locality? + [Unknown]: chicago +What is the name of your State or Province? + [Unknown]: il +What is the two-letter country code for this unit? + [Unknown]: us +Is CN=Picketbox vault, OU=picketbox, O=JBoss, L=chicago, ST=il, C=us correct? + [no]: yes + +Enter key password for + (RETURN if same as keystore password): + Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault.jks =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault.jks ___________________________________________________________________ Added: svn:mime-type + application/x-java-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault_data/ENC.dat =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault_data/ENC.dat ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault_data/Shared.dat =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/keystore/vault_data/Shared.dat ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/readme.txt =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/readme.txt (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/readme.txt 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,2 @@ +Keystore created using: +keytool -genkey -alias superverylongvaultname -keyalg RSA -keysize 2048 -keystore vault.jks -storepass password1234 -keypass password1234 -dname "CN=vault,O=example.com" Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault.jks =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault.jks ___________________________________________________________________ Added: svn:mime-type + application/x-java-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault_data/readme.txt =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault_data/readme.txt (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/long_alias_keystore/vault_data/readme.txt 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1 @@ +this vault data directory is empty \ No newline at end of file Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/replacement_keystore/replacement-vault.keystore =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/replacement_keystore/replacement-vault.keystore ___________________________________________________________________ Added: svn:mime-type + application/x-java-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/readme.txt =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/readme.txt (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/readme.txt 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,32 @@ +Keystore creation: +----------------------------------- +keytool -genkey -alias thealias -keystore vault-jks.keystore -keyalg RSA -keysize 1024 -storepass secretsecret -keypass secretsecret -dname "CN=Picketbox vault,OU=picketbox,O=JBoss" + + +Keystore maked password attribs: +----------------------------------- + + + + + + + + + + +vault content created in 3 sessions: +----------------------------------- +1. interactive session: +vb attr1 pwd1 +vb attr2 pwd2 +vb1 attr1 pwd3 +vb2 attr2 pwd4 + +2. non-interactive session +vb2 attr3 pwd5 + +3. non-interactive session +vb attr3 pwd6 + + Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault-jks.keystore =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault-jks.keystore ___________________________________________________________________ Added: svn:mime-type + application/x-java-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault_data/ENC.dat =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault_data/ENC.dat ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault_data/Shared.dat =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v0/vault_data/Shared.dat ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/readme.txt =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/readme.txt (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/readme.txt 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,8 @@ +keystore created: +------------------ +keytool -genseckey -alias test -storetype jceks -keystore vault-v1/vault-jceks.keystore -keyalg AES -keysize 128 -storepass secretsecret -keypass secretsecret + +vault content created (from EAP6.1 dir): +----------------------------------------- +./bin/vault.sh -e vault-v1/vault_data/ -k vault-v1/vault-jceks.keystore -v test -p secretsecret -i 34 -s 12345678 -b vb1 -a attr11 -x secret11 +./bin/vault.sh -e vault-v1/vault_data/ -k vault-v1/vault-jceks.keystore -v test -p secretsecret -i 34 -s 12345678 -b vb1 -a attr12 -x secret12 Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault-jceks.keystore =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault-jceks.keystore ___________________________________________________________________ Added: svn:mime-type + application/x-java-jce-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault-replacement-jceks.keystore =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault-replacement-jceks.keystore ___________________________________________________________________ Added: svn:mime-type + application/x-java-jce-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault_data/VAULT.dat =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1/vault_data/VAULT.dat ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/readme.txt =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/readme.txt (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/readme.txt 2013-12-17 02:09:47 UTC (rev 114601) @@ -0,0 +1,10 @@ +keystore created: +------------------ +keytool -genseckey -alias test -storetype jceks -keystore vault-v1/vault-jceks.keystore -keyalg AES -keysize 128 -storepass secretsecret -keypass secretsecret +keytool -genseckey -alias test2 -storetype jceks -keystore vault-v1/vault-jceks.keystore -keyalg AES -keysize 128 -storepass secretsecret -keypass secretsecret + +vault content created (from EAP6.1 dir): +----------------------------------------- +./bin/vault.sh -e vault-v1/vault_data/ -k vault-v1-more/vault-jceks.keystore -v test -p secretsecret -i 34 -s 12345678 -b vb1 -a attr11 -x secret11 +./bin/vault.sh -e vault-v1/vault_data/ -k vault-v1-more/vault-jceks.keystore -v test -p secretsecret -i 34 -s 12345678 -b vb1 -a attr12 -x secret12 +./bin/vault.sh -e vault-v1/vault_data/ -k vault-v1-more/vault-jceks.keystore -v test2 -p secretsecret -i 34 -s 12345678 -b vb1 -a attr13 -x secret13 Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault-jceks.keystore =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault-jceks.keystore ___________________________________________________________________ Added: svn:mime-type + application/x-java-jce-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault-replacement-jceks.keystore =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault-replacement-jceks.keystore ___________________________________________________________________ Added: svn:mime-type + application/x-java-jce-keystore Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault_data/VAULT.dat =================================================================== (Binary files differ) Property changes on: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/vault-v1-more/vault_data/VAULT.dat ___________________________________________________________________ Added: svn:mime-type + application/octet-stream From jboss-cvs-commits at lists.jboss.org Tue Dec 17 06:53:32 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 17 Dec 2013 06:53:32 -0500 Subject: [jboss-cvs] JBossAS SVN: r114602 - in projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src: test/java/org/jboss/test and 3 other directories. Message-ID: <201312171153.rBHBrWvs013908@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek Date: 2013-12-17 06:53:32 -0500 (Tue, 17 Dec 2013) New Revision: 114602 Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/SecurityActions.java projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java Log: Support external password for keystore of PicketBoxVault implementation (backport for eap5) Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java 2013-12-17 02:09:47 UTC (rev 114601) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java 2013-12-17 11:53:32 UTC (rev 114602) @@ -22,6 +22,7 @@ package org.jboss.security.plugins.vault; import org.jboss.logging.Logger; +import org.jboss.security.Util; import org.jboss.security.plugins.PBEUtils; import org.jboss.security.util.EncryptionUtil; import org.jboss.security.util.KeyStoreUtil; @@ -60,7 +61,20 @@ * The following options are expected in the {@link SecurityVault#init(Map)} call: * ENC_FILE_DIR: the location where the encoded files will be kept. End with "/" or "\" based on your platform * KEYSTORE_URL: location where your keystore is located - * KEYSTORE_PASSWORD: Masked keystore password. Has to be prepended with MASK- + * KEYSTORE_PASSWORD: keystore password. + * 'plain text' masked password (has to be prepended with MASK-) + * '{EXT}...' where the '...' is the exact command + * '{EXTC[:expiration_in_millis]}...' where the '...' is the exact command + * line that will be passed to the Runtime.exec(String) method to execute a + * platform command. The first line of the command output is used as the + * password. + * EXTC variant will cache the passwords for expiration_in_millis milliseconds. + * Default cache expiration is 0 = infinity. + * '{CLASS}classname[:ctorargs]' where the '[:ctorargs]' is an optional + * string delimited by the ':' from the classname that will be passed to the + * classname ctor. The ctorargs itself is a comma delimited list of strings. + * The password is obtained from classname by invoking a + * 'char[] toCharArray()' method if found, otherwise, the 'String toString()' * KEYSTORE_ALIAS: Alias where the keypair is located * SALT: salt of the masked password. Ensured it is 8 characters in length * ITERATION_COUNT: Iteration Count of the masked password. @@ -111,6 +125,10 @@ public static final String PASS_MASK_PREFIX = "MASK-"; + public static final String PASS_CLASS_PREFIX = "{CLASS}"; + + public static final String PASS_EXT_PREFIX = "{EXT"; + public static final String PUBLIC_CERT = "PUBLIC_CERT"; public static final String KEY_SIZE = "KEY_SIZE"; @@ -147,11 +165,13 @@ } keystoreURL = StringUtil.getSystemPropertyAsString(keystoreURL); - String maskedPassword = (String) options.get(KEYSTORE_PASSWORD); - if(maskedPassword == null) + String password = (String) options.get(KEYSTORE_PASSWORD); + if(password == null) throw new SecurityVaultException("Option " + KEYSTORE_PASSWORD + "is null or empty"); - if(maskedPassword.startsWith(PASS_MASK_PREFIX) == false) - throw new SecurityVaultException("Keystore password is not masked"); + if(password.startsWith(PASS_MASK_PREFIX) == false + && password.startsWith(PASS_EXT_PREFIX) == false + && password.startsWith(PASS_CLASS_PREFIX) == false) + throw new SecurityVaultException("Keystore password should be either masked or prefixed with {EXT} or {CLASS}"); String salt = (String) options.get(SALT); if(salt == null) @@ -182,8 +202,7 @@ keyStoreType = (options.get(KEYSTORE_TYPE) != null ? (String) options.get(KEYSTORE_TYPE) : defaultKeyStoreType); try { - String keystorePass = decode(maskedPassword, salt, iterationCount); - keyStorePWD = keystorePass.toCharArray(); + keyStorePWD = loadKeystorePassword(password, salt, iterationCount); keystore = getKeyStore(keystoreURL); checkAndConvertKeyStoreToJCEKS(keystoreURL); @@ -301,7 +320,21 @@ } return true; } - + + private char[] loadKeystorePassword(String passwordDef, String salt, int iterationCount) throws Exception + { + final char[] password; + + if( passwordDef.startsWith(PASS_MASK_PREFIX) ){ + String keystorePass = decode(passwordDef, salt, iterationCount); + password = keystorePass.toCharArray(); + } + else + password = Util.loadPassword(passwordDef); + + return password; + } + private String decode(String maskedString, String salt, int iterationCount) throws Exception { String pbeAlgo = "PBEwithMD5andDES"; Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/SecurityActions.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/SecurityActions.java 2013-12-17 02:09:47 UTC (rev 114601) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/SecurityActions.java 2013-12-17 11:53:32 UTC (rev 114602) @@ -74,4 +74,49 @@ } }); } + + interface SystemPropertyAction + { + SystemPropertyAction PRIVILEGED = new SystemPropertyAction() + { + public String getProperty(final String name, final String defaultValue) + { + String prop = AccessController.doPrivileged( + new PrivilegedAction() + { + public String run() + { + return NON_PRIVILEGED.getProperty(name, defaultValue); + } + } + ); + return prop; + } + }; + SystemPropertyAction NON_PRIVILEGED = new SystemPropertyAction() + { + public String getProperty(final String name, final String defaultValue) + { + final String prop = System.getProperty(name, defaultValue); + return prop; + } + }; + String getProperty(final String name, final String defaultValue); + } + + public static String getProperty(final String name, final String defaultValue) + { + SecurityManager sm = System.getSecurityManager(); + final String prop; + if( sm != null ) + { + prop = SystemPropertyAction.PRIVILEGED.getProperty(name, defaultValue); + } + else + { + prop = SystemPropertyAction.NON_PRIVILEGED.getProperty(name, defaultValue); + } + return prop; + } + } Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/KeystorePasswordProvider.java 2013-12-17 11:53:32 UTC (rev 114602) @@ -0,0 +1,14 @@ +package org.jboss.test.security.vault; + +/** + * Testing password provider for a Vault keystore. + * + * @author Ivo Studensky + */ +public class KeystorePasswordProvider +{ + public char[] toCharArray() + { + return "vault22".toCharArray(); + } +} Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java 2013-12-17 02:09:47 UTC (rev 114601) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java 2013-12-17 11:53:32 UTC (rev 114602) @@ -160,6 +160,96 @@ assertFalse(vault.exists(vaultBlock+"1", attributeName+"2")); } + public void testClassBasedKeystorePassword() throws Exception + { + + setInitialVaulConditions("src/test/resources/keystore/vault.jks", "target/vaults/vault2/vault.jks", + "src/test/resources/keystore/vault_data", "target/vaults/vault2/vault_data"); + + Map options = getVaultOptionsMap( + "target/vaults/vault2/vault.jks", + "target/vaults/vault2/vault_data", + "vault", "12438567", 50, "{CLASS}org.jboss.test.security.vault.KeystorePasswordProvider"); + + String vaultBlock = "aBlock"; + String attributeName = "anAttribute"; + + char[] attributeValue = "aValue".toCharArray(); + + SecurityVault vault = getNewSecurityVaultInstance(); + + vault.init(options); + assertTrue(vault.isInitialized()); + + Map handshakeOptions = new HashMap(); + + byte[] sharedKey = vault.handshake(handshakeOptions); + assertNotNull(sharedKey); + + vault.store(vaultBlock, attributeName, attributeValue , sharedKey); + + assertTrue(vault.exists(vaultBlock, attributeName)); + //Now retrieve + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock, attributeName, sharedKey))); + + vault.store(vaultBlock+"1", attributeName+"2", attributeValue, sharedKey); + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock+"1", attributeName+"2", sharedKey))); + + System.out.println("Currently storing:" + vault.keyList()); + + assertTrue(vault.remove(vaultBlock+"1", attributeName+"2", sharedKey)); + assertFalse(vault.exists(vaultBlock+"1", attributeName+"2")); + } + + public void testExtCmdBasedKeystorePassword() throws Exception + { + // since this test uses an external BASH script it is valid for Linux systems only + String OS_NAME = SecurityActions.getProperty("os.name", null); + if (OS_NAME.startsWith("Linux") == false && OS_NAME.startsWith("LINUX") == false) + return; + + setInitialVaulConditions("src/test/resources/keystore/vault.jks", "target/vaults/vault2/vault.jks", + "src/test/resources/keystore/vault_data", "target/vaults/vault2/vault_data"); + + String absolutePathToAskPass = SecurityVaultUnitTestCase.class.getResource("/bin/askpass.sh").getFile(); + System.out.println("absolutePathToAskPass: " + absolutePathToAskPass); + + // 'Enter passphrase for *' is hard-coded into kwalletaskpass for example + Map options = getVaultOptionsMap( + "target/vaults/vault2/vault.jks", + "target/vaults/vault2/vault_data", + "vault", "12438567", 50, "{EXT}/bin/sh " + absolutePathToAskPass + " Enter passphrase for askpass test"); + + String vaultBlock = "aBlock"; + String attributeName = "anAttribute"; + + char[] attributeValue = "aValue".toCharArray(); + + SecurityVault vault = getNewSecurityVaultInstance(); + + vault.init(options); + assertTrue(vault.isInitialized()); + + Map handshakeOptions = new HashMap(); + + byte[] sharedKey = vault.handshake(handshakeOptions); + assertNotNull(sharedKey); + + vault.store(vaultBlock, attributeName, attributeValue , sharedKey); + + assertTrue(vault.exists(vaultBlock, attributeName)); + //Now retrieve + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock, attributeName, sharedKey))); + + vault.store(vaultBlock+"1", attributeName+"2", attributeValue, sharedKey); + assertEquals(new String(attributeValue), new String(vault.retrieve(vaultBlock+"1", attributeName+"2", sharedKey))); + + System.out.println("Currently storing:" + vault.keyList()); + + assertTrue(vault.remove(vaultBlock+"1", attributeName+"2", sharedKey)); + assertFalse(vault.exists(vaultBlock+"1", attributeName+"2")); + } + /** * See src/test/resources/vault-v0/readme.txt for initial vault setup (including secured attributes). * @throws Exception @@ -347,6 +437,10 @@ private String getMaskedPassword(String pwd, String salt, int iterationCount) throws Exception { + if (pwd.startsWith(PicketBoxSecurityVault.PASS_EXT_PREFIX) + || pwd.startsWith(PicketBoxSecurityVault.PASS_CLASS_PREFIX)) + return pwd; + String algo = "PBEwithMD5andDES"; // Create the PBE secret key @@ -359,7 +453,7 @@ String maskedPass = PBEUtils.encode64(pwd.getBytes(), algo, cipherKey, cipherSpec); - return new String(PicketBoxSecurityVault.PASS_MASK_PREFIX) + maskedPass; + return PicketBoxSecurityVault.PASS_MASK_PREFIX + maskedPass; } Added: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh (rev 0) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh 2013-12-17 11:53:32 UTC (rev 114602) @@ -0,0 +1,2 @@ +#!/bin/sh +echo vault22 \ No newline at end of file From jboss-cvs-commits at lists.jboss.org Tue Dec 17 07:05:01 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 17 Dec 2013 07:05:01 -0500 Subject: [jboss-cvs] Picketbox SVN: r486 - in trunk: security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/callback and 8 other directories. Message-ID: <201312171205.rBHC51ID020076@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek at redhat.com Date: 2013-12-17 07:05:00 -0500 (Tue, 17 Dec 2013) New Revision: 486 Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/Util.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/callback/LdapCallbackHandler.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapUsersLoginModule.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/mapping/providers/attribute/LdapAttributeMappingProvider.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/mapping/providers/role/LdapRolesMappingProvider.java trunk/security-jboss-sx/jbosssx/src/main/java/org/picketbox/plugins/vault/PicketBoxSecurityVault.java trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/helpers/SecurityUtilUnitTestCase.java trunk/security-jboss-sx/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java Log: [SECURITY-771] Enable white-space in parameters for external password command Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/Util.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/Util.java 2013-12-03 11:37:46 UTC (rev 485) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/Util.java 2013-12-17 12:05:00 UTC (rev 486) @@ -35,7 +35,7 @@ /** * Util. - * + * * @author Scott.Stark at jboss.org * @author Adrian Brock * @version $Revision: 1.1 $ @@ -43,7 +43,7 @@ public class Util { private static PasswordCache externalPasswordCache; - + /** * Execute a password load command to obtain the char[] contents of a * password. @@ -55,7 +55,11 @@ * platform command. The first line of the command output is used as the * password. * EXTC variant will cache the passwords for expiration_in_millis milliseconds. - * Default cache expiration is 0 = infinity. + * Default cache expiration is 0 = infinity. + * '{CMD}...' or '{CMDC}...' for a general command to execute. The general + * command is a string delimited by ',' where the first part is the actual + * command and further parts represents its parameters. The comma can be + * backslashed in order to keep it as a part of the parameter. * '{CLASS}classname[:ctorargs]' where the '[:ctorargs]' is an optional * string delimited by the ':' from the classname that will be passed to the * classname ctor. The ctorargs itself is a comma delimited list of strings. @@ -64,13 +68,13 @@ * method is used. * @return the password characters * @throws Exception - */ + */ public static char[] loadPassword(String passwordCmd) - throws Exception + throws Exception { char[] password = null; String passwordCmdType = null; - + // Look for a {...} prefix indicating a password command if( passwordCmd.charAt(0) == '{' ) { @@ -87,7 +91,7 @@ if( password == null ) { // Load the password - if (passwordCmdType.startsWith("EXTC")) { + if (passwordCmdType.startsWith("EXTC") || passwordCmdType.startsWith("CMDC")) { long timeOut = 0; if (passwordCmdType.indexOf(':') > -1) { try { @@ -105,23 +109,34 @@ if (externalPasswordCache.contains(passwordCmd, timeOut)) { password = externalPasswordCache.getPassword(passwordCmd); } else { - password = execPasswordCmd(passwordCmd); + password = switchCommandExecution(passwordCmdType, passwordCmd); if (password != null) { externalPasswordCache.storePassword(passwordCmd, password); } } - } else if (passwordCmdType.startsWith("EXT")) { - // non-cached EXT variant - password = execPasswordCmd(passwordCmd); + } else if (passwordCmdType.startsWith("EXT") || passwordCmdType.startsWith("CMD")) { + // non-cached variant + password = switchCommandExecution(passwordCmdType, passwordCmd); } else if (passwordCmdType.equals("CLASS")) { password = invokePasswordClass(passwordCmd); } else { throw PicketBoxMessages.MESSAGES.invalidPasswordCommandType(passwordCmdType); - } + } } return password; } + private static char[] switchCommandExecution(String passwordCmdType, String passwordCmd) + throws Exception + { + if (passwordCmdType.startsWith("EXT")) + return execPasswordCmd(passwordCmd); + else if (passwordCmdType.startsWith("CMD")) + return execPBBasedPasswordCommand(passwordCmd); + else + throw PicketBoxMessages.MESSAGES.invalidPasswordCommandType(passwordCmdType); + } + /** * Execute a Runtime command to load a password. * @param passwordCmd @@ -129,7 +144,7 @@ * @throws Exception */ private static char[] execPasswordCmd(String passwordCmd) - throws Exception + throws Exception { PicketBoxLogger.LOGGER.traceBeginExecPasswordCmd(passwordCmd); String password = execCmd(passwordCmd); @@ -137,7 +152,7 @@ } private static char[] invokePasswordClass(String passwordCmd) - throws Exception + throws Exception { char[] password = null; @@ -212,24 +227,47 @@ return line; } - + /** + * Execute a Runtime command to load a password. + * It uses ProcessBuilder to execute the command. + * @param passwordCmd + * @return the loaded password + * @throws Exception + */ + private static char[] execPBBasedPasswordCommand(String passwordCmd) throws Exception + { + PicketBoxLogger.LOGGER.traceBeginExecPasswordCmd(passwordCmd); + SecurityManager sm = System.getSecurityManager(); + String password; + if( sm != null ) + { + password = RuntimeActions.PB_BASED_PRIVILEGED.execCmd(passwordCmd); + } + else + { + password = RuntimeActions.PB_BASED_NON_PRIVILEGED.execCmd(passwordCmd); + } + return password.toCharArray(); + } + + interface RuntimeActions { RuntimeActions PRIVILEGED = new RuntimeActions() { public String execCmd(final String cmd) - throws Exception + throws Exception { try { String line = AccessController.doPrivileged( - new PrivilegedExceptionAction() - { - public String run() throws Exception + new PrivilegedExceptionAction() { - return NON_PRIVILEGED.execCmd(cmd); + public String run() throws Exception + { + return NON_PRIVILEGED.execCmd(cmd); + } } - } ); return line; } @@ -242,7 +280,7 @@ RuntimeActions NON_PRIVILEGED = new RuntimeActions() { public String execCmd(final String cmd) - throws Exception + throws Exception { Runtime rt = Runtime.getRuntime(); Process p = rt.exec(cmd); @@ -253,21 +291,108 @@ { stdin = p.getInputStream(); reader = new BufferedReader(new InputStreamReader(stdin)); - line = reader.readLine(); + line = reader.readLine(); } finally { if(reader != null) reader.close(); if(stdin != null) - stdin.close(); + stdin.close(); } - + int exitCode = p.waitFor(); PicketBoxLogger.LOGGER.traceEndExecPasswordCmd(exitCode); return line; } }; + RuntimeActions PB_BASED_PRIVILEGED = new RuntimeActions() + { + public String execCmd(final String command) + throws Exception + { + try + { + String password = AccessController.doPrivileged( + new PrivilegedExceptionAction() + { + public String run() throws Exception + { + return PB_BASED_NON_PRIVILEGED.execCmd(command); + } + } + ); + return password; + } + catch(PrivilegedActionException e) + { + throw e.getException(); + } + } + }; + RuntimeActions PB_BASED_NON_PRIVILEGED = new RuntimeActions() + { + public String execCmd(final String command) throws Exception + { + final String[] parsedCommand = parseCommand(command); + final ProcessBuilder builder = new ProcessBuilder(parsedCommand); + final Process process = builder.start(); + final String line; + BufferedReader reader = null; + try + { + reader = new BufferedReader(new InputStreamReader(process.getInputStream())); + line = reader.readLine(); + } + finally + { + if (reader != null) + reader.close(); + } + + int exitCode = process.waitFor(); + PicketBoxLogger.LOGGER.traceEndExecPasswordCmd(exitCode); + return line; + } + + protected String[] parseCommand(String command) + { + // comma can be backslashed + final String[] parsedCommand = command.split("(? options = getVaultOptionsMap( "target/vaults/vault2/vault.jks", "target/vaults/vault2/vault_data", - "vault", "12438567", 50, "{EXT}/bin/sh " + absolutePathToAskPass + " Enter passphrase for askpass test"); + "vault", "12438567", 50, "{CMD}/bin/sh," + absolutePathToAskPass + ",Enter passphrase for askpass test"); String vaultBlock = "aBlock"; String attributeName = "anAttribute"; @@ -435,8 +436,7 @@ private String getMaskedPassword(String pwd, String salt, int iterationCount) throws Exception { - if (pwd.startsWith(PicketBoxSecurityVault.PASS_EXT_PREFIX) - || pwd.startsWith(PicketBoxSecurityVault.PASS_CLASS_PREFIX)) + if (Util.isPasswordCommand(pwd)) return pwd; String algo = "PBEwithMD5andDES"; Modified: trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh =================================================================== --- trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh 2013-12-03 11:37:46 UTC (rev 485) +++ trunk/security-jboss-sx/jbosssx/src/test/resources/bin/askpass.sh 2013-12-17 12:05:00 UTC (rev 486) @@ -1,2 +1,7 @@ #!/bin/sh -echo vault22 \ No newline at end of file + +if [ "$1" = "Enter passphrase for askpass test" ]; then + echo vault22 +else + echo $1 +fi Modified: trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java =================================================================== --- trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java 2013-12-03 11:37:46 UTC (rev 485) +++ trunk/security-spi/common/src/main/java/org/jboss/security/PicketBoxMessages.java 2013-12-17 12:05:00 UTC (rev 486) @@ -457,6 +457,6 @@ @Message(id = 140, value = "Unable to get keystore (%s)") RuntimeException unableToGetKeyStore(@Cause Throwable throwable, String file); - @Message(id = 141, value = "Keystore password should be either masked or prefixed with {EXT} or {CLASS}") + @Message(id = 141, value = "Keystore password should be either masked or prefixed with one of {EXT}, {EXTC}, {CMD}, {CMDC}, {CLASS}") String invalidKeystorePasswordFormatMessage(); } \ No newline at end of file From jboss-cvs-commits at lists.jboss.org Tue Dec 17 07:09:16 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 17 Dec 2013 07:09:16 -0500 Subject: [jboss-cvs] JBossAS SVN: r114603 - in projects/security/security-negotiation/branches/security-negotiation-2.1.x: assembly and 8 other directories. Message-ID: <201312171209.rBHC9GUh020116@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-17 07:09:15 -0500 (Tue, 17 Dec 2013) New Revision: 114603 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml Log: Preparing to tag 2.1.4.GA Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -2,7 +2,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -42,7 +42,7 @@ org.jboss.documentation negotiation-user-guide-${translation} - 2.1.4.SNAPSHOT + 2.1.4.GA jdocbook Negotiation_User_Guide_(${translation}) Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -8,7 +8,7 @@ 4.0.0 org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA pom JBoss Negotiation Parent http://www.jboss.com Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml 2013-12-17 11:53:32 UTC (rev 114602) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml 2013-12-17 12:09:15 UTC (rev 114603) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.SNAPSHOT + 2.1.4.GA parent/pom.xml 4.0.0 From jboss-cvs-commits at lists.jboss.org Tue Dec 17 07:16:29 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 17 Dec 2013 07:16:29 -0500 Subject: [jboss-cvs] JBossAS SVN: r114604 - projects/security/security-negotiation/tags. Message-ID: <201312171216.rBHCGT3F020876@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-17 07:16:28 -0500 (Tue, 17 Dec 2013) New Revision: 114604 Added: projects/security/security-negotiation/tags/security-negotiation-2.1.4.GA/ Log: Tag 2.1.4.GA From jboss-cvs-commits at lists.jboss.org Tue Dec 17 07:19:19 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 17 Dec 2013 07:19:19 -0500 Subject: [jboss-cvs] JBossAS SVN: r114605 - in projects/security/security-negotiation/branches/security-negotiation-2.1.x: assembly and 8 other directories. Message-ID: <201312171219.rBHCJJY7020997@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-17 07:19:19 -0500 (Tue, 17 Dec 2013) New Revision: 114605 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml Log: Next is 2.1.5 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -2,7 +2,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/userguide/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -42,7 +42,7 @@ org.jboss.documentation negotiation-user-guide-${translation} - 2.1.4.GA + 2.1.5.SNAPSHOT jdocbook Negotiation_User_Guide_(${translation}) Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT ../parent/pom.xml 4.0.0 Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -8,7 +8,7 @@ 4.0.0 org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT pom JBoss Negotiation Parent http://www.jboss.com Modified: projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml 2013-12-17 12:16:28 UTC (rev 114604) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) @@ -3,7 +3,7 @@ org.jboss.security jboss-negotiation-project - 2.1.4.GA + 2.1.5.SNAPSHOT parent/pom.xml 4.0.0 From jboss-cvs-commits at lists.jboss.org Tue Dec 17 11:07:03 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 17 Dec 2013 11:07:03 -0500 Subject: [jboss-cvs] JBossAS SVN: r114606 - branches/JBPAPP_5/component-matrix. Message-ID: <201312171607.rBHG73rP021341@svn01.web.mwc.hst.phx2.redhat.com> Author: ehugonnet Date: 2013-12-17 11:07:03 -0500 (Tue, 17 Dec 2013) New Revision: 114606 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-9056: Updating netty to 2.6.2.Final to have the same version as the one used by HornetQ Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-17 12:19:19 UTC (rev 114605) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-17 16:07:03 UTC (rev 114606) @@ -1026,7 +1026,7 @@ org.jboss.netty netty - 3.2.5.Final + 3.2.6.Final From jboss-cvs-commits at lists.jboss.org Wed Dec 18 03:20:35 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Wed, 18 Dec 2013 03:20:35 -0500 Subject: [jboss-cvs] JBossAS SVN: r114607 - in branches/JBPAPP_5: testsuite/src/main/org/jboss/test/jmx/invoker and 1 other directories. Message-ID: <201312180820.rBI8KZ2n026763@svn01.web.mwc.hst.phx2.redhat.com> Author: baranowb Date: 2013-12-18 03:20:34 -0500 (Wed, 18 Dec 2013) New Revision: 114607 Added: branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/ branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/RolesAuthorizationTestCase.java branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/jmx-security-roles.xml Modified: branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/AuthorizationTarget.java branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Operation.java branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Parser.java branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/RolesAuthorization.java Log: JBPAPP-10716 fix Modified: branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/AuthorizationTarget.java =================================================================== --- branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/AuthorizationTarget.java 2013-12-17 16:07:03 UTC (rev 114606) +++ branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/AuthorizationTarget.java 2013-12-18 08:20:34 UTC (rev 114607) @@ -22,7 +22,9 @@ package org.jboss.jmx.connector.invoker.authorization.roles; +import java.util.List; import java.util.Map; +import java.util.regex.Pattern; import javax.management.ObjectName; @@ -35,13 +37,13 @@ public class AuthorizationTarget { private ObjectName objectName; - private Map operations; + private List operations; /** * @param objectName * @param operations2 */ - public AuthorizationTarget(ObjectName objectName, Map operations) { + public AuthorizationTarget(ObjectName objectName, List operations) { this.objectName = objectName; this.operations = operations; } @@ -51,7 +53,14 @@ * @return */ public Operation matchOperation(String opname) { - final Operation target = operations.get(opname); + Operation target = null; + for(int index = 0; index < operations.size(); index++){ + Operation o = this.operations.get(index); + if(Pattern.matches(o.getName(), opname)){ + target = o; + break; + } + } if (target == null) { throw new SecurityException("No rules defined at: '" + objectName + "' for operation: " + opname); Modified: branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Operation.java =================================================================== --- branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Operation.java 2013-12-17 16:07:03 UTC (rev 114606) +++ branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Operation.java 2013-12-18 08:20:34 UTC (rev 114607) @@ -40,7 +40,7 @@ /** * @param name - * @param roles + * @param roles * @param objectName */ public Operation(String name, List roles, ObjectName objectName) { @@ -59,6 +59,9 @@ while (it.hasNext() && hasRole == false) { Principal p = it.next(); hasRole = roles.isMember(p); + if (hasRole) { + break; + } } if (hasRole == false) { throw new SecurityException("Authorization failure,target='" + objectName + "', operation='" + name Modified: branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Parser.java =================================================================== --- branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Parser.java 2013-12-17 16:07:03 UTC (rev 114606) +++ branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/Parser.java 2013-12-18 08:20:34 UTC (rev 114607) @@ -104,7 +104,7 @@ final Element nameElement = (Element) list.item(0); final String name = nameElement.getTextContent(); final ObjectName objectName = new ObjectName(name); - Map operations = new HashMap(); + List operations = new ArrayList(); list = (NodeList) (XPATH.evaluate(OPERATIONS, authorizationTarget, XPathConstants.NODESET)); if (list.getLength() == 0) { @@ -116,7 +116,7 @@ final int count = list.getLength(); for (int index = 0; index < count; index++) { Operation op = parseOperation(list.item(index), objectName); - operations.put(op.getName(), op); + operations.add(op); } return new AuthorizationTarget(objectName, operations); Modified: branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/RolesAuthorization.java =================================================================== --- branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/RolesAuthorization.java 2013-12-17 16:07:03 UTC (rev 114606) +++ branches/JBPAPP_5/server/src/main/org/jboss/jmx/connector/invoker/authorization/roles/RolesAuthorization.java 2013-12-18 08:20:34 UTC (rev 114607) @@ -22,10 +22,12 @@ package org.jboss.jmx.connector.invoker.authorization.roles; +import java.io.File; import java.io.IOException; import java.io.InputStream; import java.security.Principal; import java.security.acl.Group; +import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; @@ -36,6 +38,8 @@ import javax.management.ObjectName; import javax.security.auth.Subject; +import org.jboss.security.SimpleGroup; + /** * Roles based authorization. This is advanced version of {@link org.jboss.jmx.connector.invoker.RolesAuthorization}. It * provides fine grained check against: @@ -45,11 +49,35 @@ *
  • user role
  • - determines( just like {@link org.jboss.jmx.connector.invoker.RolesAuthorization}) if current subject has * required role. * - * This allows to define per role access level to certain MBeans and their methods. This implementation does not support wild - * cards. It requires strict rules definition. If no rule is defined for target/method - it will deny access. Default - * implementation requires configuration file(jmx-security-roles.xml) to be present in - * $JBOSS_HOME/server/${node}/conf.
    + * This allows to define per role access level to certain MBeans and their methods. Default implementation requires + * configuration file(jmx-security-roles.xml) to be present in $JBOSS_HOME/server/${node}/conf.
    * Configuration file format looks as follows:
    + *
    + *
    + * Note that 'wildcards' are supported. Valid MBean names:
    + *
      + *
    • jboss:type=simple
    • + *
    • jboss:type=*
    • + *
    • jboss:*
    • + *
    + *
    + * Operation names support regular expression, valid operation names: + *
      + *
    • invoke
    • + *
    • get*
    • + *
    • getData
    • + *
    + *
    + * Be aware that this implementation considers rules as chains. This means that order of rule definition is important, in case + * of operation name and MBean name.
    + * If authorization-target(3) MBean name match desired name, the authorization-target(4) is not processed, even though it may + * match MBean name:
    + * desired name: jboss:data=simple,name=myname
    + * authorization-target(3): jboss:data=simple,*
    + * authorization-target(4): jboss:*
    + * Operation name match works in similar way.
    + *
    + * Example configuration entry: * *
      * <authorization-rules>
    @@ -96,9 +124,9 @@
      */
     public class RolesAuthorization {
     
    -    private static final String CONFIGURATION_FILE = "jmx-security-roles.xml";
    +    protected static final String CONFIGURATION_FILE = "jmx-security-roles.xml";
     
    -    private final Map oname2Authorization = new HashMap();
    +    private List authorizationTargets;
     
         /**
          * 
    @@ -109,11 +137,11 @@
         }
     
         public void authorize(Principal caller, Subject subject, String objectname, String opname) {
    -        Set groups = subject.getPrincipals(Group.class);
    +        final Set groups = subject.getPrincipals(Group.class);
             Group roles = null;
    -        Iterator iter = groups.iterator();
    +        final Iterator iter = groups.iterator();
             while (iter.hasNext()) {
    -            Group grp = (Group) iter.next();
    +            Group grp = iter.next();
                 if (grp.getName().equals("Roles")) {
                     roles = grp;
                     break;
    @@ -123,10 +151,9 @@
                 throw new SecurityException("Subject has no Roles, there is no way to assert access privilege!");
             }
     
    -        AuthorizationTarget target = matchTraget(objectname);
    +        final AuthorizationTarget target = matchTraget(objectname);
    +        final Operation operation = target.matchOperation(opname);
     
    -        Operation operation = target.matchOperation(opname);
    -
             operation.assertPrivilege(roles);
     
         }
    @@ -140,7 +167,14 @@
             } catch (NullPointerException e) {
                 throw new SecurityException("Malformed taget name: '" + objectName + "'");
             }
    -        AuthorizationTarget target = this.oname2Authorization.get(name);
    +        AuthorizationTarget target = null;
    +        for (int index = 0; index < this.authorizationTargets.size(); index++) {
    +            AuthorizationTarget at = this.authorizationTargets.get(index);
    +            if (at.getObjectName().apply(name)) {
    +                target = at;
    +                break;
    +            }
    +        }
     
             if (target == null) {
                 throw new SecurityException("No rules defined for: '" + objectName + "'");
    @@ -151,21 +185,25 @@
         protected void configure() throws Exception {
             InputStream is = null;
             try {
    -            is = Thread.currentThread().getContextClassLoader().getResourceAsStream(CONFIGURATION_FILE);
    -            if (is == null) {
    -                throw new IOException("Failed to read configuration file '" + CONFIGURATION_FILE
    -                        + "' from server 'conf' directory!");
    -            }
    -            List targets = Parser.parse(is);
    -            for (AuthorizationTarget t : targets) {
    -                this.oname2Authorization.put(t.getObjectName(), t);
    -            }
    +            is = this.getConfigurationStream();
    +            this.authorizationTargets = Parser.parse(is);
             } finally {
    -            if(is != null){
    -                try{
    +            if (is != null) {
    +                try {
                         is.close();
    -                }catch(Exception e){}
    +                } catch (Exception e) {
    +                }
                 }
             }
         }
    +
    +    protected InputStream getConfigurationStream() throws Exception {
    +        InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(CONFIGURATION_FILE);
    +        if (is == null) {
    +            throw new IOException("Failed to read configuration file '" + CONFIGURATION_FILE
    +                    + "' from server 'conf' directory!");
    +        }
    +        return is;
    +
    +    }
     }
    \ No newline at end of file
    
    Added: branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/RolesAuthorizationTestCase.java
    ===================================================================
    --- branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/RolesAuthorizationTestCase.java	                        (rev 0)
    +++ branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/RolesAuthorizationTestCase.java	2013-12-18 08:20:34 UTC (rev 114607)
    @@ -0,0 +1,200 @@
    +/*
    + * JBoss, Home of Professional Open Source.
    + * Copyright 2013, Red Hat, Inc., 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.test.jmx.invoker.authorization;
    +
    +import java.io.File;
    +import java.io.FileInputStream;
    +import java.io.InputStream;
    +import java.security.Principal;
    +import java.security.acl.Group;
    +import java.util.HashSet;
    +import java.util.Set;
    +
    +import javax.security.auth.Subject;
    +
    +import org.jboss.jmx.connector.invoker.authorization.roles.RolesAuthorization;
    +import org.jboss.security.SimpleGroup;
    +import org.jboss.security.SimplePrincipal;
    +import org.jboss.test.JBossTestCase;
    +
    +/**
    + * @author baranowb
    + * 
    + */
    +public class RolesAuthorizationTestCase extends JBossTestCase {
    +    private RolesAuthorization authorization;
    +
    +    /**
    +     * @param name
    +     */
    +    public RolesAuthorizationTestCase(String name) {
    +        super(name);
    +    }
    +
    +    @Override
    +    protected void setUp() throws Exception {
    +        super.setUp();
    +        this.authorization = new RolesAuthorization() {
    +            @Override
    +            protected InputStream getConfigurationStream() throws Exception {
    +                return new FileInputStream(new File(".." + File.separator + "src" + File.separator + "main" + File.separator
    +                        + "org" + File.separator + "jboss" + File.separator + "test" + File.separator + "jmx" + File.separator
    +                        + "invoker" + File.separator + "authorization" + File.separator + super.CONFIGURATION_FILE));
    +            }
    +
    +        };
    +    }
    +
    +    @Override
    +    protected void tearDown() throws Exception {
    +        this.authorization = null;
    +        super.tearDown();
    +    }
    +
    +    public void testAuthorization() throws Exception {
    +        final String objectName = "jboss:service=JNDIView";
    +        final String opName = "list";
    +        final Principal caller = new SimplePrincipal("test");
    +        // yeah, this is stupid
    +        final Group group = new SimpleGroup("Roles");
    +        group.addMember(new SimplePrincipal("Tester"));
    +        final Set callers = new HashSet();
    +        callers.add(caller);
    +        callers.add(group);
    +        final Subject subject = new Subject(false, callers, new HashSet(), new HashSet());
    +        authorization.authorize(caller, subject, objectName, opName);
    +    }
    +
    +    public void testWildarcMatch() throws Exception {
    +        final String objectName = "jboss:service=NO_BOOM";
    +        final String opName = "list";
    +        final Principal caller = new SimplePrincipal("test");
    +        // yeah, this is stupid
    +        final Group group = new SimpleGroup("Roles");
    +        group.addMember(new SimplePrincipal("Tester"));
    +        final Set callers = new HashSet();
    +        callers.add(caller);
    +        callers.add(group);
    +        final Subject subject = new Subject(false, callers, new HashSet(), new HashSet());
    +        try {
    +            authorization.authorize(caller, subject, objectName, opName);
    +        } catch (SecurityException se) {
    +            fail("Did not expect exception");
    +        }
    +    }
    +    public void testWildarcMatch_2() throws Exception {
    +        //this is ! to testNoRule_3
    +        final String objectName = "jboss:type=NO_BOOM";
    +        final String opName = "getSomeThingThatDoesNotExist";
    +        final Principal caller = new SimplePrincipal("test");
    +        // yeah, this is stupid
    +        final Group group = new SimpleGroup("Roles");
    +        group.addMember(new SimplePrincipal("Tester"));
    +        final Set callers = new HashSet();
    +        callers.add(caller);
    +        callers.add(group);
    +        final Subject subject = new Subject(false, callers, new HashSet(), new HashSet());
    +        try {
    +            authorization.authorize(caller, subject, objectName, opName);
    +        } catch (SecurityException se) {
    +            fail("Did not expect exception");
    +        }
    +    }
    +    public void testNoRule() throws Exception {
    +        final String objectName = "jboss:service=BOOM";
    +        final String opName = "list";
    +        final Principal caller = new SimplePrincipal("test");
    +        // yeah, this is stupid
    +        final Group group = new SimpleGroup("Roles");
    +        group.addMember(new SimplePrincipal("JBossAdmin"));
    +        final Set callers = new HashSet();
    +        callers.add(caller);
    +        callers.add(group);
    +        final Subject subject = new Subject(false, callers, new HashSet(), new HashSet());
    +        try {
    +            authorization.authorize(caller, subject, objectName, opName);
    +            fail("Expected SecurityException since there is no rule!");
    +        } catch (SecurityException se) {
    +            //
    +        }
    +    }
    +
    +    public void testNoRule_2() throws Exception {
    +        final String objectName = "wicked_domain:service=BOOM";
    +        final String opName = "list";
    +        final Principal caller = new SimplePrincipal("test");
    +        // yeah, this is stupid
    +        final Group group = new SimpleGroup("Roles");
    +        group.addMember(new SimplePrincipal("JBossAdmin"));
    +        final Set callers = new HashSet();
    +        callers.add(caller);
    +        callers.add(group);
    +        final Subject subject = new Subject(false, callers, new HashSet(), new HashSet());
    +        try {
    +            authorization.authorize(caller, subject, objectName, opName);
    +            fail("Expected SecurityException since there is no rule!");
    +        } catch (SecurityException se) {
    +            //
    +        }
    +    }
    +
    +    public void testNoRule_3() throws Exception {
    +        //test if first rule op def will match - it has only Tester role.
    +        //second rule should never be triggered
    +        final String objectName = "jboss:type=NO_BOOM";
    +        final String opName = "getSomeThingThatDoesNotExist";
    +        final Principal caller = new SimplePrincipal("test");
    +        // yeah, this is stupid
    +        final Group group = new SimpleGroup("Roles");
    +        group.addMember(new SimplePrincipal("JBossAdmin"));
    +        final Set callers = new HashSet();
    +        callers.add(caller);
    +        callers.add(group);
    +        final Subject subject = new Subject(false, callers, new HashSet(), new HashSet());
    +        try {
    +            authorization.authorize(caller, subject, objectName, opName);
    +            fail("Expected SecurityException since there is no rule!");
    +        } catch (SecurityException se) {
    +            //
    +        }
    +    }
    +
    +    public void testAuthorizationFailure() throws Exception {
    +        final String objectName = "jboss:service=JNDIView";
    +        final String opName = "list";
    +        final Principal caller = new SimplePrincipal("test");
    +        // yeah, this is stupid
    +        final Group group = new SimpleGroup("Roles");
    +        group.addMember(new SimplePrincipal("IWillBoom"));
    +        final Set callers = new HashSet();
    +        callers.add(caller);
    +        callers.add(group);
    +        final Subject subject = new Subject(false, callers, new HashSet(), new HashSet());
    +        try {
    +            authorization.authorize(caller, subject, objectName, opName);
    +            fail("Expected SecurityException since there is no role!");
    +        } catch (SecurityException se) {
    +            //
    +        }
    +    }
    +}
    
    Added: branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/jmx-security-roles.xml
    ===================================================================
    --- branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/jmx-security-roles.xml	                        (rev 0)
    +++ branches/JBPAPP_5/testsuite/src/main/org/jboss/test/jmx/invoker/authorization/jmx-security-roles.xml	2013-12-18 08:20:34 UTC (rev 114607)
    @@ -0,0 +1,60 @@
    +
    +
    +    
    +        jboss:service=JNDIView
    +        
    +            
    +                queryNames
    +                
    +                    JBossAdmin
    +                    Tester 
    +                
    +            
    +            
    +                list
    +                
    +                    Tester
    +                    JBossAdmin
    +                
    +            
    +        
    +    
    +    
    +        jboss:service=invoker,*
    +        
    +            
    +              setRMIObjectPort
    +              
    +                JBossAdmin
    +              
    +            
    +            
    +                get.*
    +                
    +                  JBossAdmin
    +                  Tester
    +                  Babe
    +                
    +            
    +        
    +    
    +    
    +        jboss:*
    +        
    +            
    +              
    +              .*
    +              
    +                Tester
    +              
    +            
    +            
    +                get.*
    +                
    +                  JBossAdmin
    +                  Babe
    +                
    +            
    +        
    +    
    +
    \ No newline at end of file
    
    
    From jboss-cvs-commits at lists.jboss.org  Wed Dec 18 11:40:50 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Wed, 18 Dec 2013 11:40:50 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114608 -
    	projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/crypto.
    Message-ID: <201312181640.rBIGeoXO018435@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: ehugonnet
    Date: 2013-12-18 11:40:50 -0500 (Wed, 18 Dec 2013)
    New Revision: 114608
    
    Modified:
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/crypto/CryptoUtil.java
    Log:
    JBPAPP-10556: CryptoUtil.hasUnlimitedCrypto() returns true even if the unlimited JCE cryptography is not installed
    Backport from EAP 6
    
    
    Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/crypto/CryptoUtil.java
    ===================================================================
    --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/crypto/CryptoUtil.java	2013-12-18 08:20:34 UTC (rev 114607)
    +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/crypto/CryptoUtil.java	2013-12-18 16:40:50 UTC (rev 114608)
    @@ -24,7 +24,6 @@
     import java.io.Serializable;
     import java.io.UnsupportedEncodingException;
     import java.lang.reflect.Constructor;
    -import java.lang.reflect.Method;
     import java.math.BigInteger;
     import java.security.GeneralSecurityException;
     import java.security.KeyException;
    @@ -35,7 +34,6 @@
     import java.security.Security;
     import java.util.Random;
     
    -import javax.crypto.KeyGenerator;
     import javax.crypto.spec.SecretKeySpec;
     
     import org.jboss.crypto.digest.DigestCallback;
    @@ -476,17 +474,7 @@
           boolean hasUnlimitedCrypto = false;
           try
           { 
    -         Class keyGenClass = KeyGenerator.class;
    -         Class[] sig = {String.class};
    -         Object[] args = {"Blowfish"};
    -         Method kgenInstance = keyGenClass.getDeclaredMethod("getInstance", sig);
    -         Object kgen = kgenInstance.invoke(null, args);
    -
    -         Class[] sig2 = {int.class};
    -         Object[] args2 = {Integer.valueOf(256)};
    -         Method init = keyGenClass.getDeclaredMethod("init", sig2);         
    -         init.invoke(kgen, args2);
    -         hasUnlimitedCrypto = true;
    +         hasUnlimitedCrypto = javax.crypto.Cipher.getMaxAllowedKeyLength("Blowfish") > 128;
           }
           catch(Throwable e)
           {
    
    
    From jboss-cvs-commits at lists.jboss.org  Wed Dec 18 11:50:51 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Wed, 18 Dec 2013 11:50:51 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114609 -
    	branches/JBPAPP_5/component-matrix.
    Message-ID: <201312181650.rBIGopJn018629@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: huwang
    Date: 2013-12-18 11:50:51 -0500 (Wed, 18 Dec 2013)
    New Revision: 114609
    
    Modified:
       branches/JBPAPP_5/component-matrix/pom.xml
    Log:
    JBPAPP-10220 Upgrade JBoss CL to 2.0.12.GA, JBPAPP-10744 upgrade jboss serialization to 1_0_6, JBPAPP-10645 Upgrade JBoss VFS to 2.2.3.GA, JBPAPP-10719 Upgrade Picketbox Negotiation to 2.1.4 and JBPAPP-10360 Upgrade jboss-server-manager to 1.0.2.GA_CP02
    
    Modified: branches/JBPAPP_5/component-matrix/pom.xml
    ===================================================================
    --- branches/JBPAPP_5/component-matrix/pom.xml	2013-12-18 16:40:50 UTC (rev 114608)
    +++ branches/JBPAPP_5/component-matrix/pom.xml	2013-12-18 16:50:51 UTC (rev 114609)
    @@ -64,7 +64,7 @@
         1.0.0.GA
         3.2.11.GA
         3.0.1.GA
    -    2.0.11.GA
    +    2.0.12.GA
         2.0.3.Final
         2.0.0.GA
         1.1.4.Final
    @@ -88,9 +88,11 @@
         2.5.4.SP4_patch01
         2.0.5.SP3-1-patch-01
         2.0.5.SP3-1
    -    2.1.3.GA
    +    2.1.4.GA
    +    1.0.6.FINAL
    +    1.0.2.GA_CP02
         1.0.0.GA
    -    2.2.1.GA
    +    2.2.3.GA
         1.0.1.GA
         1.2.1.GA
         1.5.8-patch-01
    @@ -631,7 +633,7 @@
           
             jboss
             jboss-serialization
    -        1.0.5.FINAL
    +        ${version.org.jboss.serialization}
             
               
                 jboss
    @@ -1509,7 +1511,7 @@
           
             org.jboss.jbossas
             jboss-server-manager
    -        1.0.2.GA
    +        ${version.org.jboss.server.manager}
             
               
                 org.jboss.jbossas
    
    
    From jboss-cvs-commits at lists.jboss.org  Thu Dec 19 01:42:09 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Thu, 19 Dec 2013 01:42:09 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114610 - in branches/JBPAPP_5:
    	testsuite/src/main/org/jboss/test/security/test and 1 other
    	directory.
    Message-ID: <201312190642.rBJ6g9rO006311@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: istudens at redhat.com
    Date: 2013-12-19 01:42:08 -0500 (Thu, 19 Dec 2013)
    New Revision: 114610
    
    Added:
       branches/JBPAPP_5/security/src/main/org/jboss/security/plugins/JaasSecurityDomainUtil.java
    Modified:
       branches/JBPAPP_5/testsuite/src/main/org/jboss/test/security/test/JaasSecurityDomainUnitTestCase.java
    Log:
    JBPAPP-10913 Provide a helper class for JAAS Security Domain encrypt/decrypt functions
    
    Added: branches/JBPAPP_5/security/src/main/org/jboss/security/plugins/JaasSecurityDomainUtil.java
    ===================================================================
    --- branches/JBPAPP_5/security/src/main/org/jboss/security/plugins/JaasSecurityDomainUtil.java	                        (rev 0)
    +++ branches/JBPAPP_5/security/src/main/org/jboss/security/plugins/JaasSecurityDomainUtil.java	2013-12-19 06:42:08 UTC (rev 114610)
    @@ -0,0 +1,127 @@
    +package org.jboss.security.plugins;
    +
    +import org.jboss.mx.util.MBeanServerLocator;
    +
    +import javax.management.MBeanServer;
    +import javax.management.MBeanServerConnection;
    +import javax.management.ObjectName;
    +
    +/**
    + * A helper encryting/decrypting application level API based on JAAS Security Domain.
    + *
    + * @author Ivo Studensky
    + */
    +public class JaasSecurityDomainUtil {
    +
    +   /** Encode a secret using the securityDomain.
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the byte sequence to encrypt
    +    * @return the encrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static byte[] encode(String securityDomain, byte[] secret) throws Exception
    +   {
    +      return (byte[]) invoke(securityDomain, "encode", new Object[]{secret}, new String[]{byte[].class.getName()});
    +   }
    +
    +   /** Encode a secret using the securityDomain.
    +    * @param server jboss mbean server
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the byte sequence to encrypt
    +    * @return the encrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static byte[] encode(MBeanServerConnection server, String securityDomain, byte[] secret) throws Exception
    +   {
    +      return (byte[]) invoke(server, securityDomain, "encode", new Object[]{secret}, new String[]{byte[].class.getName()});
    +   }
    +
    +   /** Decode a secret using the securityDomain.
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the byte sequence to decrypt
    +    * @return the decrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static byte[] decode(String securityDomain, byte[] secret) throws Exception
    +   {
    +      return (byte[]) invoke(securityDomain, "decode", new Object[]{secret}, new String[]{byte[].class.getName()});
    +   }
    +
    +   /** Decode a secret using the securityDomain.
    +    * @param server jboss mbean server
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the byte sequence to decrypt
    +    * @return the decrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static byte[] decode(MBeanServerConnection server, String securityDomain, byte[] secret) throws Exception
    +   {
    +      return (byte[]) invoke(server, securityDomain, "decode", new Object[]{secret}, new String[]{byte[].class.getName()});
    +   }
    +
    +   /** Encode a secret using the securityDomain.
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the byte sequence to encrypt as a base64 string using
    +    *    the Util.tob64() function
    +    * @return the encrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static String encode64(String securityDomain, byte[] secret) throws Exception
    +   {
    +      return (String) invoke(securityDomain, "encode64", new Object[]{secret}, new String[]{byte[].class.getName()});
    +   }
    +
    +   /** Encode a secret using the securityDomain.
    +    * @param server jboss mbean server
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the byte sequence to encrypt as a base64 string using
    +    *    the Util.tob64() function
    +    * @return the encrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static String encode64(MBeanServerConnection server, String securityDomain, byte[] secret) throws Exception
    +   {
    +      return (String) invoke(server, securityDomain, "encode64", new Object[]{secret}, new String[]{byte[].class.getName()});
    +   }
    +
    +   /** Decode a secret using the securityDomain.
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the Util.tob64 string represention to decrypt
    +    * @return the decrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static byte[] decode64(String securityDomain, String secret) throws Exception
    +   {
    +      return (byte[]) invoke(securityDomain, "decode64", new Object[] {secret}, new String[] {String.class.getName()});
    +   }
    +
    +   /** Decode a secret using the securityDomain.
    +    * @param server jboss mbean server
    +    * @param securityDomain the security domain mbean name
    +    * @param secret - the Util.tob64 string represention to decrypt
    +    * @return the decrypted byte sequence
    +    * @throws Exception
    +    */
    +   public static byte[] decode64(MBeanServerConnection server, String securityDomain, String secret) throws Exception
    +   {
    +      return (byte[]) invoke(server, securityDomain, "decode64", new Object[] {secret}, new String[] {String.class.getName()});
    +   }
    +
    +   /*
    +    * Invokes a method methodName on a securityDomain with its params.
    +    */
    +   private static Object invoke(String securityDomain, String methodName, Object[] params, String[] signature) throws Exception
    +   {
    +      MBeanServer server = MBeanServerLocator.locateJBoss();
    +      return invoke(server, securityDomain, methodName, params, signature);
    +   }
    +
    +   /*
    +    * Invokes a method methodName on a securityDomain with its params.
    +    */
    +   private static Object invoke(MBeanServerConnection server, String securityDomain, String methodName, Object[] params, String[] signature) throws Exception
    +   {
    +      return server.invoke(new ObjectName(securityDomain), methodName, params, signature);
    +   }
    +
    +}
    
    Modified: branches/JBPAPP_5/testsuite/src/main/org/jboss/test/security/test/JaasSecurityDomainUnitTestCase.java
    ===================================================================
    --- branches/JBPAPP_5/testsuite/src/main/org/jboss/test/security/test/JaasSecurityDomainUnitTestCase.java	2013-12-18 16:50:51 UTC (rev 114609)
    +++ branches/JBPAPP_5/testsuite/src/main/org/jboss/test/security/test/JaasSecurityDomainUnitTestCase.java	2013-12-19 06:42:08 UTC (rev 114610)
    @@ -31,6 +31,7 @@
     import javax.crypto.SecretKey;
     import javax.crypto.Cipher;
     
    +import org.jboss.security.plugins.JaasSecurityDomainUtil;
     import org.jboss.test.JBossTestCase;
     import org.jboss.test.JBossTestSetup;
     import org.jboss.security.plugins.FilePassword;
    @@ -133,6 +134,25 @@
           assertTrue("secret == decode2", Arrays.equals(secret, decode2));
        }
     
    +   public void testEncodeDecodeWithUtil() throws Exception
    +   {
    +      String securityDomain = "jboss.security:service=JaasSecurityDomain,domain=encode-decode";
    +      byte[] secret = "secret".getBytes();
    +      byte[] encode = JaasSecurityDomainUtil.encode(getServer(), securityDomain, secret);
    +      assertTrue("secret != encode", Arrays.equals(secret, encode) == false);
    +      byte[] decode = JaasSecurityDomainUtil.decode(getServer(), securityDomain, encode);
    +      assertTrue("secret == decode", Arrays.equals(secret, decode));
    +
    +      // repeat the test, this time invoking the sec domain that was configured as a microcontainer bean.
    +      String exportedSecurityDomain = "jboss.security:service=JaasSecurityDomain,domain=encode-decode2";
    +      // invoke the encode operation using the bean's exported MBean interface.
    +      byte[] encode2 = JaasSecurityDomainUtil.encode(getServer(), exportedSecurityDomain, secret);
    +      assertTrue("secret != encode2", Arrays.equals(secret, encode2) == false);
    +      // invoke the decode operation using the bean's exported MBean interface.
    +      byte[] decode2 = JaasSecurityDomainUtil.decode(getServer(), exportedSecurityDomain, encode2);
    +      assertTrue("secret == decode2", Arrays.equals(secret, decode2));
    +   }
    +
        public void testEncodeDecode64() throws Exception
        {
           ObjectName name = new ObjectName("jboss.security:service=JaasSecurityDomain,domain=encode-decode");
    @@ -156,6 +176,23 @@
           assertTrue("secret == decode2", Arrays.equals(secret, decode2));
        }
     
    +   public void testEncodeDecode64WithUtil() throws Exception
    +   {
    +      String securityDomain = "jboss.security:service=JaasSecurityDomain,domain=encode-decode";
    +      byte[] secret = "secret".getBytes();
    +      String encode = JaasSecurityDomainUtil.encode64(getServer(), securityDomain, secret);
    +      byte[] decode = JaasSecurityDomainUtil.decode64(getServer(), securityDomain, encode);
    +      assertTrue("secret == decode", Arrays.equals(secret, decode));
    +
    +      // repeat the test, this time invoking the sec domain that was configured as a microcontainer bean.
    +      String exportedSecurityDomain = "jboss.security:service=JaasSecurityDomain,domain=encode-decode2";
    +      // invoke the encode64 operation using the bean's exported MBean interface.
    +      String encode2 = JaasSecurityDomainUtil.encode64(getServer(), exportedSecurityDomain, secret);
    +      // invoke the decode64 operation using the bean's exported MBean interface.
    +      byte[] decode2 = JaasSecurityDomainUtil.decode64(getServer(), exportedSecurityDomain, encode2);
    +      assertTrue("secret == decode2", Arrays.equals(secret, decode2));
    +   }
    +
        /**
         * Setup the test suite.
         */
    
    
    From jboss-cvs-commits at lists.jboss.org  Thu Dec 19 02:19:42 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Thu, 19 Dec 2013 02:19:42 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114611 - in branches/JBPAPP_5:
    	testsuite/src/main/org/jboss/test/scripts/test and 1 other
    	directory.
    Message-ID: <201312190719.rBJ7JgEq013558@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: istudens at redhat.com
    Date: 2013-12-19 02:19:42 -0500 (Thu, 19 Dec 2013)
    New Revision: 114611
    
    Modified:
       branches/JBPAPP_5/server/src/main/org/jboss/Shutdown.java
       branches/JBPAPP_5/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java
    Log:
    JBPAPP-10912 Provide credentials via a property file for the shutdown script
    
    Modified: branches/JBPAPP_5/server/src/main/org/jboss/Shutdown.java
    ===================================================================
    --- branches/JBPAPP_5/server/src/main/org/jboss/Shutdown.java	2013-12-19 06:42:08 UTC (rev 114610)
    +++ branches/JBPAPP_5/server/src/main/org/jboss/Shutdown.java	2013-12-19 07:19:42 UTC (rev 114611)
    @@ -21,6 +21,8 @@
      */
     package org.jboss;
     
    +import java.io.FileInputStream;
    +import java.io.IOException;
     import java.lang.reflect.InvocationHandler;
     import java.lang.reflect.Method;
     import java.lang.reflect.Proxy;
    @@ -34,7 +36,6 @@
     import javax.naming.Context;
     import javax.naming.InitialContext;
     
    -
     import gnu.getopt.Getopt;
     import gnu.getopt.LongOpt;
     
    @@ -46,6 +47,8 @@
     import org.jboss.mx.util.ObjectNameFactory;
     
     import java.io.Console;
    +import java.util.Properties;
    +
     /**
      * A JMX client that uses an MBeanServerConnection to shutdown a remote JBoss
      * server.
    @@ -69,19 +72,23 @@
           System.out.println("usage: " + PROGRAM_NAME + " [options] ");
           System.out.println();
           System.out.println("options:");
    -      System.out.println("    -h, --help                Show this help message (default)");
    -      System.out.println("    -D[=]        Set a system property");
    -      System.out.println("    --                        Stop processing options");
    -      System.out.println("    -s, --server=        Specify the JNDI URL of the remote server");
    -      System.out.println("    -n, --serverName=    Specify the JMX name of the ServerImpl");
    -      System.out.println("    -a, --adapter=      Specify JNDI name of the MBeanServerConnection to use");
    -      System.out.println("    -u, --user=         Specify the username for authentication");
    -      System.out.println("    -p, --password=     Specify the password for authentication");
    +      System.out.println("    -h, --help                    Show this help message (default)");
    +      System.out.println("    -D[=]            Set a system property");
    +      System.out.println("    --                            Stop processing options");
    +      System.out.println("    -s, --server=            Specify the JNDI URL of the remote server");
    +      System.out.println("    -n, --serverName=        Specify the JMX name of the ServerImpl");
    +      System.out.println("    -a, --adapter=          Specify JNDI name of the MBeanServerConnection to use");
    +      System.out.println("    -u, --user=             Specify the username for authentication");
    +      System.out.println("    -p, --password=         Specify the password for authentication");
    +      System.out.println("    -P, --properties=   Load options from a property file");
    +      System.out.println("                                  Command line options override duplicates from the file");
    +      System.out.println("                                  Options: shutdown.user, shutdown.password,");
    +      System.out.println("                                  shutdown.server, shutdown.serverName, shutdown.adapter");
           System.out.println();
           System.out.println("operations:");
    -      System.out.println("    -S, --shutdown            Shutdown the server");
    -      System.out.println("    -e, --exit=         Force the VM to exit with a status code");
    -      System.out.println("    -H, --halt=         Force the VM to halt with a status code");
    +      System.out.println("    -S, --shutdown                Shutdown the server");
    +      System.out.println("    -e, --exit=             Force the VM to exit with a status code");
    +      System.out.println("    -H, --halt=             Force the VM to halt with a status code");
           System.out.println();
        }
     
    @@ -93,7 +100,7 @@
              System.exit(0);
           }
           
    -      String sopts = "-:hD:s:n:a:u:p:Se:H:";
    +      String sopts = "-:hD:s:n:a:u:p:P:Se:H:";
           LongOpt[] lopts =
           {
              new LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h'),
    @@ -105,6 +112,7 @@
              new LongOpt("halt", LongOpt.REQUIRED_ARGUMENT, null, 'H'),
              new LongOpt("user", LongOpt.REQUIRED_ARGUMENT, null, 'u'),
              new LongOpt("password", LongOpt.REQUIRED_ARGUMENT, null, 'p'),
    +         new LongOpt("properties", LongOpt.REQUIRED_ARGUMENT, null, 'P'),
           };
     
           Getopt getopt = new Getopt(PROGRAM_NAME, args, sopts, lopts);
    @@ -113,12 +121,15 @@
     
           String serverURL = null;
           String adapterName = "jmx/rmi/RMIAdaptor";
    +      String clAdapterName = null;
           String username = null;
           String password = null;
           ObjectName serverJMXName = ObjectNameFactory.create("jboss.system:type=JVMShutdown");
    +      String clServerJMXName = null;
           boolean exit = false;
           boolean halt = false;
           int exitcode = -1;
    +      String propertyFile = null;
     
           while ((code = getopt.getopt()) != -1)
           {
    @@ -163,22 +174,23 @@
                    serverURL = getopt.getOptarg();
                    break;
                 case 'n':
    -               serverJMXName = new ObjectName(getopt.getOptarg());
    +               clServerJMXName = getopt.getOptarg();
                    break;
                 case 'S':
                    // nothing...
                    break;
                 case 'a':
    -               adapterName = getopt.getOptarg();
    +               clAdapterName = getopt.getOptarg();
                    break;
                 case 'u':
                    username = getopt.getOptarg();
    -               SecurityAssociation.setPrincipal(new SimplePrincipal(username));
                    break;
                 case 'p':
                    password = getopt.getOptarg();
    -               SecurityAssociation.setCredential(password);
                    break;
    +            case 'P':
    + 	 	 	   propertyFile = getopt.getOptarg();
    + 	 	 	   break;
                 case 'e':
                    exitcode = Integer.parseInt(getopt.getOptarg());
                    exit = true;
    @@ -189,7 +201,35 @@
                    break;
              }
           }
    -      
    +
    +      // cmd line options override the property file entries
    +      if( propertyFile != null )
    +      {
    +         Properties props = loadPropertyFile(propertyFile);
    +         if( props != null )
    +         {
    +            if( username == null && props.containsKey("shutdown.user") )
    +               username = props.getProperty("shutdown.user");
    +            if( password == null && props.containsKey("shutdown.password") )
    +               password = props.getProperty("shutdown.password");
    +            if( serverURL == null && props.containsKey("shutdown.server") )
    +               serverURL = props.getProperty("shutdown.server");
    +            if( clServerJMXName != null )
    +               serverJMXName = new ObjectName(clServerJMXName);
    +            else if( props.containsKey("shutdown.serverName") )
    +               serverJMXName = new ObjectName(props.getProperty("shutdown.serverName"));
    +            if( clAdapterName != null )
    +               adapterName = clAdapterName;
    +            else if( props.containsKey("shutdown.adapter") )
    +               adapterName = props.getProperty("shutdown.adapter");
    +         }
    +      }
    +
    +      if( username != null )
    +         SecurityAssociation.setPrincipal(new SimplePrincipal(username));
    +      if( password != null )
    +         SecurityAssociation.setCredential(password);
    +
           InitialContext ctx;
     
           // If there was a username specified, but no password prompt for it
    @@ -251,6 +291,27 @@
           System.out.println("Server shutdown may take a while - check logfiles for completion");
        }
     
    +   /*
    +    * Options on the command line take precedence.
    +    */
    +   private static Properties loadPropertyFile(final String propertyFile) throws IOException
    +   {
    +      Properties fileProps = new Properties();
    +      FileInputStream in = null;
    +      try
    +      {
    +         in = new FileInputStream(propertyFile);
    +         fileProps.load(in);
    +         return fileProps;
    +      }
    +      finally
    +      {
    +         if( in != null )
    +            try { in.close(); } catch (Exception e) {}
    +      }
    +   }
    +
    +
        private static class ServerProxyHandler implements InvocationHandler
        {
           ObjectName serverName;
    
    Modified: branches/JBPAPP_5/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java
    ===================================================================
    --- branches/JBPAPP_5/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java	2013-12-19 06:42:08 UTC (rev 114610)
    +++ branches/JBPAPP_5/testsuite/src/main/org/jboss/test/scripts/test/ShutdownTestCase.java	2013-12-19 07:19:42 UTC (rev 114611)
    @@ -23,7 +23,9 @@
     package org.jboss.test.scripts.test;
     
     import java.io.File ;
    +import java.io.FileWriter;
     import java.io.IOException ;
    +import java.util.Properties;
     import javax.management.ObjectName ;
     import javax.management.MalformedObjectNameException ;
     
    @@ -163,6 +165,63 @@
     	   }
        }  
     
    +   /**
    +    * Tests shutdown command with -S option
    +    *
    +    * @throws Exception
    +    */
    +   public void testPropertiesNonLoopbackShutdown() throws Exception
    +   {
    +	   // build the shell command to execute
    +	   // supply the command name prefix, any options as a string, and any args
    +	   String[] shellCommand = getShellCommand("run","-c " + getServerConfig() + " -b " + getServerHost(), null) ;
    +	   String[] envp = null ;
    +	   File workingDir = new File(getBinDir()) ;
    +
    +	   // execute command
    +	   getAsyncShellScriptExecutor().startShellCommand(shellCommand, envp, workingDir) ;
    +
    +	   // waitForServerStart kills the process and throws an exception if server does not start
    +	   try {
    +		   waitForServerStart(getAsyncShellScriptExecutor(), getServerHost(), START_TIMEOUT) ;
    +		   System.out.println("Server started successfully") ;
    +	   }
    +	   catch(IOException e) {
    +		   System.out.println("IOException: message = " + e.getMessage()) ;
    +		   writeServerLogsToTestCase() ;
    +		   fail("Server failed to start") ;
    +	   }
    +
    +	   // check assertions on the console output generated by the run command
    +	   getAsyncShellScriptExecutor().assertOnOutputStream("Started in","Started string not found in command output") ;
    +
    +	   File propFile = new File("shutdown.properties");
    +
    +	   // set properties
    +	   Properties props = new Properties();
    +	   props.setProperty("shutdown.server", getJndiURL());
    +	   props.store(new FileWriter(propFile), null);
    +
    +	   // shutdown the server using the shutdown command
    +	   String[] shutdownCommand = getShellCommand("shutdown", "-P " + propFile.getCanonicalPath() + " -S", null) ;
    +	   getShellScriptExecutor().runShellCommand(shutdownCommand, envp, workingDir) ;
    +
    +	   System.out.println("shutdown output = " + getShellScriptExecutor().getOutput()) ;
    +	   System.out.println("shutdown error = " + getShellScriptExecutor().getError()) ;
    +
    +	   // waitForServerStop kills the process and throws an exception if server does not stop
    +	   try {
    +		   waitForServerStop(getAsyncShellScriptExecutor(), STOP_TIMEOUT) ;
    +		   System.out.println("Server stopped successfully") ;
    +		   getAsyncShellScriptExecutor().assertOnOutputStream(SERVER_STOPPED_MESSAGE,"Server shutdown message did not appear in logs") ;
    +	   }
    +	   catch(IOException e) {
    +		   System.out.println("IOException: message = " + e.getMessage()) ;
    +		   writeServerLogsToTestCase() ;
    +		   fail("Server failed to stop") ;
    +	   }
    +   }
    +
        /* for the two following tests, see JBPAPP-3035 */
        
        /**
    
    
    From jboss-cvs-commits at lists.jboss.org  Thu Dec 19 06:41:15 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Thu, 19 Dec 2013 06:41:15 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114612 -
    	branches/JBPAPP_5/component-matrix.
    Message-ID: <201312191141.rBJBfFfS016115@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: wolfc
    Date: 2013-12-19 06:41:15 -0500 (Thu, 19 Dec 2013)
    New Revision: 114612
    
    Modified:
       branches/JBPAPP_5/component-matrix/pom.xml
    Log:
    JBPAPP-10360: revert upgrade of jboss-server-manager to 1.0.2.GA because of regression
    
    
    Modified: branches/JBPAPP_5/component-matrix/pom.xml
    ===================================================================
    --- branches/JBPAPP_5/component-matrix/pom.xml	2013-12-19 07:19:42 UTC (rev 114611)
    +++ branches/JBPAPP_5/component-matrix/pom.xml	2013-12-19 11:41:15 UTC (rev 114612)
    @@ -90,7 +90,7 @@
         2.0.5.SP3-1
         2.1.4.GA
         1.0.6.FINAL
    -    1.0.2.GA_CP02
    +    1.0.2.GA
         1.0.0.GA
         2.2.3.GA
         1.0.1.GA
    
    
    From jboss-cvs-commits at lists.jboss.org  Thu Dec 19 07:38:58 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Thu, 19 Dec 2013 07:38:58 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114613 - in
    	projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src:
    	main/java/org/jboss/security/auth/spi and 5 other directories.
    Message-ID: <201312191238.rBJCcwUJ024392@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: pskopek
    Date: 2013-12-19 07:38:58 -0500 (Thu, 19 Dec 2013)
    New Revision: 114613
    
    Modified:
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/Util.java
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/auth/spi/LdapExtLoginModule.java
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/mapping/providers/attribute/LdapAttributeMappingProvider.java
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/plugins/vault/PicketBoxSecurityVault.java
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/helpers/SecurityUtilUnitTestCase.java
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/java/org/jboss/test/security/vault/SecurityVaultUnitTestCase.java
       projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh
    Log:
    [SECURITY-774] Enable white-space in parameters for external password command
    
    Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/Util.java
    ===================================================================
    --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/Util.java	2013-12-19 11:41:15 UTC (rev 114612)
    +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/main/java/org/jboss/security/Util.java	2013-12-19 12:38:58 UTC (rev 114613)
    @@ -37,7 +37,7 @@
     
     /**
      * Util.
    - * 
    + *
      * @author Scott.Stark at jboss.org
      * @author Adrian Brock
      * @version $Revision: 1.1 $
    @@ -46,7 +46,7 @@
     {
        private static Logger log = Logger.getLogger(Util.class);
        private static PasswordCache externalPasswordCache;
    -   
    +
        /**
         * Execute a password load command to obtain the char[] contents of a
         * password.
    @@ -58,7 +58,11 @@
         * platform command. The first line of the command output is used as the
         * password.
         * EXTC variant will cache the passwords for expiration_in_millis milliseconds. 
    -    * Default cache expiration is 0 = infinity. 
    +    * Default cache expiration is 0 = infinity.
    +    * '{CMD}...' or '{CMDC}...' for a general command to execute. The general
    +    * command is a string delimited by ',' where the first part is the actual
    +    * command and further parts represents its parameters. The comma can be
    +    * backslashed in order to keep it as a part of the parameter.
         * '{CLASS}classname[:ctorargs]' where the '[:ctorargs]' is an optional
         * string delimited by the ':' from the classname that will be passed to the
         * classname ctor. The ctorargs itself is a comma delimited list of strings.
    @@ -90,7 +94,7 @@
           if( password == null )
           {
              // Load the password
    -         if (passwordCmdType.startsWith("EXTC")) {
    +         if (passwordCmdType.startsWith("EXTC") || passwordCmdType.startsWith("CMDC")) {
                 long timeOut = 0;
                 if (passwordCmdType.indexOf(':') > -1) {
                    try {
    @@ -108,14 +112,14 @@
                 if (externalPasswordCache.contains(passwordCmd, timeOut)) {
                    password = externalPasswordCache.getPassword(passwordCmd);
                 } else {
    -               password = execPasswordCmd(passwordCmd);
    +               password = switchCommandExecution(passwordCmdType, passwordCmd);
                    if (password != null) {
                       externalPasswordCache.storePassword(passwordCmd, password);
                    }
                 }
    -         } else if (passwordCmdType.startsWith("EXT")) {
    -            // non-cached EXT variant
    -            password = execPasswordCmd(passwordCmd);
    +         } else if (passwordCmdType.startsWith("EXT") || passwordCmdType.startsWith("CMD")) {
    +            // non-cached variant
    +            password = switchCommandExecution(passwordCmdType, passwordCmd);
              } else if (passwordCmdType.equals("CLASS")) {
                 password = invokePasswordClass(passwordCmd);
              } else {
    @@ -125,6 +129,17 @@
           return password;
        }
     
    +   private static char[] switchCommandExecution(String passwordCmdType, String passwordCmd)
    +         throws Exception
    +   {
    +      if (passwordCmdType.startsWith("EXT"))
    +         return execPasswordCmd(passwordCmd);
    +      else if (passwordCmdType.startsWith("CMD"))
    +         return execPBBasedPasswordCommand(passwordCmd);
    +      else
    +         throw new IllegalArgumentException("Invalid password command type: " + passwordCmdType);
    +   }
    +
        /**
         * Execute a Runtime command to load a password.
         * @param passwordCmd
    @@ -132,7 +147,7 @@
         * @throws Exception
         */
        private static char[] execPasswordCmd(String passwordCmd)
    -      throws Exception
    +         throws Exception
        {
           log.debug("Executing command: "+passwordCmd);
           String password = execCmd(passwordCmd);
    @@ -140,7 +155,7 @@
        }
     
        private static char[] invokePasswordClass(String passwordCmd)
    -      throws Exception
    +         throws Exception
        {
           char[] password = null;
     
    @@ -219,24 +234,47 @@
           return line;
        }
     
    -   
    +   /**
    +    * Execute a Runtime command to load a password.
    +    * It uses ProcessBuilder to execute the command.
    +    * @param passwordCmd
    +    * @return the loaded password
    +    * @throws Exception
    +    */
    +   private static char[] execPBBasedPasswordCommand(String passwordCmd) throws Exception
    +   {
    +      log.debug("Executing command: "+passwordCmd);
    +      SecurityManager sm = System.getSecurityManager();
    +      String password;
    +      if( sm != null )
    +      {
    +         password = RuntimeActions.PB_BASED_PRIVILEGED.execCmd(passwordCmd);
    +      }
    +      else
    +      {
    +         password = RuntimeActions.PB_BASED_NON_PRIVILEGED.execCmd(passwordCmd);
    +      }
    +      return password.toCharArray();
    +   }
    +
    +
        interface RuntimeActions
        {
           RuntimeActions PRIVILEGED = new RuntimeActions()
           {
              public String execCmd(final String cmd)
    -            throws Exception
    +               throws Exception
              {
                 try
                 {
                    String line = AccessController.doPrivileged(
    -               new PrivilegedExceptionAction()
    -                  {
    -                     public String run() throws Exception
    +                     new PrivilegedExceptionAction()
                          {
    -                        return NON_PRIVILEGED.execCmd(cmd);
    +                        public String run() throws Exception
    +                        {
    +                           return NON_PRIVILEGED.execCmd(cmd);
    +                        }
                          }
    -                  }
                    );
                    return line;
                 }
    @@ -249,7 +287,7 @@
           RuntimeActions NON_PRIVILEGED = new RuntimeActions()
           {
              public String execCmd(final String cmd)
    -            throws Exception
    +               throws Exception
              {
                 Runtime rt = Runtime.getRuntime();
                 Process p = rt.exec(cmd);
    @@ -275,6 +313,93 @@
                 return line;
              }
           };
    +      RuntimeActions PB_BASED_PRIVILEGED = new RuntimeActions()
    +      {
    +         public String execCmd(final String command)
    +               throws Exception
    +         {
    +            try
    +            {
    +               String password = AccessController.doPrivileged(
    +                     new PrivilegedExceptionAction()
    +                     {
    +                        public String run() throws Exception
    +                        {
    +                           return PB_BASED_NON_PRIVILEGED.execCmd(command);
    +                        }
    +                     }
    +               );
    +               return password;
    +            }
    +            catch(PrivilegedActionException e)
    +            {
    +               throw e.getException();
    +            }
    +         }
    +      };
    +      RuntimeActions PB_BASED_NON_PRIVILEGED = new RuntimeActions()
    +      {
    +         public String execCmd(final String command) throws Exception
    +         {
    +            final String[] parsedCommand = parseCommand(command);
    +            final ProcessBuilder builder = new ProcessBuilder(parsedCommand);
    +            final Process process = builder.start();
    +            final String line;
    +            BufferedReader reader = null;
    +            try
    +            {
    +               reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
    +               line = reader.readLine();
    +            }
    +            finally
    +            {
    +               if (reader != null)
    +                  reader.close();
    +            }
    +
    +            int exitCode = process.waitFor();
    +            log.debug("Command exited with: "+exitCode);
    +            return line;
    +         }
    +
    +         protected String[] parseCommand(String command)
    +         {
    +            // comma can be backslashed
    +            final String[] parsedCommand = command.split("(? options = getVaultOptionsMap(
                 "target/vaults/vault2/vault.jks",
                 "target/vaults/vault2/vault_data",
    -            "vault", "12438567", 50, "{EXT}/bin/sh " + absolutePathToAskPass + " Enter passphrase for askpass test");
    +            "vault", "12438567", 50, "{CMD}/bin/sh," + absolutePathToAskPass + ",Enter passphrase for askpass test");
     
           String vaultBlock = "aBlock";
           String attributeName = "anAttribute";
    @@ -437,8 +438,7 @@
        
        private String getMaskedPassword(String pwd, String salt, int iterationCount) throws Exception
        {
    -      if (pwd.startsWith(PicketBoxSecurityVault.PASS_EXT_PREFIX)
    -            || pwd.startsWith(PicketBoxSecurityVault.PASS_CLASS_PREFIX))
    +      if (Util.isPasswordCommand(pwd))
              return pwd;
     
           String algo = "PBEwithMD5andDES";
    
    Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh
    ===================================================================
    --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh	2013-12-19 11:41:15 UTC (rev 114612)
    +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/src/test/resources/bin/askpass.sh	2013-12-19 12:38:58 UTC (rev 114613)
    @@ -1,2 +1,7 @@
     #!/bin/sh
    -echo vault22
    \ No newline at end of file
    +
    +if [ "$1" = "Enter passphrase for askpass test" ]; then
    +    echo vault22
    +else
    +    echo $1
    +fi
    
    
    From jboss-cvs-commits at lists.jboss.org  Thu Dec 19 10:22:15 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Thu, 19 Dec 2013 10:22:15 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114614 -
    	projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager.
    Message-ID: <201312191522.rBJFMF1m016313@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: istudens at redhat.com
    Date: 2013-12-19 10:22:15 -0500 (Thu, 19 Dec 2013)
    New Revision: 114614
    
    Modified:
       projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java
       projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/ServerController.java
    Log:
    JBPAPP-10661 fixing the regression caused by an empty jvmArg
    
    Modified: projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java
    ===================================================================
    --- projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java	2013-12-19 12:38:58 UTC (rev 114613)
    +++ projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java	2013-12-19 15:22:15 UTC (rev 114614)
    @@ -239,7 +239,8 @@
         */
        public void addArg(Argument arg)
        {
    -      arguments.add(arg);
    +      if (arg.getValue() != null && arg.getValue().isEmpty() == false)
    +         arguments.add(arg);
        }
     
        /**
    @@ -280,7 +281,8 @@
         */
        public void addJvmArg(Argument arg)
        {
    -      jvmArguments.add(arg);
    +      if (arg.getValue() != null && arg.getValue().isEmpty() == false)
    +         jvmArguments.add(arg);
        }
     
        /**
    
    Modified: projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/ServerController.java
    ===================================================================
    --- projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/ServerController.java	2013-12-19 12:38:58 UTC (rev 114613)
    +++ projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/ServerController.java	2013-12-19 15:22:15 UTC (rev 114614)
    @@ -84,7 +84,7 @@
     
           final ProcessBuilder startCommand = getStartCommand(server, manager);
     
    -      System.out.println("Starting server \"" + server.getName() + "\", with command (start timeout is " + manager.getStartupTimeout() + " seconds ): \n" + Arrays.toString(startCommand.command().toArray()));
    +      System.out.println("Starting server \"" + server.getName() + "\", with command (start timeout is " + manager.getStartupTimeout() + " seconds ): \n" + commandToString(startCommand.command()));
     
           final File binDir = new File(manager.getJBossHome(), "/bin");
           startCommand.directory(binDir);
    @@ -134,6 +134,17 @@
           System.out.println("Server started.") ;
        }
     
    +   private static String commandToString(List command)
    +   {
    +      final StringBuilder commandLine = new StringBuilder();
    +      String delim = "";
    +      for (String part : command) {
    +         commandLine.append(delim).append(part);
    +         delim = " ";
    +      }
    +      return commandLine.toString();
    +   }
    +
        /** 
         * Delete & create log files
         * @param logFile
    @@ -235,7 +246,7 @@
        private static boolean stopServerCli(Server server, ServerManager manager, Writer log) throws IOException, InterruptedException
        {
           ProcessBuilder shutdownCmd = getStopCommand(server, manager);
    -      System.out.println("Shutting down server: " + Arrays.toString(shutdownCmd.command().toArray()));
    +      System.out.println("Shutting down server: " + commandToString(shutdownCmd.command()));
     
           shutdownCmd.redirectErrorStream(true);
           Process proc = shutdownCmd.start();
    
    
    From jboss-cvs-commits at lists.jboss.org  Thu Dec 19 13:15:56 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Thu, 19 Dec 2013 13:15:56 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114615 -
    	branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent.
    Message-ID: <201312191815.rBJIFuwB008939@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: dereed
    Date: 2013-12-19 13:15:56 -0500 (Thu, 19 Dec 2013)
    New Revision: 114615
    
    Modified:
       branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/AbstractPersistentManager.java
       branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/RDBMSStoreBase.java
    Log:
    [JBPAPP-10206] Workaround for session persistence to an Oracle DB for the root context
    
    
    Modified: branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/AbstractPersistentManager.java
    ===================================================================
    --- branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/AbstractPersistentManager.java	2013-12-19 15:22:15 UTC (rev 114614)
    +++ branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/AbstractPersistentManager.java	2013-12-19 18:15:56 UTC (rev 114615)
    @@ -43,6 +43,11 @@
        private final P store;
     
        /**
    +    * Substitute app name for root context with "/" to work around Oracle DB bug (JBPAPP-10206)
    +    */
    +   private Boolean substituteRootContext = null;
    +
    +   /**
         * The connection username to use when trying to connect to the database.
         */
        private String connectionName = null;
    @@ -152,6 +157,19 @@
     
        }
     
    +
    +   public Boolean getSubstituteRootContext()
    +   {
    +      return substituteRootContext;
    +   }
    +
    +
    +   public void setSubstituteRootContext(Boolean substituteRootContext)
    +   {
    +      this.substituteRootContext = substituteRootContext;
    +   }
    +
    +
        public String getConnectionName()
        {
           return connectionName;
    @@ -400,6 +418,10 @@
           store.setName(this.getContextName());
           store.setMaxUnreplicatedInterval(getMaxUnreplicatedInterval());
           
    +      if (getSubstituteRootContext() != null)
    +      {
    +         store.setSubstituteRootContext(getSubstituteRootContext().booleanValue());
    +      }
           if (getConnectionName() != null)
           {
              store.setConnectionName(getConnectionName());
    
    Modified: branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/RDBMSStoreBase.java
    ===================================================================
    --- branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/RDBMSStoreBase.java	2013-12-19 15:22:15 UTC (rev 114614)
    +++ branches/JBPAPP_5/tomcat/src/main/org/jboss/web/tomcat/service/session/persistent/RDBMSStoreBase.java	2013-12-19 18:15:56 UTC (rev 114615)
    @@ -76,6 +76,11 @@
         * Context name associated with this Store
         */
        private String name = null;
    +
    +   /**
    +    * Substitute app name for root context with "/" to work around Oracle DB bug (JBPAPP-10206)
    +    */
    +   private boolean substituteRootContext = false;
        
        /**
         * How often to execute the processExpires cleanup
    @@ -232,6 +237,10 @@
           {
              throw new IllegalStateException("Must configure a name for PersistentStore");
           }
    +      if (substituteRootContext && "".equals(name))
    +      {
    +         return "/"; // work around Oracle bug with empty strings
    +      }
           return name;
        }
        
    @@ -241,6 +250,25 @@
        }
     
        /**
    +    * Return whether to use "/" as the app name in the DB for applications in the root context
    +    *
    +    */
    +   public boolean getSubstituteRootContext()
    +   {
    +      return (this.substituteRootContext);
    +   }
    +
    +   /**
    +    * Set whether to use "/" as the app name in the DB for applications in the root context
    +    *
    +    * @param substituteRootContext whether to do the substitution
    +    */
    +   public void setSubstituteRootContext(boolean substituteRootContext)
    +   {
    +      this.substituteRootContext = substituteRootContext;
    +   }
    +
    +   /**
         * Return the username to use to connect to the database.
         *
         */
    
    
    From jboss-cvs-commits at lists.jboss.org  Thu Dec 19 13:31:03 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Thu, 19 Dec 2013 13:31:03 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114616 -
    	branches/JBPAPP_5/cluster/src/etc.
    Message-ID: <201312191831.rBJIV3nC009905@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: dereed
    Date: 2013-12-19 13:31:03 -0500 (Thu, 19 Dec 2013)
    New Revision: 114616
    
    Modified:
       branches/JBPAPP_5/cluster/src/etc/ha-legacy-jboss-beans.xml
       branches/JBPAPP_5/cluster/src/etc/hapartition-jboss-beans.xml
    Log:
    [JBPAPP-10937] Fix state transfer for EJB2 SFSB with deployment dependencies
    
    
    Modified: branches/JBPAPP_5/cluster/src/etc/ha-legacy-jboss-beans.xml
    ===================================================================
    --- branches/JBPAPP_5/cluster/src/etc/ha-legacy-jboss-beans.xml	2013-12-19 18:15:56 UTC (rev 114615)
    +++ branches/JBPAPP_5/cluster/src/etc/ha-legacy-jboss-beans.xml	2013-12-19 18:31:03 UTC (rev 114616)
    @@ -94,8 +94,10 @@
           
           @org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=HASessionState", exposedInterface=org.jboss.ha.hasessionstate.server.HASessionStateServiceMBean.class, registerDirectly=true)
           
    +      HAPartition
    +
           
    -      
    +      
           
           
           /HASessionState/Default
    @@ -121,4 +123,4 @@
           
        
     
    -
    \ No newline at end of file
    +
    
    Modified: branches/JBPAPP_5/cluster/src/etc/hapartition-jboss-beans.xml
    ===================================================================
    --- branches/JBPAPP_5/cluster/src/etc/hapartition-jboss-beans.xml	2013-12-19 18:15:56 UTC (rev 114615)
    +++ branches/JBPAPP_5/cluster/src/etc/hapartition-jboss-beans.xml	2013-12-19 18:31:03 UTC (rev 114616)
    @@ -24,6 +24,7 @@
        		 class="org.jboss.ha.framework.server.ClusterPartition">     
     
           jboss:service=Naming
    +      HASessionStateService
         	 
           @org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=HAPartition,partition=${jboss.partition.name:DefaultPartition}", exposedInterface=org.jboss.ha.framework.server.ClusterPartitionMBean.class, registerDirectly=true)
           
    
    
    From jboss-cvs-commits at lists.jboss.org  Fri Dec 20 00:34:14 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Fri, 20 Dec 2013 00:34:14 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114617 -
    	branches/JBPAPP_5/component-matrix.
    Message-ID: <201312200534.rBK5YEqZ005056@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: huwang
    Date: 2013-12-20 00:34:12 -0500 (Fri, 20 Dec 2013)
    New Revision: 114617
    
    Modified:
       branches/JBPAPP_5/component-matrix/pom.xml
    Log:
    JBAPP-10466 Upgrade jboss-ejb3-bom-eap5 to 1.0.5
    
    Modified: branches/JBPAPP_5/component-matrix/pom.xml
    ===================================================================
    --- branches/JBPAPP_5/component-matrix/pom.xml	2013-12-19 18:31:03 UTC (rev 114616)
    +++ branches/JBPAPP_5/component-matrix/pom.xml	2013-12-20 05:34:12 UTC (rev 114617)
    @@ -72,7 +72,7 @@
         2.2.21.GA
         1.0.1.Final
         2.0.10.GA
    -    1.0.4
    +    1.0.5
         5.1.0.SP1
         2.0.1.GA
         1.3.4.SP6    
    
    
    From jboss-cvs-commits at lists.jboss.org  Fri Dec 20 02:25:31 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Fri, 20 Dec 2013 02:25:31 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114618 -
    	projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager.
    Message-ID: <201312200725.rBK7PVX0020957@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: istudens at redhat.com
    Date: 2013-12-20 02:25:30 -0500 (Fri, 20 Dec 2013)
    New Revision: 114618
    
    Modified:
       projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java
    Log:
    JBPAPP-10661 moving the condition to a better place, it was always null there
    
    Modified: projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java
    ===================================================================
    --- projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java	2013-12-20 05:34:12 UTC (rev 114617)
    +++ projects/server-manager/branches/1.0.2.GA_CP/src/main/java/org/jboss/jbossas/servermanager/Server.java	2013-12-20 07:25:30 UTC (rev 114618)
    @@ -239,8 +239,7 @@
         */
        public void addArg(Argument arg)
        {
    -      if (arg.getValue() != null && arg.getValue().isEmpty() == false)
    -         arguments.add(arg);
    +      arguments.add(arg);
        }
     
        /**
    @@ -253,7 +252,8 @@
           final List args = new ArrayList();
           for (Argument argument : arguments)
           {
    -         args.add(argument.getValue());
    +         if (argument.getValue() != null && argument.getValue().isEmpty() == false)
    +            args.add(argument.getValue());
           }
           return args;
        }
    @@ -281,8 +281,7 @@
         */
        public void addJvmArg(Argument arg)
        {
    -      if (arg.getValue() != null && arg.getValue().isEmpty() == false)
    -         jvmArguments.add(arg);
    +      jvmArguments.add(arg);
        }
     
        /**
    @@ -295,7 +294,8 @@
           final List args = new ArrayList();
           for (Argument argument : jvmArguments)
           {
    -         args.add(argument.getValue());
    +         if (argument.getValue() != null && argument.getValue().isEmpty() == false)
    +            args.add(argument.getValue());
           }
           return args;
        }
    
    
    From jboss-cvs-commits at lists.jboss.org  Fri Dec 20 02:26:47 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Fri, 20 Dec 2013 02:26:47 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114619 -
    	projects/server-manager/branches/1.0.2.GA_CP.
    Message-ID: <201312200726.rBK7Qlwa020979@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: istudens at redhat.com
    Date: 2013-12-20 02:26:47 -0500 (Fri, 20 Dec 2013)
    New Revision: 114619
    
    Modified:
       projects/server-manager/branches/1.0.2.GA_CP/pom.xml
    Log:
    preparing for 1.0.2.GA_CP03 tag
    
    Modified: projects/server-manager/branches/1.0.2.GA_CP/pom.xml
    ===================================================================
    --- projects/server-manager/branches/1.0.2.GA_CP/pom.xml	2013-12-20 07:25:30 UTC (rev 114618)
    +++ projects/server-manager/branches/1.0.2.GA_CP/pom.xml	2013-12-20 07:26:47 UTC (rev 114619)
    @@ -13,15 +13,15 @@
       
       org.jboss.jbossas
       jboss-server-manager
    -  1.0.2.GA_CP-SNAPSHOT
    +  1.0.2.GA_CP03
       JBossAS Server Manager
       
     
       
       
    -    scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/server-manager/branches/1.0.2.GA_CP
    -    scm:svn:https://svn.jboss.org/repos/jbossas/projects/server-manager/branches/1.0.2.GA_CP
    -    http://anonsvn.jboss.org/repos/maven/jbossas/projects/server-manager/branches/1.0.2.GA_CP
    +    scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/server-manager/tags/1.0.2.GA_CP03
    +    scm:svn:https://svn.jboss.org/repos/jbossas/projects/server-manager/tags/1.0.2.GA_CP03
    +    http://anonsvn.jboss.org/repos/maven/jbossas/projects/server-manager/tags/1.0.2.GA_CP03
       
     
     
    
    
    From jboss-cvs-commits at lists.jboss.org  Fri Dec 20 02:28:08 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Fri, 20 Dec 2013 02:28:08 -0500
    Subject: [jboss-cvs] JBossAS SVN:  r114620 - projects/server-manager/tags.
    Message-ID: <201312200728.rBK7S8q7021003@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: istudens at redhat.com
    Date: 2013-12-20 02:28:08 -0500 (Fri, 20 Dec 2013)
    New Revision: 114620
    
    Added:
       projects/server-manager/tags/1.0.2.GA_CP03/
    Log:
    tagging 1.0.2.GA_CP03
    
    
    From jboss-cvs-commits at lists.jboss.org  Fri Dec 20 03:10:43 2013
    From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org)
    Date: Fri, 20 Dec 2013 03:10:43 -0500
    Subject: [jboss-cvs] JBossAS SVN: r114621 -
    	branches/JBPAPP_5/tomcat/src/webapps/ROOT.war.
    Message-ID: <201312200810.rBK8AhFO029117@svn01.web.mwc.hst.phx2.redhat.com>
    
    Author: ehugonnet
    Date: 2013-12-20 03:10:43 -0500 (Fri, 20 Dec 2013)
    New Revision: 114621
    
    Modified:
       branches/JBPAPP_5/tomcat/src/webapps/ROOT.war/index.html
    Log:
    JBPAPP-10412: Welcome page says Tomcat status instead of JBossWeb status.
    
    
    Modified: branches/JBPAPP_5/tomcat/src/webapps/ROOT.war/index.html
    ===================================================================
    --- branches/JBPAPP_5/tomcat/src/webapps/ROOT.war/index.html	2013-12-20 07:28:08 UTC (rev 114620)
    +++ branches/JBPAPP_5/tomcat/src/webapps/ROOT.war/index.html	2013-12-20 08:10:43 UTC (rev 114621)
    @@ -21,7 +21,7 @@
           
  • JMX Console
  • JBoss Web Console
  • JBoss WS Console
  • -
  • Tomcat status +
  • JBossWeb status (full) (XML)
  • From jboss-cvs-commits at lists.jboss.org Fri Dec 20 03:13:58 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 03:13:58 -0500 Subject: [jboss-cvs] JBossAS SVN: r114622 - in branches/JBPAPP_5: testsuite and 1 other directories. Message-ID: <201312200813.rBK8Dw59029215@svn01.web.mwc.hst.phx2.redhat.com> Author: ehugonnet Date: 2013-12-20 03:13:58 -0500 (Fri, 20 Dec 2013) New Revision: 114622 Modified: branches/JBPAPP_5/build/build.xml branches/JBPAPP_5/testsuite/build.xml branches/JBPAPP_5/tools/etc/buildmagic/version-info.xml Log: JBPAPP-10720: Merge build/build.properties and tools/etc/buildmagic/version-info.xml version-info.xml is using build.properties. The builds make a reference to the dir in which the build.properties is. Modified: branches/JBPAPP_5/build/build.xml =================================================================== --- branches/JBPAPP_5/build/build.xml 2013-12-20 08:10:43 UTC (rev 114621) +++ branches/JBPAPP_5/build/build.xml 2013-12-20 08:13:58 UTC (rev 114622) @@ -15,7 +15,7 @@ - + Modified: branches/JBPAPP_5/testsuite/build.xml =================================================================== --- branches/JBPAPP_5/testsuite/build.xml 2013-12-20 08:10:43 UTC (rev 114621) +++ branches/JBPAPP_5/testsuite/build.xml 2013-12-20 08:13:58 UTC (rev 114622) @@ -15,6 +15,8 @@ + + @@ -27,7 +29,6 @@ - @@ -1798,20 +1799,32 @@ - - - - + + + + + + + + + + + + - - - + @@ -1833,7 +1846,25 @@ - + + + + + + + + + + + + + + + + @@ -14,11 +15,11 @@ - + @@ -36,6 +37,7 @@ + configuration = ${configuration.directory}/build.properties version.major=${version.major} version.minor=${version.minor} version.revision=${version.revision} From jboss-cvs-commits at lists.jboss.org Fri Dec 20 04:05:05 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 04:05:05 -0500 Subject: [jboss-cvs] JBossAS SVN: r114623 - projects/ejb3/trunk/testsuite/src/test/resources/test/consumer/META-INF. Message-ID: <201312200905.rBK955jZ005295@svn01.web.mwc.hst.phx2.redhat.com> Author: soul2zimate Date: 2013-12-20 04:05:04 -0500 (Fri, 20 Dec 2013) New Revision: 114623 Modified: projects/ejb3/trunk/testsuite/src/test/resources/test/consumer/META-INF/jboss.xml Log: remove wrong introduced in JBPAPP-10659 Modified: projects/ejb3/trunk/testsuite/src/test/resources/test/consumer/META-INF/jboss.xml =================================================================== --- projects/ejb3/trunk/testsuite/src/test/resources/test/consumer/META-INF/jboss.xml 2013-12-20 08:13:58 UTC (rev 114622) +++ projects/ejb3/trunk/testsuite/src/test/resources/test/consumer/META-INF/jboss.xml 2013-12-20 09:05:04 UTC (rev 114623) @@ -11,12 +11,6 @@ org.jboss.ejb3.test.consumer.DeploymentDescriptorQueueTestConsumer queue/consumertest javax.jms.Queue - - - maxSession - 1 - - org.jboss.ejb3.test.consumer.DeploymentDescriptorQueueTestRemote From jboss-cvs-commits at lists.jboss.org Fri Dec 20 05:53:33 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 05:53:33 -0500 Subject: [jboss-cvs] JBossAS SVN: r114624 - in branches/JBPAPP_5: testsuite and 1 other directories. Message-ID: <201312201053.rBKArXGQ015218@svn01.web.mwc.hst.phx2.redhat.com> Author: wolfc Date: 2013-12-20 05:53:33 -0500 (Fri, 20 Dec 2013) New Revision: 114624 Modified: branches/JBPAPP_5/build/build.xml branches/JBPAPP_5/testsuite/build.xml branches/JBPAPP_5/tools/etc/buildmagic/version-info.xml Log: JBPAPP-10720: reverting 114622 (bad commit) Modified: branches/JBPAPP_5/build/build.xml =================================================================== --- branches/JBPAPP_5/build/build.xml 2013-12-20 09:05:04 UTC (rev 114623) +++ branches/JBPAPP_5/build/build.xml 2013-12-20 10:53:33 UTC (rev 114624) @@ -15,7 +15,7 @@ - + Modified: branches/JBPAPP_5/testsuite/build.xml =================================================================== --- branches/JBPAPP_5/testsuite/build.xml 2013-12-20 09:05:04 UTC (rev 114623) +++ branches/JBPAPP_5/testsuite/build.xml 2013-12-20 10:53:33 UTC (rev 114624) @@ -15,8 +15,6 @@ - - @@ -29,6 +27,7 @@ + @@ -1799,32 +1798,20 @@ + + + - - - - - - - - - - - - + - + + + @@ -1846,25 +1833,7 @@ - - - - - - - - - - - - - - - + - @@ -15,11 +14,11 @@ - + @@ -37,7 +36,6 @@ - configuration = ${configuration.directory}/build.properties version.major=${version.major} version.minor=${version.minor} version.revision=${version.revision} From jboss-cvs-commits at lists.jboss.org Fri Dec 20 06:12:36 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 06:12:36 -0500 Subject: [jboss-cvs] JBossAS SVN: r114625 - in branches/JBPAPP_5: testsuite and 1 other directories. Message-ID: <201312201112.rBKBCaa5022191@svn01.web.mwc.hst.phx2.redhat.com> Author: ehugonnet Date: 2013-12-20 06:12:35 -0500 (Fri, 20 Dec 2013) New Revision: 114625 Modified: branches/JBPAPP_5/build/build.xml branches/JBPAPP_5/testsuite/build.xml branches/JBPAPP_5/tools/etc/buildmagic/version-info.xml Log: JBPAPP-10720: Merge build/build.properties and tools/etc/buildmagic/version-info.xml version-info.xml is using build.properties. The builds make a reference to the dir in which the build.properties is. Modified: branches/JBPAPP_5/build/build.xml =================================================================== --- branches/JBPAPP_5/build/build.xml 2013-12-20 10:53:33 UTC (rev 114624) +++ branches/JBPAPP_5/build/build.xml 2013-12-20 11:12:35 UTC (rev 114625) @@ -19,7 +19,7 @@ - + Modified: branches/JBPAPP_5/tools/etc/buildmagic/version-info.xml =================================================================== --- branches/JBPAPP_5/tools/etc/buildmagic/version-info.xml 2013-12-20 10:53:33 UTC (rev 114624) +++ branches/JBPAPP_5/tools/etc/buildmagic/version-info.xml 2013-12-20 11:12:35 UTC (rev 114625) @@ -5,6 +5,7 @@ + @@ -14,11 +15,6 @@ - - - - - From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:12:36 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:12:36 -0500 Subject: [jboss-cvs] JBossAS SVN: r114626 - projects/security/security-negotiation/trunk. Message-ID: <201312201412.rBKECafh015041@svn01.web.mwc.hst.phx2.redhat.com> Author: darran.lofthouse at jboss.com Date: 2013-12-20 09:12:36 -0500 (Fri, 20 Dec 2013) New Revision: 114626 Added: projects/security/security-negotiation/trunk/README.txt Removed: projects/security/security-negotiation/trunk/docs/ projects/security/security-negotiation/trunk/jboss-negotiation-common/ projects/security/security-negotiation/trunk/jboss-negotiation-extras/ projects/security/security-negotiation/trunk/jboss-negotiation-net/ projects/security/security-negotiation/trunk/jboss-negotiation-ntlm/ projects/security/security-negotiation/trunk/jboss-negotiation-spnego/ projects/security/security-negotiation/trunk/jboss-negotiation-toolkit/ projects/security/security-negotiation/trunk/parent/ projects/security/security-negotiation/trunk/pom.xml Log: [SECURITY-764] Relocate JBoss Negotiation code to git. Added: projects/security/security-negotiation/trunk/README.txt =================================================================== --- projects/security/security-negotiation/trunk/README.txt (rev 0) +++ projects/security/security-negotiation/trunk/README.txt 2013-12-20 14:12:36 UTC (rev 114626) @@ -0,0 +1,3 @@ +The code for JBoss Negotiation has now been reloacted to git and can be found at the following location: - + https://github.com/wildfly/jboss-negotiation/tree/master + Property changes on: projects/security/security-negotiation/trunk/README.txt ___________________________________________________________________ Added: svn:keywords + Id Revision Added: svn:eol-style + LF Deleted: projects/security/security-negotiation/trunk/pom.xml =================================================================== --- projects/security/security-negotiation/trunk/pom.xml 2013-12-20 11:12:35 UTC (rev 114625) +++ projects/security/security-negotiation/trunk/pom.xml 2013-12-20 14:12:36 UTC (rev 114626) @@ -1,29 +0,0 @@ - - - - org.jboss.security - jboss-negotiation-project - 2.2.7.Final-SNAPSHOT - parent/pom.xml - - 4.0.0 - org.jboss.security - jboss-negotiation-main - pom - JBoss Negotiation Aggregator - http://labs.jboss.org/portal/jbosssecurity/ - JBoss Security is a cross cutting project that handles security for the JEMS projects - - parent - jboss-negotiation-common - jboss-negotiation-extras - jboss-negotiation-net - jboss-negotiation-ntlm - jboss-negotiation-spnego - jboss-negotiation-toolkit - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - - From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:13:48 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:13:48 -0500 Subject: [jboss-cvs] JBossAS SVN: r114627 - projects/security/security-negotiation/trunk. Message-ID: <201312201413.rBKEDmxx015079@svn01.web.mwc.hst.phx2.redhat.com> Author: darran.lofthouse at jboss.com Date: 2013-12-20 09:13:48 -0500 (Fri, 20 Dec 2013) New Revision: 114627 Removed: projects/security/security-negotiation/trunk/.gitignore projects/security/security-negotiation/trunk/.project Log: [SECURITY-764] Relocate JBoss Negotiation code to git. Deleted: projects/security/security-negotiation/trunk/.gitignore =================================================================== --- projects/security/security-negotiation/trunk/.gitignore 2013-12-20 14:12:36 UTC (rev 114626) +++ projects/security/security-negotiation/trunk/.gitignore 2013-12-20 14:13:48 UTC (rev 114627) @@ -1,9 +0,0 @@ -.settings -assembly/target -jboss-negotiation-common/target -jboss-negotiation-extras/target -jboss-negotiation-net/target -jboss-negotiation-ntlm/target -jboss-negotiation-spnego/target -jboss-negotiation-toolkit/target -*.iml \ No newline at end of file Deleted: projects/security/security-negotiation/trunk/.project =================================================================== --- projects/security/security-negotiation/trunk/.project 2013-12-20 14:12:36 UTC (rev 114626) +++ projects/security/security-negotiation/trunk/.project 2013-12-20 14:13:48 UTC (rev 114627) @@ -1,23 +0,0 @@ - - - jboss-negotiation-main - - - - - - org.maven.ide.eclipse.maven2Builder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.maven.ide.eclipse.maven2Nature - - From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:17:31 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:17:31 -0500 Subject: [jboss-cvs] JBossAS SVN: r114628 - projects/security/security-negotiation/branches/security-negotiation-2.1.x. Message-ID: <201312201417.rBKEHV7l015110@svn01.web.mwc.hst.phx2.redhat.com> Author: darran.lofthouse at jboss.com Date: 2013-12-20 09:17:31 -0500 (Fri, 20 Dec 2013) New Revision: 114628 Added: projects/security/security-negotiation/branches/security-negotiation-2.1.x/README.txt Removed: projects/security/security-negotiation/branches/security-negotiation-2.1.x/.gitignore projects/security/security-negotiation/branches/security-negotiation-2.1.x/.project projects/security/security-negotiation/branches/security-negotiation-2.1.x/assembly/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/docs/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-common/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-extras/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-net/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-ntlm/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-spnego/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/jboss-negotiation-toolkit/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/parent/ projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml Log: [SECURITY-764] Relocate JBoss Negotiation code to git. Deleted: projects/security/security-negotiation/branches/security-negotiation-2.1.x/.gitignore =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/.gitignore 2013-12-20 14:13:48 UTC (rev 114627) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/.gitignore 2013-12-20 14:17:31 UTC (rev 114628) @@ -1,8 +0,0 @@ -.settings -assembly/target -jboss-negotiation-common/target -jboss-negotiation-extras/target -jboss-negotiation-net/target -jboss-negotiation-ntlm/target -jboss-negotiation-spnego/target -jboss-negotiation-toolkit/target \ No newline at end of file Deleted: projects/security/security-negotiation/branches/security-negotiation-2.1.x/.project =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/.project 2013-12-20 14:13:48 UTC (rev 114627) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/.project 2013-12-20 14:17:31 UTC (rev 114628) @@ -1,23 +0,0 @@ - - - jboss-negotiation-main - - - - - - org.maven.ide.eclipse.maven2Builder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.maven.ide.eclipse.maven2Nature - - Added: projects/security/security-negotiation/branches/security-negotiation-2.1.x/README.txt =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/README.txt (rev 0) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/README.txt 2013-12-20 14:17:31 UTC (rev 114628) @@ -0,0 +1,3 @@ +The code for JBoss Negotiation has now been reloacted to git and can be found at the following location: - + https://github.com/wildfly/jboss-negotiation/tree/security-negotiation-2.1.x + Property changes on: projects/security/security-negotiation/branches/security-negotiation-2.1.x/README.txt ___________________________________________________________________ Added: svn:keywords + Id Revision Added: svn:eol-style + LF Deleted: projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml 2013-12-20 14:13:48 UTC (rev 114627) +++ projects/security/security-negotiation/branches/security-negotiation-2.1.x/pom.xml 2013-12-20 14:17:31 UTC (rev 114628) @@ -1,30 +0,0 @@ - - - - org.jboss.security - jboss-negotiation-project - 2.1.5.SNAPSHOT - parent/pom.xml - - 4.0.0 - org.jboss.security - jboss-negotiation-main - pom - JBoss Negotiation Aggregator - http://labs.jboss.org/portal/jbosssecurity/ - JBoss Security is a cross cutting project that handles security for the JEMS projects - - parent - jboss-negotiation-common - jboss-negotiation-extras - jboss-negotiation-net - jboss-negotiation-ntlm - jboss-negotiation-spnego - jboss-negotiation-toolkit - assembly - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - - From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:19:49 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:19:49 -0500 Subject: [jboss-cvs] JBossAS SVN: r114629 - projects/security/security-negotiation/branches/security-negotiation-2.0.x. Message-ID: <201312201419.rBKEJnJT015151@svn01.web.mwc.hst.phx2.redhat.com> Author: darran.lofthouse at jboss.com Date: 2013-12-20 09:19:49 -0500 (Fri, 20 Dec 2013) New Revision: 114629 Added: projects/security/security-negotiation/branches/security-negotiation-2.0.x/README.txt Removed: projects/security/security-negotiation/branches/security-negotiation-2.0.x/assembly/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/docs/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/jboss-negotiation-common/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/jboss-negotiation-extras/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/jboss-negotiation-ntlm/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/jboss-negotiation-spnego/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/jboss-negotiation-toolkit/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/parent/ projects/security/security-negotiation/branches/security-negotiation-2.0.x/pom.xml Log: [SECURITY-764] Relocate JBoss Negotiation code to git. Added: projects/security/security-negotiation/branches/security-negotiation-2.0.x/README.txt =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.0.x/README.txt (rev 0) +++ projects/security/security-negotiation/branches/security-negotiation-2.0.x/README.txt 2013-12-20 14:19:49 UTC (rev 114629) @@ -0,0 +1,3 @@ +The code for JBoss Negotiation has now been reloacted to git and can be found at the following location: - + https://github.com/wildfly/jboss-negotiation/tree/security-negotiation-2.0.x + Property changes on: projects/security/security-negotiation/branches/security-negotiation-2.0.x/README.txt ___________________________________________________________________ Added: svn:keywords + Id Revision Added: svn:eol-style + LF Deleted: projects/security/security-negotiation/branches/security-negotiation-2.0.x/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.0.x/pom.xml 2013-12-20 14:17:31 UTC (rev 114628) +++ projects/security/security-negotiation/branches/security-negotiation-2.0.x/pom.xml 2013-12-20 14:19:49 UTC (rev 114629) @@ -1,29 +0,0 @@ - - - - org.jboss.security - jboss-negotiation-project - 2.0.5.GA-SNAPSHOT - parent/pom.xml - - 4.0.0 - org.jboss.security - jboss-negotiation-main - pom - JBoss Negotiation Aggregator - http://labs.jboss.org/portal/jbosssecurity/ - JBoss Security is a cross cutting project that handles security for the JEMS projects - - parent - jboss-negotiation-common - jboss-negotiation-extras - jboss-negotiation-ntlm - jboss-negotiation-spnego - jboss-negotiation-toolkit - assembly - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - - From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:23:08 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:23:08 -0500 Subject: [jboss-cvs] JBossAS SVN: r114630 - projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP. Message-ID: <201312201423.rBKEN89m015293@svn01.web.mwc.hst.phx2.redhat.com> Author: darran.lofthouse at jboss.com Date: 2013-12-20 09:23:08 -0500 (Fri, 20 Dec 2013) New Revision: 114630 Added: projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/README.txt Removed: projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/assembly/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/docs/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/jboss-negotiation-common/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/jboss-negotiation-extras/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/jboss-negotiation-ntlm/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/jboss-negotiation-spnego/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/jboss-negotiation-toolkit/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/parent/ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/pom.xml Log: [SECURITY-764] Relocate JBoss Negotiation code to git. Added: projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/README.txt =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/README.txt (rev 0) +++ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/README.txt 2013-12-20 14:23:08 UTC (rev 114630) @@ -0,0 +1,3 @@ +The code for JBoss Negotiation has now been reloacted to git and can be found at the following location: - + https://github.com/wildfly/jboss-negotiation/tree/security-negotiation-2.0.3.SP + Property changes on: projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/README.txt ___________________________________________________________________ Added: svn:keywords + Id Revision Added: svn:eol-style + LF Deleted: projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/pom.xml =================================================================== --- projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/pom.xml 2013-12-20 14:19:49 UTC (rev 114629) +++ projects/security/security-negotiation/branches/security-negotiation-2.0.3.SP/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) @@ -1,29 +0,0 @@ - - - - org.jboss.security - jboss-negotiation-project - 2.0.3.SP - parent/pom.xml - - 4.0.0 - org.jboss.security - jboss-negotiation-main - pom - JBoss Negotiation Aggregator - http://labs.jboss.org/portal/jbosssecurity/ - JBoss Security is a cross cutting project that handles security for the JEMS projects - - parent - jboss-negotiation-common - jboss-negotiation-extras - jboss-negotiation-ntlm - jboss-negotiation-spnego - jboss-negotiation-toolkit - assembly - - - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - scm:svn:https://svn.jboss.org/repos/jbossas/projects/security/security-negotiation/trunk - - From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:29:54 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:29:54 -0500 Subject: [jboss-cvs] JBossAS SVN: r114631 - in projects/security/security-spi/branches/Branch_2_0: acl and 6 other directories. Message-ID: <201312201429.rBKETscW015362@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek Date: 2013-12-20 09:29:53 -0500 (Fri, 20 Dec 2013) New Revision: 114631 Modified: projects/security/security-spi/branches/Branch_2_0/acl/pom.xml projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml projects/security/security-spi/branches/Branch_2_0/identity/pom.xml projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml projects/security/security-spi/branches/Branch_2_0/parent/pom.xml projects/security/security-spi/branches/Branch_2_0/pom.xml projects/security/security-spi/branches/Branch_2_0/spi/pom.xml Log: Version change for release 2.0.6.Final Modified: projects/security/security-spi/branches/Branch_2_0/acl/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/acl/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/acl/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/identity/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/identity/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/identity/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/parent/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/parent/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/parent/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -8,7 +8,7 @@ org.jboss.security jboss-security-spi-parent pom - 2.0.6-SNAPSHOT + 2.0.6.Final JBoss Security SPI - Parent http://labs.jboss.org/portal/jbosssecurity/ JBoss Security is a cross cutting project that handles security for the JEMS projects Modified: projects/security/security-spi/branches/Branch_2_0/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6-SNAPSHOT + 2.0.6.Final parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/spi/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/spi/pom.xml 2013-12-20 14:23:08 UTC (rev 114630) +++ projects/security/security-spi/branches/Branch_2_0/spi/pom.xml 2013-12-20 14:29:53 UTC (rev 114631) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:31:36 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:31:36 -0500 Subject: [jboss-cvs] JBossAS SVN: r114632 - projects/security/security-spi/tags. Message-ID: <201312201431.rBKEVa8L015519@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek Date: 2013-12-20 09:31:36 -0500 (Fri, 20 Dec 2013) New Revision: 114632 Added: projects/security/security-spi/tags/2.0.6.Final/ Log: tagging the release 2.0.6.Final From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:36:46 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:36:46 -0500 Subject: [jboss-cvs] JBossAS SVN: r114633 - projects/server-manager/branches/1.0.2.GA_CP. Message-ID: <201312201436.rBKEak1t016239@svn01.web.mwc.hst.phx2.redhat.com> Author: istudens at redhat.com Date: 2013-12-20 09:36:46 -0500 (Fri, 20 Dec 2013) New Revision: 114633 Modified: projects/server-manager/branches/1.0.2.GA_CP/pom.xml Log: back to the branch Modified: projects/server-manager/branches/1.0.2.GA_CP/pom.xml =================================================================== --- projects/server-manager/branches/1.0.2.GA_CP/pom.xml 2013-12-20 14:31:36 UTC (rev 114632) +++ projects/server-manager/branches/1.0.2.GA_CP/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) @@ -13,15 +13,15 @@ org.jboss.jbossas jboss-server-manager - 1.0.2.GA_CP03 + 1.0.2.GA_CP-SNAPSHOT JBossAS Server Manager - scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/server-manager/tags/1.0.2.GA_CP03 - scm:svn:https://svn.jboss.org/repos/jbossas/projects/server-manager/tags/1.0.2.GA_CP03 - http://anonsvn.jboss.org/repos/maven/jbossas/projects/server-manager/tags/1.0.2.GA_CP03 + scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/server-manager/branches/1.0.2.GA_CP + scm:svn:https://svn.jboss.org/repos/jbossas/projects/server-manager/branches/1.0.2.GA_CP + http://anonsvn.jboss.org/repos/maven/jbossas/projects/server-manager/branches/1.0.2.GA_CP From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:56:58 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:56:58 -0500 Subject: [jboss-cvs] JBossAS SVN: r114634 - in projects/security/security-jboss-sx/branches/Branch_2_0: acl and 7 other directories. Message-ID: <201312201456.rBKEuwTe016613@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek Date: 2013-12-20 09:56:58 -0500 (Fri, 20 Dec 2013) New Revision: 114634 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml Log: Version change for release 2.0.6.Final Modified: projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -7,7 +7,7 @@ 4.0.0 org.jboss.security jbosssx-client - 2.0.6-SNAPSHOT + 2.0.6.Final jar JBoss Security Client http://www.jboss.org Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -3,7 +3,7 @@ org.jboss.security jbosssx-parent - 2.0.6-SNAPSHOT + 2.0.6.Final ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -8,7 +8,7 @@ org.jboss.security jbosssx-parent pom - 2.0.6-SNAPSHOT + 2.0.6.Final JBossSX - Parent http://labs.jboss.org/portal/jbosssecurity/ JBoss Security is a cross cutting project that handles security for the JEMS projects @@ -185,6 +185,6 @@ GA - 2.0.6-SNAPSHOT + 2.0.6.Final Modified: projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml 2013-12-20 14:36:46 UTC (rev 114633) +++ projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml 2013-12-20 14:56:58 UTC (rev 114634) @@ -7,7 +7,7 @@ 4.0.0 org.jboss.security jbosssx-pom - 2.0.6-SNAPSHOT + 2.0.6.Final pom JBoss Security Implementation for the JBAS - Parent http://labs.jboss.org/portal/jbosssecurity/ From jboss-cvs-commits at lists.jboss.org Fri Dec 20 09:58:32 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 09:58:32 -0500 Subject: [jboss-cvs] JBossAS SVN: r114635 - projects/security/security-jboss-sx/tags. Message-ID: <201312201458.rBKEwW3N016652@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek Date: 2013-12-20 09:58:32 -0500 (Fri, 20 Dec 2013) New Revision: 114635 Added: projects/security/security-jboss-sx/tags/2.0.6.Final/ Log: tagging the release 2.0.6.Final From jboss-cvs-commits at lists.jboss.org Fri Dec 20 11:08:47 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 11:08:47 -0500 Subject: [jboss-cvs] JBossAS SVN: r114636 - branches/JBPAPP_5/component-matrix. Message-ID: <201312201608.rBKG8lTC031863@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-20 11:08:47 -0500 (Fri, 20 Dec 2013) New Revision: 114636 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10360 Upgrade jboss-server-manager to 1.0.2.GA_CP03 Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-20 14:58:32 UTC (rev 114635) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) @@ -90,7 +90,7 @@ 2.0.5.SP3-1 2.1.4.GA 1.0.6.FINAL - 1.0.2.GA + 1.0.2.GA_CP03 1.0.0.GA 2.2.3.GA 1.0.1.GA From jboss-cvs-commits at lists.jboss.org Fri Dec 20 12:00:18 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 12:00:18 -0500 Subject: [jboss-cvs] JBossAS SVN: r114637 - in projects/security/security-spi/branches/Branch_2_0: acl and 6 other directories. Message-ID: <201312201700.rBKH0I2l007152@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek Date: 2013-12-20 12:00:18 -0500 (Fri, 20 Dec 2013) New Revision: 114637 Modified: projects/security/security-spi/branches/Branch_2_0/acl/pom.xml projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml projects/security/security-spi/branches/Branch_2_0/identity/pom.xml projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml projects/security/security-spi/branches/Branch_2_0/parent/pom.xml projects/security/security-spi/branches/Branch_2_0/pom.xml projects/security/security-spi/branches/Branch_2_0/spi/pom.xml Log: setting next version Modified: projects/security/security-spi/branches/Branch_2_0/acl/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/acl/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/acl/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/assembly/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/authorization/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/identity/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/identity/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/identity/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/jboss-security-spi-as4/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/parent/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/parent/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/parent/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -8,7 +8,7 @@ org.jboss.security jboss-security-spi-parent pom - 2.0.6.Final + 2.0.7-SNAPSHOT JBoss Security SPI - Parent http://labs.jboss.org/portal/jbosssecurity/ JBoss Security is a cross cutting project that handles security for the JEMS projects Modified: projects/security/security-spi/branches/Branch_2_0/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6.Final + 2.0.7-SNAPSHOT parent 4.0.0 Modified: projects/security/security-spi/branches/Branch_2_0/spi/pom.xml =================================================================== --- projects/security/security-spi/branches/Branch_2_0/spi/pom.xml 2013-12-20 16:08:47 UTC (rev 114636) +++ projects/security/security-spi/branches/Branch_2_0/spi/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) @@ -2,7 +2,7 @@ org.jboss.security jboss-security-spi-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 From jboss-cvs-commits at lists.jboss.org Fri Dec 20 12:01:09 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 12:01:09 -0500 Subject: [jboss-cvs] JBossAS SVN: r114638 - in projects/security/security-jboss-sx/branches/Branch_2_0: acl and 7 other directories. Message-ID: <201312201701.rBKH19ag007232@svn01.web.mwc.hst.phx2.redhat.com> Author: pskopek Date: 2013-12-20 12:01:09 -0500 (Fri, 20 Dec 2013) New Revision: 114638 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml Log: setting next version Modified: projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/acl/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/assembly/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/identity/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-bridge-as4/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -2,7 +2,7 @@ org.jboss.security jbosssx-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-client/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -7,7 +7,7 @@ 4.0.0 org.jboss.security jbosssx-client - 2.0.6.Final + 2.0.7-SNAPSHOT jar JBoss Security Client http://www.jboss.org Modified: projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/jbosssx-mc-int/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -3,7 +3,7 @@ org.jboss.security jbosssx-parent - 2.0.6.Final + 2.0.7-SNAPSHOT ../parent 4.0.0 Modified: projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/parent/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -8,7 +8,7 @@ org.jboss.security jbosssx-parent pom - 2.0.6.Final + 2.0.7-SNAPSHOT JBossSX - Parent http://labs.jboss.org/portal/jbosssecurity/ JBoss Security is a cross cutting project that handles security for the JEMS projects @@ -185,6 +185,6 @@ GA - 2.0.6.Final + 2.0.7-SNAPSHOT Modified: projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml =================================================================== --- projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml 2013-12-20 17:00:18 UTC (rev 114637) +++ projects/security/security-jboss-sx/branches/Branch_2_0/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) @@ -7,7 +7,7 @@ 4.0.0 org.jboss.security jbosssx-pom - 2.0.6.Final + 2.0.7-SNAPSHOT pom JBoss Security Implementation for the JBAS - Parent http://labs.jboss.org/portal/jbosssecurity/ From jboss-cvs-commits at lists.jboss.org Fri Dec 20 13:46:29 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 20 Dec 2013 13:46:29 -0500 Subject: [jboss-cvs] Picketbox SVN: r487 - in trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security: config and 2 other directories. Message-ID: <201312201846.rBKIkTTI017728@svn01.web.mwc.hst.phx2.redhat.com> Author: sguilhen at redhat.com Date: 2013-12-20 13:46:28 -0500 (Fri, 20 Dec 2013) New Revision: 487 Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/authorization/modules/AbstractAuthorizationModule.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/SecurityConfiguration.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/AuthenticationConfigParser.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/ModuleOptionParser.java trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/util/xml/JBossEntityResolver.java Log: SECURITY-777: Make static maps thread safe Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/authorization/modules/AbstractAuthorizationModule.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/authorization/modules/AbstractAuthorizationModule.java 2013-12-17 12:05:00 UTC (rev 486) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/authorization/modules/AbstractAuthorizationModule.java 2013-12-20 18:46:28 UTC (rev 487) @@ -24,6 +24,7 @@ import java.util.HashMap; import java.util.Map; import java.util.StringTokenizer; +import java.util.concurrent.ConcurrentHashMap; import javax.security.auth.Subject; import javax.security.auth.callback.CallbackHandler; @@ -55,10 +56,10 @@ /** Map of delegates for the various layers */ protected Map delegateMap = new HashMap(); - + /** A map that is available to reduce the loadClass synchronization */ - protected static Map > clazzMap = new HashMap >(); - + protected static Map> clazzMap = new ConcurrentHashMap>(); + /** * @see AuthorizationModule#authorize(Resource) */ Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/SecurityConfiguration.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/SecurityConfiguration.java 2013-12-17 12:05:00 UTC (rev 486) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/SecurityConfiguration.java 2013-12-20 18:46:28 UTC (rev 487) @@ -9,6 +9,8 @@ import java.security.Key; import java.security.spec.AlgorithmParameterSpec; import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.jboss.security.PicketBoxMessages; @@ -26,7 +28,7 @@ /** * Map of Application Policies keyed in by name */ - private static HashMap appPolicies = new HashMap(); + private static final Map appPolicies = new ConcurrentHashMap(); private static String cipherAlgorithm; private static int iterationCount; private static String salt; Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/AuthenticationConfigParser.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/AuthenticationConfigParser.java 2013-12-17 12:05:00 UTC (rev 486) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/AuthenticationConfigParser.java 2013-12-20 18:46:28 UTC (rev 487) @@ -21,12 +21,7 @@ */ package org.jboss.security.config.parser; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedHashSet; -import java.util.Map; -import java.util.Set; +import java.util.*; import javax.security.auth.login.AppConfigurationEntry; import javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag; @@ -69,27 +64,29 @@ public class AuthenticationConfigParser implements XMLStreamConstants { - public static Map loginModulesMap = new HashMap(); + public static final Map loginModulesMap; static { - loginModulesMap.put("Client", ClientLoginModule.class.getName()); - loginModulesMap.put("Certificate", BaseCertLoginModule.class.getName()); - loginModulesMap.put("CertificateRoles", CertRolesLoginModule.class.getName()); - loginModulesMap.put("DatabaseCertificate", DatabaseCertLoginModule.class.getName()); - loginModulesMap.put("Database", DatabaseServerLoginModule.class.getName()); - loginModulesMap.put("Identity", IdentityLoginModule.class.getName()); - loginModulesMap.put("Ldap", LdapLoginModule.class.getName()); - loginModulesMap.put("LdapExtended", LdapExtLoginModule.class.getName()); - loginModulesMap.put("RoleMapping", RoleMappingLoginModule.class.getName()); - loginModulesMap.put("RunAs", RunAsLoginModule.class.getName()); - loginModulesMap.put("Simple", SimpleServerLoginModule.class.getName()); - loginModulesMap.put("UsersRoles", UsersRolesLoginModule.class.getName()); - loginModulesMap.put("CallerIdentity", CallerIdentityLoginModule.class.getName()); - loginModulesMap.put("ConfiguredIdentity", ConfiguredIdentityLoginModule.class.getName()); - loginModulesMap.put("JaasSecurityDomainIdentity", JaasSecurityDomainIdentityLoginModule.class.getName()); - loginModulesMap.put("PBEIdentity", PBEIdentityLoginModule.class.getName()); - loginModulesMap.put("SecureIdentity", SecureIdentityLoginModule.class.getName()); + final Map loginModules = new HashMap(); + loginModules.put("Client", ClientLoginModule.class.getName()); + loginModules.put("Certificate", BaseCertLoginModule.class.getName()); + loginModules.put("CertificateRoles", CertRolesLoginModule.class.getName()); + loginModules.put("DatabaseCertificate", DatabaseCertLoginModule.class.getName()); + loginModules.put("Database", DatabaseServerLoginModule.class.getName()); + loginModules.put("Identity", IdentityLoginModule.class.getName()); + loginModules.put("Ldap", LdapLoginModule.class.getName()); + loginModules.put("LdapExtended", LdapExtLoginModule.class.getName()); + loginModules.put("RoleMapping", RoleMappingLoginModule.class.getName()); + loginModules.put("RunAs", RunAsLoginModule.class.getName()); + loginModules.put("Simple", SimpleServerLoginModule.class.getName()); + loginModules.put("UsersRoles", UsersRolesLoginModule.class.getName()); + loginModules.put("CallerIdentity", CallerIdentityLoginModule.class.getName()); + loginModules.put("ConfiguredIdentity", ConfiguredIdentityLoginModule.class.getName()); + loginModules.put("JaasSecurityDomainIdentity", JaasSecurityDomainIdentityLoginModule.class.getName()); + loginModules.put("PBEIdentity", PBEIdentityLoginModule.class.getName()); + loginModules.put("SecureIdentity", SecureIdentityLoginModule.class.getName()); + loginModulesMap = Collections.unmodifiableMap(loginModules); } /** Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/ModuleOptionParser.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/ModuleOptionParser.java 2013-12-17 12:05:00 UTC (rev 486) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/config/parser/ModuleOptionParser.java 2013-12-20 18:46:28 UTC (rev 487) @@ -47,9 +47,9 @@ */ public class ModuleOptionParser implements XMLStreamConstants { - private static transient Map parsers = new HashMap(); + private static final Map parsers = Collections.synchronizedMap(new HashMap()); - public ModuleOptionParser() + static { parsers.put("urn:jboss:user-roles", new UsersConfigParser()); parsers.put("urn:jboss:java-properties", new JavaPropertiesConfigParser()); Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/util/xml/JBossEntityResolver.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/util/xml/JBossEntityResolver.java 2013-12-17 12:05:00 UTC (rev 486) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/util/xml/JBossEntityResolver.java 2013-12-20 18:46:28 UTC (rev 487) @@ -56,7 +56,7 @@ public class JBossEntityResolver implements EntityResolver { /** A class wide Map of publicId/systemId to dtd/xsd file */ - private static Map entities = new ConcurrentHashMap (); + private static final Map entities = new ConcurrentHashMap (); /** A class flag indicating whether an attempt to resolve a systemID as a non-file URL should produce a warning rather than a trace level log msg. */ From jboss-cvs-commits at lists.jboss.org Mon Dec 23 02:16:25 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 23 Dec 2013 02:16:25 -0500 Subject: [jboss-cvs] JBossAS SVN: r114639 - branches/JBPAPP_5/component-matrix. Message-ID: <201312230716.rBN7GPVR009429@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-23 02:16:24 -0500 (Mon, 23 Dec 2013) New Revision: 114639 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10932 Upgrade Hibernate ORM for EAP 5.3 Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-20 17:01:09 UTC (rev 114638) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-23 07:16:24 UTC (rev 114639) @@ -50,12 +50,12 @@ 2.1.13.GA-patch-02 2.6.22.Final 3.8.2 - 3.4.0.GA_CP05 + 3.4.0.GA_CP06 3.1.0.GA 1.0.2.GA - 3.4.0.GA_CP05 + 3.4.0.GA_CP06 3.1.0.GA - 3.3.2.GA_CP05 + 3.3.2.GA_CP06 2.1.6.GA_CP06 1.0.1 1.0.3 From jboss-cvs-commits at lists.jboss.org Mon Dec 23 11:12:44 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Mon, 23 Dec 2013 11:12:44 -0500 Subject: [jboss-cvs] Picketbox SVN: r488 - trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi. Message-ID: <201312231612.rBNGCisi021490@svn01.web.mwc.hst.phx2.redhat.com> Author: sguilhen at redhat.com Date: 2013-12-23 11:12:44 -0500 (Mon, 23 Dec 2013) New Revision: 488 Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/AbstractServerLoginModule.java Log: SECURITY-769 Port changes applied to picketbox-container Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/AbstractServerLoginModule.java =================================================================== --- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/AbstractServerLoginModule.java 2013-12-20 18:46:28 UTC (rev 487) +++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/auth/spi/AbstractServerLoginModule.java 2013-12-23 16:12:44 UTC (rev 488) @@ -392,11 +392,11 @@ */ protected void addValidOptions(final String[] moduleValidOptions) { - if (validOptions==null) - { - validOptions = new HashSet(); - } - validOptions.addAll(Arrays.asList(moduleValidOptions)); + if (validOptions == null) + { + validOptions = new HashSet(moduleValidOptions.length); + } + validOptions.addAll(Arrays.asList(moduleValidOptions)); } /** @@ -413,4 +413,4 @@ } } } -} \ No newline at end of file +} From jboss-cvs-commits at lists.jboss.org Tue Dec 24 03:09:07 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 24 Dec 2013 03:09:07 -0500 Subject: [jboss-cvs] JBossAS SVN: r114640 - branches/JBPAPP_5/component-matrix. Message-ID: <201312240809.rBO897KA025265@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-24 03:09:07 -0500 (Tue, 24 Dec 2013) New Revision: 114640 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10444 Upgrade JBoss Microcontainer to 2.0.11.GA Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-23 07:16:24 UTC (rev 114639) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-24 08:09:07 UTC (rev 114640) @@ -82,7 +82,7 @@ 2.1.1.SP2 2.0.3.GA 1.0.7.GA - 2.0.10.GA + 2.0.11.GA 5.0.3.GA_CP02 2.0.4.GA 2.5.4.SP4_patch01 From jboss-cvs-commits at lists.jboss.org Tue Dec 24 12:07:50 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Tue, 24 Dec 2013 12:07:50 -0500 Subject: [jboss-cvs] JBossAS SVN: r114641 - branches/JBPAPP_5/component-matrix. Message-ID: <201312241707.rBOH7oPD003795@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-24 12:07:49 -0500 (Tue, 24 Dec 2013) New Revision: 114641 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10897 Upgrade JBoss Security to 2.0.6 Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-24 08:09:07 UTC (rev 114640) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-24 17:07:49 UTC (rev 114641) @@ -86,8 +86,8 @@ 5.0.3.GA_CP02 2.0.4.GA 2.5.4.SP4_patch01 - 2.0.5.SP3-1-patch-01 - 2.0.5.SP3-1 + 2.0.6.Final + 2.0.6.Final 2.1.4.GA 1.0.6.FINAL 1.0.2.GA_CP03 From jboss-cvs-commits at lists.jboss.org Wed Dec 25 13:29:23 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Wed, 25 Dec 2013 13:29:23 -0500 Subject: [jboss-cvs] JBossAS SVN: r114642 - branches/JBPAPP_5/component-matrix. Message-ID: <201312251829.rBPITNUg020190@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-25 13:29:22 -0500 (Wed, 25 Dec 2013) New Revision: 114642 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10435 Release and upgrade JBossWS-Native for EAP 5.3.0 Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-24 17:07:49 UTC (rev 114641) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-25 18:29:22 UTC (rev 114642) @@ -40,10 +40,10 @@ 1.0-MR1 2.0.1 4.6.1.GA_CP13 - 1.1.0.SP10 - 3.1.2.SP13 + 1.1.0.SP11 + 3.1.2.SP14 1.1.2.SP8 - 3.1.2.SP15-patch-02 + 3.1.2.SP16 1.0.1.GA 1.4.8.SP9_patch_01 2.2.24.EAP.GA From jboss-cvs-commits at lists.jboss.org Fri Dec 27 13:58:16 2013 From: jboss-cvs-commits at lists.jboss.org (jboss-cvs-commits at lists.jboss.org) Date: Fri, 27 Dec 2013 13:58:16 -0500 Subject: [jboss-cvs] JBossAS SVN: r114643 - branches/JBPAPP_5/component-matrix. Message-ID: <201312271858.rBRIwG16002211@svn01.web.mwc.hst.phx2.redhat.com> Author: huwang Date: 2013-12-27 13:58:15 -0500 (Fri, 27 Dec 2013) New Revision: 114643 Modified: branches/JBPAPP_5/component-matrix/pom.xml Log: JBPAPP-10670 Upgrade JacORB to 2.3.2-jboss-5 Modified: branches/JBPAPP_5/component-matrix/pom.xml =================================================================== --- branches/JBPAPP_5/component-matrix/pom.xml 2013-12-25 18:29:22 UTC (rev 114642) +++ branches/JBPAPP_5/component-matrix/pom.xml 2013-12-27 18:58:15 UTC (rev 114643) @@ -31,9 +31,9 @@ 2.7.1-patch-06 - 2.3.2-jboss-1 - 2.3.2-jboss-1 - 2.3.2-jboss-1 + 2.3.2-jboss-5 + 2.3.2-jboss-5 + 2.3.2-jboss-5 1.2_13-patch-01 1.0.0.Final 2.1