You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(544) |
May
(1715) |
Jun
(1059) |
Jul
(886) |
Aug
(1214) |
Sep
(1375) |
Oct
(1664) |
Nov
(1153) |
Dec
(1084) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1630) |
Feb
(1634) |
Mar
(1979) |
Apr
(1119) |
May
(1850) |
Jun
(1231) |
Jul
(1168) |
Aug
(1840) |
Sep
(1038) |
Oct
(1127) |
Nov
(1458) |
Dec
(854) |
2004 |
Jan
(1145) |
Feb
(1064) |
Mar
(2242) |
Apr
(1728) |
May
(1346) |
Jun
(1280) |
Jul
(1681) |
Aug
(2388) |
Sep
(2233) |
Oct
(3246) |
Nov
(3248) |
Dec
(1775) |
2005 |
Jan
(3407) |
Feb
(3049) |
Mar
(2402) |
Apr
(3687) |
May
(3289) |
Jun
(5731) |
Jul
(3905) |
Aug
(5843) |
Sep
(5149) |
Oct
(6866) |
Nov
(4051) |
Dec
(4646) |
2006 |
Jan
(7356) |
Feb
(4713) |
Mar
(9447) |
Apr
(6553) |
May
(6206) |
Jun
(4301) |
Jul
(1160) |
Aug
(23) |
Sep
(11) |
Oct
(19) |
Nov
(26) |
Dec
(15) |
2007 |
Jan
(28) |
Feb
(24) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Julien V. <ju...@jb...> - 2006-07-07 20:00:31
|
User: julien Date: 06/07/07 16:00:28 Modified: wsrp build.xml Log: - changed caching strategy of service proxies : the configured factory does not cache statically anymore as it would lead to issues in multithreaded environements. instead it caches per factory (which is configured with the state) and I have added a service factory decorator that caches statically but is used only in the tests (in order to avoid to recreate the same proxy (which leads to saving lot of time as soap proxy are very expensive to build))) Revision Changes Path 1.75 +1 -5 jboss-portal/wsrp/build.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jboss-portal/wsrp/build.xml,v retrieving revision 1.74 retrieving revision 1.75 diff -u -b -r1.74 -r1.75 --- build.xml 3 Jul 2006 15:47:48 -0000 1.74 +++ build.xml 7 Jul 2006 20:00:28 -0000 1.75 @@ -8,7 +8,7 @@ <!ENTITY targets SYSTEM "../tools/etc/buildfragments/targets.ent"> ]> -<!-- $Id: build.xml,v 1.74 2006/07/03 15:47:48 julien Exp $ --> +<!-- $Id: build.xml,v 1.75 2006/07/07 20:00:28 julien Exp $ --> <!--+======================================================================+--> <!--| JBoss Portal (The OpenSource Portal) Build File |--> @@ -451,10 +451,6 @@ --> <!-- - <jvmarg value="-Xdebug"/> - <jvmarg value="-Xnoagent"/> - <jvmarg value="-Djava.compiler=NONE"/> - <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8787"/> <jvmarg value="${junit.jvm.options}"/> <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> --> |
From: Julien V. <ju...@jb...> - 2006-07-07 20:00:31
|
User: julien Date: 06/07/07 16:00:28 Modified: wsrp/src/main/org/jboss/portal/wsrp/deployment WSRPDeploymentFactory.java Log: - changed caching strategy of service proxies : the configured factory does not cache statically anymore as it would lead to issues in multithreaded environements. instead it caches per factory (which is configured with the state) and I have added a service factory decorator that caches statically but is used only in the tests (in order to avoid to recreate the same proxy (which leads to saving lot of time as soap proxy are very expensive to build))) Revision Changes Path 1.9 +3 -3 jboss-portal/wsrp/src/main/org/jboss/portal/wsrp/deployment/WSRPDeploymentFactory.java (In the diff below, changes in quantity of whitespace are not shown.) Index: WSRPDeploymentFactory.java =================================================================== RCS file: /cvsroot/jboss/jboss-portal/wsrp/src/main/org/jboss/portal/wsrp/deployment/WSRPDeploymentFactory.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- WSRPDeploymentFactory.java 24 May 2006 09:39:11 -0000 1.8 +++ WSRPDeploymentFactory.java 7 Jul 2006 20:00:28 -0000 1.9 @@ -28,7 +28,7 @@ import org.jboss.portal.wsrp.core.RegistrationData; import org.jboss.portal.wsrp.services.PerEndpointSOAPInvokerServiceFactory; import org.jboss.portal.wsrp.services.RemoteSOAPInvokerServiceFactory; -import org.jboss.portal.wsrp.services.ServiceFactory; +import org.jboss.portal.wsrp.services.ServiceFactoryImpl; import org.jboss.util.StringPropertyReplacer; import org.jboss.xb.binding.ObjectModelFactory; import org.jboss.xb.binding.UnmarshallingContext; @@ -42,7 +42,7 @@ * Wire the mbeans to install * * @author <a href="mailto:ju...@jb...">Julien Viet</a> - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ public class WSRPDeploymentFactory implements ObjectModelFactory { @@ -100,7 +100,7 @@ Attributes attrs) { - ServiceFactory serviceFactory = null; + ServiceFactoryImpl serviceFactory = null; RegistrationData registrationData = null; if ("endpoint-config".equals(localName)) { |
From: Tom E. <tom...@jb...> - 2006-07-07 19:49:32
|
User: telrod Date: 06/07/07 15:49:30 Modified: src/main/org/jboss/remoting InvokerRegistry.java Log: JBREM-320 - convert pass by value to be handled by local client invoker instead of making remote call. Revision Changes Path 1.32 +3 -3 JBossRemoting/src/main/org/jboss/remoting/InvokerRegistry.java (In the diff below, changes in quantity of whitespace are not shown.) Index: InvokerRegistry.java =================================================================== RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/InvokerRegistry.java,v retrieving revision 1.31 retrieving revision 1.32 diff -u -b -r1.31 -r1.32 --- InvokerRegistry.java 22 Jun 2006 03:48:45 -0000 1.31 +++ InvokerRegistry.java 7 Jul 2006 19:49:30 -0000 1.32 @@ -46,7 +46,7 @@ * * @author <a href="mailto:jh...@vo...">Jeff Haynie</a> * @author <a href="mailto:te...@e2...">Tom Elrod</a> - * @version $Revision: 1.31 $ + * @version $Revision: 1.32 $ */ public class InvokerRegistry { @@ -337,9 +337,9 @@ // Check to see if server invoker is local // If in server locators map, then created locally by this class ServerInvoker svrInvoker = (ServerInvoker) serverLocators.get(locator); - if(svrInvoker != null && !isPassByValue) + if(svrInvoker != null) { - LocalClientInvoker localInvoker = new LocalClientInvoker(locator, configuration); + LocalClientInvoker localInvoker = new LocalClientInvoker(locator, configuration, isPassByValue); // have to set reference to local server invoker so client in invoke directly localInvoker.setServerInvoker(svrInvoker); invoker = localInvoker; |
From: Tom E. <tom...@jb...> - 2006-07-07 19:49:32
|
User: telrod Date: 06/07/07 15:49:30 Modified: src/main/org/jboss/remoting/transport/local LocalClientInvoker.java Log: JBREM-320 - convert pass by value to be handled by local client invoker instead of making remote call. Revision Changes Path 1.13 +22 -3 JBossRemoting/src/main/org/jboss/remoting/transport/local/LocalClientInvoker.java (In the diff below, changes in quantity of whitespace are not shown.) Index: LocalClientInvoker.java =================================================================== RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/local/LocalClientInvoker.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -b -r1.12 -r1.13 --- LocalClientInvoker.java 23 May 2006 17:47:50 -0000 1.12 +++ LocalClientInvoker.java 7 Jul 2006 19:49:30 -0000 1.13 @@ -43,12 +43,13 @@ * same JVM as the callback server. * * @author <a href="mailto:te...@vo...">Tom Elrod</a> - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ */ public class LocalClientInvoker extends AbstractInvoker implements BidirectionalClientInvoker { private ServerInvoker serverInvoker; private boolean isConnected = false; + private boolean byValue = false; public LocalClientInvoker(InvokerLocator locator) { @@ -60,6 +61,12 @@ super(locator, configuration); } + public LocalClientInvoker(InvokerLocator locator, Map configuration, boolean byValue) + { + super(locator, configuration); + this.byValue = byValue; + } + /** * transport a request against a remote ServerInvoker * @@ -74,12 +81,19 @@ log.trace("Using local client invoker for invocation."); } + InvocationRequest localInvocation = invocation; + + if(byValue) + { + localInvocation = marshallInvocation(localInvocation); + } + Object ret = null; if(serverInvoker != null) { try { - ret = serverInvoker.invoke(invocation); + ret = serverInvoker.invoke(localInvocation); } catch (ServerInvoker.InvalidStateException invalidStateEx) { @@ -109,7 +123,7 @@ if(newServerInvoker != null) { serverInvoker = newServerInvoker; - ret = serverInvoker.invoke(invocation); + ret = serverInvoker.invoke(localInvocation); } else { @@ -126,6 +140,11 @@ return ret; } + protected InvocationRequest marshallInvocation(InvocationRequest localInvocation) + { + return null; + } + /** * subclasses must provide this method to return true if their remote connection is connected and * false if disconnected. in some transports, such as SOAP, this method may always return true, since the |
From: Tom E. <tom...@jb...> - 2006-07-07 18:47:45
|
User: telrod Date: 06/07/07 14:47:43 Modified: src/tests/org/jboss/test/remoting/transport/multiplex/ssl/serversocketrefresh TestClient.java TestServer.java Log: JBREM-427 - changed port from 1001 to 2001 so can be run on linux (cruisecontrol) without requiring root user to run it. Revision Changes Path 1.4 +2 -2 JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/ssl/serversocketrefresh/TestClient.java (In the diff below, changes in quantity of whitespace are not shown.) Index: TestClient.java =================================================================== RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/ssl/serversocketrefresh/TestClient.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- TestClient.java 5 Jul 2006 21:12:54 -0000 1.3 +++ TestClient.java 7 Jul 2006 18:47:43 -0000 1.4 @@ -20,7 +20,7 @@ private String trustStorePath="src/tests/org/jboss/test/remoting/transport/multiplex/ssl/serversocketrefresh/certificate/clientTrustStore"; private String keyStorePassword="testpw"; private String trustStorePassword="testpw"; - private String localPort="1002"; + private String localPort="2002"; InvokerLocator locator; Client client; Map configuration; @@ -28,7 +28,7 @@ public void setUp() throws Exception{ - locator=new InvokerLocator("sslmultiplex://localHost:1001"); + locator=new InvokerLocator("sslmultiplex://localHost:2001"); //the client side connection endpoint configuration = new HashMap(); 1.4 +1 -1 JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/ssl/serversocketrefresh/TestServer.java (In the diff below, changes in quantity of whitespace are not shown.) Index: TestServer.java =================================================================== RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/multiplex/ssl/serversocketrefresh/TestServer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- TestServer.java 5 Jul 2006 21:12:54 -0000 1.3 +++ TestServer.java 7 Jul 2006 18:47:43 -0000 1.4 @@ -41,7 +41,7 @@ private String trustStorePath="src/tests/org/jboss/test/remoting/transport/multiplex/ssl/serversocketrefresh/certificate/serverTrustStore"; private String keyStorePassword="testpw"; private String trustStorePassword="testpw"; - private String port="1001"; + private String port="2001"; private Connector connector; private MBeanServer server; private static boolean invocationDone=false; |
From: Tom E. <tom...@jb...> - 2006-07-07 18:47:45
|
User: telrod Date: 06/07/07 14:47:43 Modified: src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh TestClient.java TestServer.java Log: JBREM-427 - changed port from 1001 to 2001 so can be run on linux (cruisecontrol) without requiring root user to run it. Revision Changes Path 1.5 +1 -1 JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestClient.java (In the diff below, changes in quantity of whitespace are not shown.) Index: TestClient.java =================================================================== RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestClient.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- TestClient.java 26 Jun 2006 09:10:28 -0000 1.4 +++ TestClient.java 7 Jul 2006 18:47:43 -0000 1.5 @@ -23,7 +23,7 @@ Map configuration; public void setUp() throws Exception{ - locator=new InvokerLocator("sslsocket://localHost:1001"); + locator=new InvokerLocator("sslsocket://localHost:2001"); //the client side connection endpoint configuration = new HashMap(); 1.4 +1 -1 JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java (In the diff below, changes in quantity of whitespace are not shown.) Index: TestServer.java =================================================================== RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- TestServer.java 23 Jun 2006 19:43:35 -0000 1.3 +++ TestServer.java 7 Jul 2006 18:47:43 -0000 1.4 @@ -41,7 +41,7 @@ private String trustStorePath="src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/certificate/serverTrustStore"; private String keyStorePassword="testpw"; private String trustStorePassword="testpw"; - private String port="1001"; + private String port="2001"; private Connector connector; private MBeanServer server; private static boolean invocationDone=false; |
From: Manik S. <msu...@jb...> - 2006-07-07 17:46:03
|
User: msurtani Date: 06/07/07 13:45:18 Modified: docs/PojoCache/en Tag: Branch_JBossCache_1_4_0 master.xml Log: Updated docs for release of 1.4.0 Revision Changes Path No revision No revision 1.2.2.1 +2 -3 JBossCache/docs/PojoCache/en/master.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: master.xml =================================================================== RCS file: /cvsroot/jboss/JBossCache/docs/PojoCache/en/master.xml,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -b -r1.2 -r1.2.2.1 --- master.xml 28 Apr 2006 08:37:08 -0000 1.2 +++ master.xml 7 Jul 2006 17:45:18 -0000 1.2.2.1 @@ -19,9 +19,8 @@ <bookinfo> <title>PojoCache</title> <subtitle>User Documentation</subtitle> - <releaseinfo>Release 1.4.0</releaseinfo> - <pubdate>May 2006</pubdate> - <author> +<releaseinfo>Release 1.4.0 "Jalapeno"</releaseinfo> + <pubdate>July 2006</pubdate> <author> <firstname>Ben</firstname> <surname>Wang</surname> <email>ben...@jb...</email> |
From: Manik S. <msu...@jb...> - 2006-07-07 17:46:03
|
User: msurtani Date: 06/07/07 13:45:19 Modified: docs/TreeCache/en/images Tag: Branch_JBossCache_1_4_0 PackageOverview-BuddyReplication.png Log: Updated docs for release of 1.4.0 Revision Changes Path No revision No revision 1.1.2.1 +60 -72 JBossCache/docs/TreeCache/en/images/PackageOverview-BuddyReplication.png <<Binary file>> |
From: Manik S. <msu...@jb...> - 2006-07-07 17:46:03
|
User: msurtani Date: 06/07/07 13:45:19 Modified: docs/tutorial/en Tag: Branch_JBossCache_1_4_0 master.xml Log: Updated docs for release of 1.4.0 Revision Changes Path No revision No revision 1.13.2.2 +2 -3 JBossCache/docs/tutorial/en/master.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: master.xml =================================================================== RCS file: /cvsroot/jboss/JBossCache/docs/tutorial/en/master.xml,v retrieving revision 1.13.2.1 retrieving revision 1.13.2.2 diff -u -b -r1.13.2.1 -r1.13.2.2 --- master.xml 5 Jul 2006 03:15:38 -0000 1.13.2.1 +++ master.xml 7 Jul 2006 17:45:19 -0000 1.13.2.2 @@ -2,9 +2,8 @@ <article lang="en"> <articleinfo> <title>JBossCache TreeCache and PojoCache Tutorial</title> - <releaseinfo>Release 1.4.0 "Jalapeno"</releaseinfo> - <pubdate>May 2006</pubdate> - +<releaseinfo>Release 1.4.0 "Jalapeno"</releaseinfo> + <pubdate>July 2006</pubdate> <author> <firstname>Ben</firstname> <surname>Wang</surname> |
From: Manik S. <msu...@jb...> - 2006-07-07 17:46:03
|
User: msurtani Date: 06/07/07 13:45:19 Modified: docs/faq/en Tag: Branch_JBossCache_1_4_0 master.xml Log: Updated docs for release of 1.4.0 Revision Changes Path No revision No revision 1.34.2.3 +2 -2 JBossCache/docs/faq/en/master.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: master.xml =================================================================== RCS file: /cvsroot/jboss/JBossCache/docs/faq/en/master.xml,v retrieving revision 1.34.2.2 retrieving revision 1.34.2.3 diff -u -b -r1.34.2.2 -r1.34.2.3 --- master.xml 6 Jul 2006 16:43:11 -0000 1.34.2.2 +++ master.xml 7 Jul 2006 17:45:19 -0000 1.34.2.3 @@ -6,7 +6,7 @@ <articleinfo> <title>Frequently Asked Questions about JBoss Cache</title> <releaseinfo>Release 1.4.0 "Jalapeno"</releaseinfo> - <pubdate>May 2006</pubdate> + <pubdate>July 2006</pubdate> <author> <firstname>Ben</firstname> @@ -1736,7 +1736,7 @@ <para>I am having problems getting JBoss Cache to work, where can I get information on troubleshooting?</para> </question> <answer> - <para>Troubleshooting section can be found in the following <ulink url="http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheTroubleshooting">wiki link</ulink> + <para>Troubleshooting section can be found in the following <ulink url="http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheTroubleshooting">wiki link</ulink>. </para> </answer> </qandaentry> |
From: Manik S. <msu...@jb...> - 2006-07-07 17:46:03
|
User: msurtani Date: 06/07/07 13:45:19 Modified: docs/TreeCache/en Tag: Branch_JBossCache_1_4_0 master.xml Log: Updated docs for release of 1.4.0 Revision Changes Path No revision No revision 1.35.2.2 +2 -3 JBossCache/docs/TreeCache/en/master.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: master.xml =================================================================== RCS file: /cvsroot/jboss/JBossCache/docs/TreeCache/en/master.xml,v retrieving revision 1.35.2.1 retrieving revision 1.35.2.2 diff -u -b -r1.35.2.1 -r1.35.2.2 --- master.xml 23 Jun 2006 06:17:20 -0000 1.35.2.1 +++ master.xml 7 Jul 2006 17:45:19 -0000 1.35.2.2 @@ -22,9 +22,8 @@ <subtitle>User Documentation</subtitle> - <releaseinfo>Release 1.4.0 "Jalapeno"</releaseinfo> - <pubdate>May 2006</pubdate> - +<releaseinfo>Release 1.4.0 "Jalapeno"</releaseinfo> + <pubdate>July 2006</pubdate> <author> <firstname>Bela</firstname> |
From: Gurkan E. <gur...@ya...> - 2006-07-07 17:20:17
|
User: gurkanerdogdu Date: 06/07/07 13:20:14 Modified: cache/features/org.jboss.ide.eclipse.jbosscache.feature feature.xml Log: Revision Changes Path 1.5 +39 -18 jbosside/cache/features/org.jboss.ide.eclipse.jbosscache.feature/feature.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: feature.xml =================================================================== RCS file: /cvsroot/jboss/jbosside/cache/features/org.jboss.ide.eclipse.jbosscache.feature/feature.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- feature.xml 23 Mar 2006 11:16:50 -0000 1.4 +++ feature.xml 7 Jul 2006 17:20:14 -0000 1.5 @@ -441,123 +441,144 @@ id="org.jboss.ide.eclipse.jbosscache" download-size="0" install-size="0" - version="1.0.0"/> + version="0.0.0"/> <plugin id="org.eclipse.draw2d" download-size="0" install-size="0" - version="3.1.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.emf.common" download-size="0" install-size="0" - version="2.1.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.emf.ecore.xmi" download-size="0" install-size="0" - version="2.1.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.emf.ecore" download-size="0" install-size="0" - version="2.1.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.gef" download-size="0" install-size="0" - version="3.1.1" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jem.util" download-size="0" install-size="0" - version="1.1.0.1"/> + version="0.0.0"/> <plugin id="org.eclipse.wst.common.uriresolver" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.sse.core" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.sse.ui" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.validation" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.xml.core" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.xml.ui" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.apache.xerces" download-size="0" install-size="0" - version="2.7.0"/> + version="0.0.0"/> <plugin id="org.eclipse.wst.validation.ui" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.environment" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.frameworks" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.ui" download-size="0" install-size="0" - version="1.0.0" + version="0.0.0" + unpack="false"/> + + <plugin + id="org.eclipse.wst.common.frameworks.ui" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + + <plugin + id="org.eclipse.wst.common.core" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + + <plugin + id="org.eclipse.wst.common.project.facet.core" + download-size="0" + install-size="0" + version="0.0.0" unpack="false"/> </feature> |
From: Anil S. <ani...@jb...> - 2006-07-07 16:51:34
|
User: asaldhana Date: 06/07/07 12:51:32 Added: src/main/org/jboss/test/security/test/authorization XACMLEJBIntegrationUnitTest.java Log: JBAS-2673:XACMl integration with ejb layer testcase Revision Changes Path 1.1 date: 2006/07/07 16:51:32; author: asaldhana; state: Exp;jbosstest/src/main/org/jboss/test/security/test/authorization/XACMLEJBIntegrationUnitTest.java Index: XACMLEJBIntegrationUnitTest.java =================================================================== /* * JBoss, Home of Professional Open Source * Copyright 2005, JBoss Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt 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.test.authorization; import java.rmi.RemoteException; import javax.rmi.PortableRemoteObject; import javax.security.auth.login.LoginContext; import junit.extensions.TestSetup; import junit.framework.Test; import junit.framework.TestSuite; import org.jboss.test.JBossTestCase; import org.jboss.test.JBossTestSetup; import org.jboss.test.security.interfaces.StatelessSession; import org.jboss.test.security.interfaces.StatelessSessionHome; import org.jboss.test.util.AppCallbackHandler; //$Id: XACMLEJBIntegrationUnitTest.java,v 1.1 2006/07/07 16:51:32 asaldhana Exp $ /** * Unit tests for the XACML Integration of the EJB Layer * @author <a href="mailto:Ani...@jb...">Anil Saldhana</a> * @since Jul 6, 2006 * @version $Revision: 1.1 $ */ public class XACMLEJBIntegrationUnitTest extends JBossTestCase { static String username = "scott"; static char[] password = "echoman".toCharArray(); LoginContext lc; boolean loggedIn; private static String login_config = "security/authorization/xacml-ejb/app-policy-service.xml"; public XACMLEJBIntegrationUnitTest(String name) { super(name); } public static Test suite() throws Exception { TestSuite suite = new TestSuite(); suite.addTest(new TestSuite(XACMLEJBIntegrationUnitTest.class)); // Create an initializer for the test suite TestSetup wrapper = new JBossTestSetup(suite) { protected void setUp() throws Exception { super.setUp(); deploy("xacml-ejb.jar"); deploy(getResourceURL(login_config)); } protected void tearDown() throws Exception { undeploy(getResourceURL(login_config)); undeploy("xacml-ejb.jar"); super.tearDown(); } }; return wrapper; } /** Test that the echo method is accessible by an Echo role. Since the noop() method of the StatelessSession bean was not assigned any permissions it should be unchecked. */ public void testMethodAccess() throws Exception { log.debug("+++ testMethodAccess"); login(); Object obj = getInitialContext().lookup("spec.StatelessSession"); obj = PortableRemoteObject.narrow(obj, StatelessSessionHome.class); StatelessSessionHome home = (StatelessSessionHome) obj; log.debug("Found StatelessSessionHome"); StatelessSession bean = home.create(); log.debug("Created spec.StatelessSession"); log.debug("Bean.echo('Hello') -> "+bean.echo("Hello")); try { // This should not be allowed bean.noop(); fail("Was able to call StatelessSession.noop"); } catch(RemoteException e) { log.debug("StatelessSession.noop failed as expected"); } bean.remove(); logout(); } /** Login as user scott using the conf.name login config or 'spec-test' if conf.name is not defined. */ private void login() throws Exception { login(username, password); } private void login(String username, char[] password) throws Exception { if( loggedIn ) return; lc = null; String confName = System.getProperty("conf.name", "spec-test"); AppCallbackHandler handler = new AppCallbackHandler(username, password); log.debug("Creating LoginContext("+confName+")"); lc = new LoginContext(confName, handler); lc.login(); log.debug("Created LoginContext, subject="+lc.getSubject()); loggedIn = true; } private void logout() throws Exception { if( loggedIn ) { loggedIn = false; lc.logout(); } } } |
From: Anil S. <ani...@jb...> - 2006-07-07 16:50:04
|
User: asaldhana Date: 06/07/07 12:50:00 Added: src/main/org/jboss/security/authorization EJBResource.java Log: JBAS-2673: XACML Integration with ejb layer JBAS-3374: Authorization framework integration with ejb layer Revision Changes Path 1.1 date: 2006/07/07 16:50:00; author: asaldhana; state: Exp;jbosssx/src/main/org/jboss/security/authorization/EJBResource.java Index: EJBResource.java =================================================================== /* * JBoss, Home of Professional Open Source * Copyright 2005, JBoss Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt 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.authorization; import java.util.HashMap; import java.util.Map; //$Id: EJBResource.java,v 1.1 2006/07/07 16:50:00 asaldhana Exp $ /** * Represents an EJB Resource * @author <a href="mailto:Ani...@jb...">Anil Saldhana</a> * @since Jul 6, 2006 * @version $Revision: 1.1 $ */ public class EJBResource implements Resource { private Map map = new HashMap(); public EJBResource(Map map) { this.map = map; } public String getLayer() { return Resource.EJB; } public Map getMap() { return this.map; } } |
From: Anil S. <ani...@jb...> - 2006-07-07 16:50:04
|
User: asaldhana Date: 06/07/07 12:50:00 Added: src/main/org/jboss/security/authorization/modules/ejb EJBXACMLPolicyModuleHelper.java EJBXACMLUtil.java Log: JBAS-2673: XACML Integration with ejb layer JBAS-3374: Authorization framework integration with ejb layer Revision Changes Path 1.1 date: 2006/07/07 16:50:00; author: asaldhana; state: Exp;jbosssx/src/main/org/jboss/security/authorization/modules/ejb/EJBXACMLPolicyModuleHelper.java Index: EJBXACMLPolicyModuleHelper.java =================================================================== /* * JBoss, Home of Professional Open Source * Copyright 2005, JBoss Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt 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.authorization.modules.ejb; import java.lang.reflect.Method; import java.security.Principal; import java.util.Map; import javax.security.jacc.PolicyContext; import org.jboss.logging.Logger; import org.jboss.security.authorization.AuthorizationContext; import org.jboss.security.authorization.PolicyRegistration; import org.jboss.security.authorization.Resource; import org.jboss.security.authorization.modules.AuthorizationModuleHelper; import org.jboss.security.authorization.sunxacml.JBossXACMLUtil; import com.sun.xacml.Policy; import com.sun.xacml.ctx.RequestCtx; //$Id: EJBXACMLPolicyModuleHelper.java,v 1.1 2006/07/07 16:50:00 asaldhana Exp $ /** * Authorization Module Delegate that deals with the authorization decisions * for the EJB Layer * @author <a href="mailto:Ani...@jb...">Anil Saldhana</a> * @since Jul 6, 2006 * @version $Revision: 1.1 $ */ public class EJBXACMLPolicyModuleHelper extends AuthorizationModuleHelper { private static Logger log = Logger.getLogger(EJBXACMLPolicyModuleHelper.class); private boolean trace = log.isTraceEnabled(); private PolicyRegistration authzManager = null; private String ejbName = null; private Method ejbMethod = null; private Principal principal = null; /** * @see AuthorizationModuleHelper#authorize(Resource) */ public int authorize(Resource resource) { //Get the contextual map Map map = resource.getMap(); if(map == null) throw new IllegalStateException("Map from the Resource is null"); if(map.size() == 0) throw new IllegalStateException("Map from the Resource is size zero"); PolicyRegistration pr = (PolicyRegistration)map.get("authorizationManager"); if(pr != null) this.authzManager = pr; //Populate local variables from the resource this.ejbName = (String)map.get("ejb.name"); this.ejbMethod = (Method)map.get("ejb.method"); this.principal = (Principal)map.get("ejb.principal"); return process(); } /** * @see AuthorizationModuleHelper#setPolicyRegistrationManager(PolicyRegistration) */ public void setPolicyRegistrationManager(PolicyRegistration authzM) { this.authzManager = authzM; } //Private Methods /** * Process the web request * @param request * @param sc * @return */ private int process() { int result = AuthorizationContext.DENY; EJBXACMLUtil util = new EJBXACMLUtil(); try { RequestCtx requestCtx = util.createXACMLRequest(this.ejbName, this.ejbMethod.getName(),this.principal, this.authzManager); String contextID = PolicyContext.getContextID(); Policy policy = (Policy)authzManager.getPolicy(contextID,null); if(policy == null) { if(trace) log.trace("Policy obtained is null for contextID:"+contextID); throw new IllegalStateException("Missing xacml policy for contextid:"+contextID); } result = JBossXACMLUtil.checkXACMLAuthorization(requestCtx,policy); } catch(Exception e) { if(trace) log.trace("Exception in processing:",e); result = AuthorizationContext.DENY; } return result; } } 1.1 date: 2006/07/07 16:50:00; author: asaldhana; state: Exp;jbosssx/src/main/org/jboss/security/authorization/modules/ejb/EJBXACMLUtil.java Index: EJBXACMLUtil.java =================================================================== /* * JBoss, Home of Professional Open Source * Copyright 2005, JBoss Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt 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.authorization.modules.ejb; import java.io.ByteArrayOutputStream; import java.net.URI; import java.security.Principal; import java.security.acl.Group; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import javax.security.jacc.PolicyContext; import org.jboss.logging.Logger; import org.jboss.security.AuthorizationManager; import org.jboss.security.SimplePrincipal; import com.sun.xacml.Indenter; import com.sun.xacml.attr.StringAttribute; import com.sun.xacml.attr.TimeAttribute; import com.sun.xacml.ctx.Attribute; import com.sun.xacml.ctx.RequestCtx; import com.sun.xacml.ctx.Subject; //$Id: EJBXACMLUtil.java,v 1.1 2006/07/07 16:50:00 asaldhana Exp $ /** * Utility class for the XACML Integration for the EJB Layer * @author <a href="mailto:Ani...@jb...">Anil Saldhana</a> * @since Jul 6, 2006 * @version $Revision: 1.1 $ */ public class EJBXACMLUtil { private static Logger log = Logger.getLogger(EJBXACMLUtil.class); private boolean trace = log.isTraceEnabled(); public EJBXACMLUtil() { } public RequestCtx createXACMLRequest(String ejbName, String methodName, Principal principal, AuthorizationManager authzManager) throws Exception { String action = methodName; RequestCtx requestCtx = null; String username = getUserName(); //Get the roles from the authorization manager Set roles = authzManager.getUserRoles(principal); //Create the subject set URI subjectAttrUri = new URI("urn:oasis:names:tc:xacml:1.0:subject:subject-id"); Attribute subjectAttr = new Attribute(subjectAttrUri,null,null, new StringAttribute(username)); Set subjectAttrSet = new HashSet(); subjectAttrSet.add(subjectAttr); subjectAttrSet.addAll(getXACMLRoleSet(roles)); Set subjectSet = new HashSet(); subjectSet.add(new Subject(subjectAttrSet)); //Create the resource set URI resourceUri = new URI("urn:oasis:names:tc:xacml:1.0:resource:resource-id"); Attribute resourceAttr = new Attribute(resourceUri,null,null, new StringAttribute(ejbName)); Set resourceSet = new HashSet(); resourceSet.add(resourceAttr); //Create the action set Set actionSet = new HashSet(); actionSet.add(new Attribute(new URI("urn:oasis:names:tc:xacml:1.0:action:action-id"), null,null, new StringAttribute(action))); //TODO: Get hold of the invocation arguments and populate in the xacml request //Create the Environment set Set environSet = new HashSet(); //Current time URI currentTimeUri = new URI("urn:oasis:names:tc:xacml:1.0:environment:current-time"); Attribute currentTimeAttr = new Attribute(currentTimeUri,null,null, new TimeAttribute()); environSet.add(currentTimeAttr); //Create the request context requestCtx = new RequestCtx(subjectSet,resourceSet,actionSet,environSet); if(trace) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); requestCtx.encode(baos, new Indenter()); log.trace("XACML Request:"+baos.toString()); baos.close(); } return requestCtx; } private Set getXACMLRoleSet(Set roles) throws Exception { URI roleURI = new URI("urn:oasis:names:tc:xacml:2.0:example:attribute:role"); Set roleset = new HashSet(); Iterator iter = roles != null ? roles.iterator(): null; while(iter != null && iter.hasNext()) { Principal role = (Principal)iter.next(); if(role instanceof SimplePrincipal) { SimplePrincipal sp = (SimplePrincipal)role; Attribute roleAttr = new Attribute(roleURI,null,null, new StringAttribute(sp.getName())); roleset.add(roleAttr); } } return roleset; } private String getUserName() throws Exception { String user = ""; String key = "javax.security.auth.Subject.container"; javax.security.auth.Subject caller = (javax.security.auth.Subject) PolicyContext.getContext(key); Iterator iter = caller.getPrincipals().iterator(); while(iter.hasNext()) { Principal p = (Principal)iter.next(); if(p instanceof SimplePrincipal && !(p instanceof Group)) { SimplePrincipal sp = (SimplePrincipal)p; user= sp.getName(); } } return user; } } |
From: Anil S. <ani...@jb...> - 2006-07-07 16:48:01
|
User: asaldhana Date: 06/07/07 12:47:59 Modified: imports/sections security.xml Log: JBAS-2673: build the artifiact for the xacml integration with ejb layer testcase Revision Changes Path 1.9 +18 -0 jbosstest/imports/sections/security.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: security.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/imports/sections/security.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- security.xml 5 Jul 2006 18:59:22 -0000 1.8 +++ security.xml 7 Jul 2006 16:47:59 -0000 1.9 @@ -310,5 +310,23 @@ <include name="deepcopy.war" /> </fileset> </ear> + + <!-- xacml-ejb.jar --> + <jar destfile="${build.lib}/xacml-ejb.jar"> + <metainf dir="${build.resources}/security/authorization/xacml-ejb/META-INF"> + <include name="ejb-jar.xml" /> + <include name="jboss.xml" /> + <include name="jboss-xacml-policy.xml" /> + </metainf> + <fileset dir="${build.classes}"> + <include name="org/jboss/test/security/ejb/StatelessSessionBean4.*"/> + <include name="org/jboss/test/security/ejb/StatefulSessionBean.*"/> + <include name="org/jboss/test/security/interfaces/Stateless*"/> + </fileset> + <fileset dir="${build.resources}/security-spec"> + <include name="users.properties"/> + <include name="roles.properties"/> + </fileset> + </jar> </target> </project> |
From: Anil S. <ani...@jb...> - 2006-07-07 16:47:12
|
User: asaldhana Date: 06/07/07 12:47:07 Added: src/resources/security/authorization/xacml-ejb/META-INF ejb-jar.xml jboss-xacml-policy.xml jboss.xml Log: JBAS-2673: Resources for the test for xacml integration with ejb JBAS-3374: Authorization Framework integration with ejb layer test resources Revision Changes Path 1.1 date: 2006/07/07 16:47:07; author: asaldhana; state: Exp;jbosstest/src/resources/security/authorization/xacml-ejb/META-INF/ejb-jar.xml Index: ejb-jar.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1"> <enterprise-beans> <session> <description>A secured stateless session bean</description> <ejb-name>StatelessSession</ejb-name> <home>org.jboss.test.security.interfaces.StatelessSessionHome</home> <remote>org.jboss.test.security.interfaces.StatelessSession</remote> <ejb-class>org.jboss.test.security.ejb.StatelessSessionBean4</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> </session> </enterprise-beans> <assembly-descriptor> <security-role> <role-name>CallerInfoFacadeRole</role-name> </security-role> <security-role> <role-name>CallerInfoStatelessRole</role-name> </security-role> <security-role> <role-name>CallerInfoStatefulRole</role-name> </security-role> <security-role> <role-name>CallerInfoEntityRole</role-name> </security-role> <method-permission> <role-name>CallerInfoStatelessRole</role-name> <method> <ejb-name>StatelessSession</ejb-name> <method-name>*</method-name> </method> </method-permission> </assembly-descriptor> </ejb-jar> 1.1 date: 2006/07/07 16:47:07; author: asaldhana; state: Exp;jbosstest/src/resources/security/authorization/xacml-ejb/META-INF/jboss-xacml-policy.xml Index: jboss-xacml-policy.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <Policy xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xacml:2.0:policy:schema:os access_control-xacml-2.0-policy-schema-os.xsd" PolicyId="urn:oasis:names:tc:xacml:2.0:jboss-test:XV:policy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:deny-overrides"> <Description> Policy for Subject RBAC</Description> <Target/> <Rule RuleId="urn:oasis:names:tc:xacml:2.0:jboss-test:XVI:rule" Effect="Permit"> <Description> scott can create,remove and invoke echo method of StatelessSession EJB when he has a role of ProjectUser </Description> <Target> <Subjects> <Subject> <SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">scott</AttributeValue> <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </SubjectMatch> <SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">ProjectUser</AttributeValue> <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:example:attribute:role" DataType="http://www.w3.org/2001/XMLSchema#string"/> </SubjectMatch> </Subject> </Subjects> <Resources> <Resource> <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">StatelessSession</AttributeValue> <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ResourceMatch> </Resource> </Resources> <Actions> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">create</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> </Action> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">remove</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> </Action> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">echo</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> </Action> </Actions> </Target> </Rule> </Policy> 1.1 date: 2006/07/07 16:47:07; author: asaldhana; state: Exp;jbosstest/src/resources/security/authorization/xacml-ejb/META-INF/jboss.xml Index: jboss.xml =================================================================== <?xml version="1.0"?> <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> <jboss> <security-domain>java:/jaas/xacml-test</security-domain> <enterprise-beans> <session> <ejb-name>StatelessSession</ejb-name> <jndi-name>spec.StatelessSession</jndi-name> <configuration-name>Standard Stateless SessionBean With SecurityAuthorizationInterceptor</configuration-name> </session> </enterprise-beans> <container-configurations> <container-configuration> <container-name>Standard Stateless SessionBean With SecurityAuthorizationInterceptor</container-name> <call-logging>false</call-logging> <invoker-proxy-binding-name>stateless-unified-invoker</invoker-proxy-binding-name> <container-interceptors> <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.JaasAuthenticationInterceptor</interceptor> <interceptor>org.jboss.ejb.plugins.SecurityAuthorizationInterceptor</interceptor> <!-- CMT --> <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor> <interceptor transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor> <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> <interceptor transaction="Container">org.jboss.ws.server.ServiceEndpointInterceptor</interceptor> <interceptor transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor> <!-- BMT --> <interceptor transaction="Bean">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor> <interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor> <interceptor transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor> <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> <interceptor transaction="Bean">org.jboss.ws.server.ServiceEndpointInterceptor</interceptor> <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor> </container-interceptors> <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool> <instance-cache></instance-cache> <persistence-manager></persistence-manager> <container-pool-conf> <MaximumSize>100</MaximumSize> </container-pool-conf> </container-configuration> </container-configurations> </jboss> |
From: Anil S. <ani...@jb...> - 2006-07-07 16:47:10
|
User: asaldhana Date: 06/07/07 12:47:06 Added: src/resources/security/authorization/xacml-ejb app-policy-service.xml Log: JBAS-2673: Resources for the test for xacml integration with ejb JBAS-3374: Authorization Framework integration with ejb layer test resources Revision Changes Path 1.1 date: 2006/07/07 16:47:05; author: asaldhana; state: Exp;jbosstest/src/resources/security/authorization/xacml-ejb/app-policy-service.xml Index: app-policy-service.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <server> <!-- The custom configuration service that installs a Configuration capable of dynamically updating the config settings --> <mbean code="org.jboss.security.auth.login.DynamicLoginConfig" name="jboss.security.tests:service=DynamicLoginConfig"> <attribute name="PolicyConfig" serialDataType="jbxb"> <jbsx:policy xsi:schemaLocation="urn:jboss:security-config:5.0 resource:security-config_5_0.xsd" xmlns:jbsx="urn:jboss:security-config:5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <jbsx:application-policy name="xacml-test"> <jbsx:authentication> <jbsx:login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required"/> </jbsx:authentication> <jbsx:authorization> <jbsx:policy-module code="org.jboss.security.authorization.modules.XACMLAuthorizationModule" flag="required" /> </jbsx:authorization> </jbsx:application-policy> </jbsx:policy> </attribute> <depends optional-attribute-name="LoginConfigService"> jboss.security:service=XMLLoginConfig </depends> <depends optional-attribute-name="SecurityManagerService"> jboss.security:service=JaasSecurityManager </depends> </mbean> </server> |
From: Anil S. <ani...@jb...> - 2006-07-07 16:45:31
|
User: asaldhana Date: 06/07/07 12:45:28 Log: Directory /cvsroot/jboss/jbosstest/src/resources/security/authorization/xacml-ejb/META-INF added to the repository |
From: Anil S. <ani...@jb...> - 2006-07-07 16:45:18
|
User: asaldhana Date: 06/07/07 12:45:17 Log: Directory /cvsroot/jboss/jbosstest/src/resources/security/authorization/xacml-ejb added to the repository |
From: Anil S. <ani...@jb...> - 2006-07-07 16:45:05
|
User: asaldhana Date: 06/07/07 12:45:00 Added: src/resources/web/xacml/subjectRole/WEB-INF jboss-xacml-policy.xml Removed: src/resources/web/xacml/subjectRole/WEB-INF xacml-policy.xml Log: JBAS-2673: Replace the xacml policy files Revision Changes Path 1.1 date: 2006/07/07 16:44:59; author: asaldhana; state: Exp;jbosstest/src/resources/web/xacml/subjectRole/WEB-INF/jboss-xacml-policy.xml Index: jboss-xacml-policy.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <Policy xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xacml:2.0:policy:schema:os access_control-xacml-2.0-policy-schema-os.xsd" PolicyId="urn:oasis:names:tc:xacml:2.0:jboss-test:XV:policy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:deny-overrides"> <Description> Policy for Subject RBAC</Description> <Target/> <Rule RuleId="urn:oasis:names:tc:xacml:2.0:jboss-test:XVI:rule" Effect="Permit"> <Description> jduke can read or write resource information when he has a role of ServletUserRole </Description> <Target> <Subjects> <Subject> <SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">jduke</AttributeValue> <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </SubjectMatch> <SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">ServletUserRole</AttributeValue> <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:example:attribute:role" DataType="http://www.w3.org/2001/XMLSchema#string"/> </SubjectMatch> </Subject> </Subjects> <Resources> <Resource> <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">/xacml-subjectrole/test</AttributeValue> <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#anyURI"/> </ResourceMatch> </Resource> </Resources> <Actions> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> </Action> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">write</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> </Action> </Actions> </Target> </Rule> </Policy> |
From: Anil S. <ani...@jb...> - 2006-07-07 16:45:01
|
User: asaldhana Date: 06/07/07 12:44:59 Added: src/resources/web/xacml/requestAttrib/WEB-INF jboss-xacml-policy.xml Removed: src/resources/web/xacml/requestAttrib/WEB-INF xacml-policy.xml Log: JBAS-2673: Replace the xacml policy files Revision Changes Path 1.1 date: 2006/07/07 16:44:59; author: asaldhana; state: Exp;jbosstest/src/resources/web/xacml/requestAttrib/WEB-INF/jboss-xacml-policy.xml Index: jboss-xacml-policy.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <Policy xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xacml:2.0:policy:schema:os access_control-xacml-2.0-policy-schema-os.xsd" PolicyId="urn:oasis:names:tc:xacml:2.0:jboss-test:XV:policy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:deny-overrides"> <Description> Policy for Test XVII. </Description> <Target/> <Rule RuleId="urn:oasis:names:tc:xacml:2.0:jboss-test:XVI:rule" Effect="Permit"> <Description> jduke can read or write resource information when the request parameter "status" in Action has a value "employed" </Description> <Target> <Subjects> <Subject> <SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">jduke</AttributeValue> <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </SubjectMatch> </Subject> </Subjects> <Resources> <Resource> <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">/xacml-requestattrib/test</AttributeValue> <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#anyURI"/> </ResourceMatch> </Resource> </Resources> <Actions> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">employed</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:request-param:attribute:status" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> </Action> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">write</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">employed</AttributeValue> <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:request-param:attribute:status" DataType="http://www.w3.org/2001/XMLSchema#string"/> </ActionMatch> </Action> </Actions> </Target> </Rule> </Policy> |
From: Anil S. <ani...@jb...> - 2006-07-07 16:42:29
|
User: asaldhana Date: 06/07/07 12:42:28 Modified: src/main/org/jboss/web/tomcat/security/authorization WebXACMLPolicyModuleHelper.java Log: JBAS-3373: Do not override injected authorization manager if one is not available via context map Revision Changes Path 1.3 +6 -5 jboss-tomcat/src/main/org/jboss/web/tomcat/security/authorization/WebXACMLPolicyModuleHelper.java (In the diff below, changes in quantity of whitespace are not shown.) Index: WebXACMLPolicyModuleHelper.java =================================================================== RCS file: /cvsroot/jboss/jboss-tomcat/src/main/org/jboss/web/tomcat/security/authorization/WebXACMLPolicyModuleHelper.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- WebXACMLPolicyModuleHelper.java 28 Jun 2006 02:17:42 -0000 1.2 +++ WebXACMLPolicyModuleHelper.java 7 Jul 2006 16:42:28 -0000 1.3 @@ -36,16 +36,15 @@ import com.sun.xacml.Policy; import com.sun.xacml.ctx.RequestCtx; -import com.sun.xacml.ctx.ResponseCtx; -//$Id: WebXACMLPolicyModuleHelper.java,v 1.2 2006/06/28 02:17:42 asaldhana Exp $ +//$Id: WebXACMLPolicyModuleHelper.java,v 1.3 2006/07/07 16:42:28 asaldhana Exp $ /** * XACML based authorization module helper that deals with the web layer * authorization decisions * @author <a href="mailto:Ani...@jb...">Anil Saldhana</a> * @since Jun 13, 2006 - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class WebXACMLPolicyModuleHelper extends AuthorizationModuleHelper { @@ -73,7 +72,9 @@ //Get the Catalina Request Object Request request = (Request)map.get("catalina.request"); SecurityConstraint[] constraints = (SecurityConstraint[])map.get("catalina.constraints"); - this.authzManager = (PolicyRegistration)map.get("authorizationManager"); + PolicyRegistration pr = (PolicyRegistration)map.get("authorizationManager"); + if(pr != null) + this.authzManager = pr; return process(request, constraints); } |
From: Anil S. <ani...@jb...> - 2006-07-07 16:41:29
|
User: asaldhana Date: 06/07/07 12:41:25 Modified: src/main/org/jboss/web/tomcat/tc6 TomcatDeployer.java Log: JBAS-2673: replace the default xacml policy file for a web app and remove the private method to deprefix security domain Revision Changes Path 1.3 +4 -20 jboss-tomcat/src/main/org/jboss/web/tomcat/tc6/TomcatDeployer.java (In the diff below, changes in quantity of whitespace are not shown.) Index: TomcatDeployer.java =================================================================== RCS file: /cvsroot/jboss/jboss-tomcat/src/main/org/jboss/web/tomcat/tc6/TomcatDeployer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- TomcatDeployer.java 28 Jun 2006 02:18:36 -0000 1.2 +++ TomcatDeployer.java 7 Jul 2006 16:41:25 -0000 1.3 @@ -45,6 +45,7 @@ import org.jboss.deployment.DeploymentInfo; import org.jboss.metadata.WebMetaData; import org.jboss.security.AuthorizationManager; +import org.jboss.security.Util; import org.jboss.security.authorization.PolicyRegistration; import org.jboss.security.plugins.AuthorizationManagerServiceMBean; import org.jboss.web.AbstractWebContainer; @@ -62,7 +63,7 @@ * * @author Sco...@jb... * @author Costin Manolache - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class TomcatDeployer extends AbstractWebDeployer { @@ -74,7 +75,7 @@ /** * Optional XACML Policy File */ - private static final String XACML_POLICY_FILE = "WEB-INF/xacml-policy.xml"; + private static final String XACML_POLICY_FILE = "WEB-INF/jboss-xacml-policy.xml"; private DeployerConfig config; private String[] javaVMs = @@ -385,7 +386,7 @@ if(metaData.getSecurityDomain() != null) { - String secDomain = getUnprefixedSecurityDomain(metaData.getSecurityDomain()); + String secDomain = Util.unprefixSecurityDomain(metaData.getSecurityDomain()); //Associate the Context Id with the Security Domain String contextID = metaData.getJaccContextID(); mapSecurityDomain(secDomain, contextID); @@ -608,21 +609,4 @@ log.error("mapSecurityDomain::" + me.getLocalizedMessage()); } } - - /** - * Strip the security domain of prefix (java:jaas or java:jbsx) - * @param securityDomain - * @return - */ - private String getUnprefixedSecurityDomain(String securityDomain) - { - String result = ""; - if(securityDomain.startsWith("java:/jaas")) - result = securityDomain.substring("java:/jaas/".length()); - else - if(securityDomain.startsWith("java:/jbsx")) - result = securityDomain.substring("java:/jbsx/".length()); - return result; - - } } |
From: Anil S. <ani...@jb...> - 2006-07-07 16:38:46
|
User: asaldhana Date: 06/07/07 12:38:41 Modified: src/main/org/jboss/web AbstractWebDeployer.java Log: JBAS-2673: Unregister any xacml policies during undeployment Revision Changes Path 1.31 +23 -15 jboss/src/main/org/jboss/web/AbstractWebDeployer.java (In the diff below, changes in quantity of whitespace are not shown.) Index: AbstractWebDeployer.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebDeployer.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -b -r1.30 -r1.31 --- AbstractWebDeployer.java 30 Oct 2005 00:04:20 -0000 1.30 +++ AbstractWebDeployer.java 7 Jul 2006 16:38:41 -0000 1.31 @@ -25,11 +25,8 @@ import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; -import java.util.Map; import java.util.Set; import java.security.Policy; import javax.management.MBeanServer; @@ -40,9 +37,6 @@ import javax.security.jacc.PolicyConfiguration; import javax.security.jacc.PolicyConfigurationFactory; import javax.security.jacc.PolicyContextException; -import javax.security.jacc.WebResourcePermission; -import javax.security.jacc.WebUserDataPermission; -import javax.security.jacc.WebRoleRefPermission; import org.jboss.deployment.DeploymentException; import org.jboss.deployment.DeploymentInfo; @@ -58,12 +52,13 @@ import org.jboss.metadata.ResourceEnvRefMetaData; import org.jboss.metadata.ResourceRefMetaData; import org.jboss.metadata.WebMetaData; -import org.jboss.metadata.WebSecurityMetaData; -import org.jboss.metadata.SecurityRoleRefMetaData; -import org.jboss.metadata.WebSecurityMetaData.WebResourceCollection; import org.jboss.mx.loading.LoaderRepositoryFactory; +import org.jboss.mx.util.MBeanProxyExt; import org.jboss.naming.NonSerializableFactory; import org.jboss.naming.Util; +import org.jboss.security.AuthorizationManager; +import org.jboss.security.authorization.PolicyRegistration; +import org.jboss.security.plugins.AuthorizationManagerServiceMBean; import org.jboss.web.AbstractWebContainer.WebDescriptorParser; import org.jboss.webservice.WebServiceClientHandler; import org.omg.CORBA.ORB; @@ -161,7 +156,7 @@ extends="org.jboss.deployment.SubDeployerMBean" @author Sco...@jb... -@version $Revision: 1.30 $ +@version $Revision: 1.31 $ */ public abstract class AbstractWebDeployer { @@ -441,12 +436,25 @@ { WebApplication webApp = (WebApplication) di.context.get(AbstractWebContainer.WEB_APP); performUndeploy(warUrl, webApp); - // Unegister the permissions with the JACC layer + // Unregister the permissions with the JACC layer WebMetaData webMetaData = (WebMetaData) di.metaData; String contextID = webMetaData.getJaccContextID(); PolicyConfigurationFactory pcFactory = PolicyConfigurationFactory.getPolicyConfigurationFactory(); PolicyConfiguration pc = pcFactory.getPolicyConfiguration(contextID, true); pc.delete(); + //Unregister any xacml policies + String prefixedSecurityDomain = webApp.getMetaData().getSecurityDomain(); + String securityDomain = org.jboss.security.Util.unprefixSecurityDomain(prefixedSecurityDomain); + AuthorizationManagerServiceMBean authorizationManager = (AuthorizationManagerServiceMBean) + MBeanProxyExt.create(AuthorizationManagerServiceMBean.class, + AuthorizationManagerServiceMBean.OBJECT_NAME, + server); + AuthorizationManager authzmgr = authorizationManager.getAuthorizationManager(securityDomain); + if(authzmgr instanceof PolicyRegistration) + { + PolicyRegistration xam = (PolicyRegistration)authzmgr; + xam.deRegisterPolicy(contextID); + } } catch (DeploymentException e) { |