User: starksm
Date: 01/06/12 21:54:06
Modified: src/resources/security/META-INF ejb-jar.xml jboss-spec.xml
jboss.xml
Added: src/resources/security/META-INF ejb-jar-proxy.xml
jboss-proxy.xml
Log:
Update for custom security proxy tests
Revision Changes Path
1.5 +0 -4 jbosstest/src/resources/security/META-INF/ejb-jar.xml
Index: ejb-jar.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/resources/security/META-INF/ejb-jar.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ejb-jar.xml 2001/06/12 07:58:41 1.4
+++ ejb-jar.xml 2001/06/13 04:54:06 1.5
@@ -102,10 +102,6 @@
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
- <security-role-ref>
- <role-name>Echo</role-name>
- <role-link>Echo</role-link>
- </security-role-ref>
</entity>
</enterprise-beans>
1.4 +2 -1 jbosstest/src/resources/security/META-INF/jboss-spec.xml
Index: jboss-spec.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/resources/security/META-INF/jboss-spec.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jboss-spec.xml 2001/05/22 03:20:24 1.3
+++ jboss-spec.xml 2001/06/13 04:54:06 1.4
@@ -82,7 +82,8 @@
<ejb-ref>
<ejb-ref-name>ejb/Session</ejb-ref-name>
<jndi-name>spec.StatelessSession</jndi-name>
- </ejb-ref> </session>
+ </ejb-ref>
+ </session>
</enterprise-beans>
</jboss>
1.2 +12 -10 jbosstest/src/resources/security/META-INF/jboss.xml
Index: jboss.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/resources/security/META-INF/jboss.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jboss.xml 2001/03/05 10:11:45 1.1
+++ jboss.xml 2001/06/13 04:54:06 1.2
@@ -2,16 +2,18 @@
<!-- The jboss.xml descriptor for the security.jar ejb unit -->
<jboss>
- <security-domain>test-domain</security-domain>
+ <security-domain>test-domain</security-domain>
- <container-configurations>
- <container-configuration>
- <container-name>Standard Stateless SessionBean</container-name>
- <role-mapping-manager>java:/jaas/simple</role-mapping-manager>
-
<authentication-module>java:/jaas/simple</authentication-module>
- </container-configuration>
-
+ <container-configurations>
+ <!-- Override the global security domain to have all standard stateless
+ session beans secured by the 'simple' domain.
+ -->
+ <container-configuration>
+ <container-name>Standard Stateless SessionBean</container-name>
+ <security-domain>java:/jaas/simple</security-domain>
+ </container-configuration>
+ <!-- Define an unsecured stateless session container config -->
<container-configuration>
<container-name>Unsecure Stateless SessionBean</container-name>
<call-logging>false</call-logging>
@@ -42,9 +44,9 @@
</container-pool-conf>
</container-configuration>
- </container-configurations>
+ </container-configurations>
- <enterprise-beans>
+ <enterprise-beans>
<session>
<ejb-name>ProjRepository</ejb-name>
<configuration-name>Standard Stateful SessionBean</configuration-name>
1.1 jbosstest/src/resources/security/META-INF/ejb-jar-proxy.xml
Index: ejb-jar-proxy.xml
===================================================================
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
"http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<display-name>Custom Proxy Security Tests</display-name>
<enterprise-beans>
<!-- Custom security proxy beans -->
<session>
<description>A secured session bean with read/write methods</description>
<ejb-name>ProxiedStatelessBean</ejb-name>
<home>org.jboss.test.security.interfaces.IOSessionHome</home>
<remote>org.jboss.test.security.interfaces.IOSession</remote>
<ejb-class>org.jboss.test.security.ejb.IOStatelessSessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session>
<description>A secured session bean with read/write methods</description>
<ejb-name>ProxiedStatefulBean</ejb-name>
<home>org.jboss.test.security.interfaces.IOSessionHome</home>
<remote>org.jboss.test.security.interfaces.IOSession</remote>
<ejb-class>org.jboss.test.security.ejb.IOStatefulSessionBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
<entity>
<description>A trival echo entity bean</description>
<ejb-name>ProxiedEntityBean</ejb-name>
<home>org.jboss.test.security.interfaces.EntityHome</home>
<remote>org.jboss.test.security.interfaces.Entity</remote>
<ejb-class>org.jboss.test.security.ejb.EntityBeanImpl</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
<assembly-descriptor>
<security-role>
<description>The role required to invoke the echo method</description>
<role-name>Echo</role-name>
</security-role>
<!-- The methods the Echo role can access -->
<method-permission>
<role-name>Echo</role-name>
<method>
<ejb-name>ProxiedEntityBean</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
<!-- Anyone authorized user can access the ProxiedStatelessBean and
ProxiedStatefulBean beans in terms of declarative roles. The real
security checks are performed at the custom security proxy layer.
-->
<method-permission>
<unchecked/>
<method>
<ejb-name>ProxiedStatelessBean</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>ProxiedStatefulBean</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
</assembly-descriptor>
</ejb-jar>
1.1 jbosstest/src/resources/security/META-INF/jboss-proxy.xml
Index: jboss-proxy.xml
===================================================================
<?xml version="1.0"?>
<!-- The jboss.xml descriptor for the security-proxy.jar ejb unit tests -->
<jboss>
<security-domain>java:/jaas/proxy-test</security-domain>
<enterprise-beans>
<session>
<ejb-name>ProxiedStatelessBean</ejb-name>
<security-proxy>org.jboss.test.security.proxy.SessionSecurityProxy</security-proxy>
</session>
<session>
<ejb-name>ProxiedStatefulBean</ejb-name>
<security-proxy>org.jboss.test.security.proxy.SessionSecurityProxy</security-proxy>
</session>
<entity>
<ejb-name>ProxiedEntityBean</ejb-name>
<security-proxy>org.jboss.test.security.proxy.EntitySecurityProxy</security-proxy>
</entity>
</enterprise-beans>
</jboss>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development