User: user57  
  Date: 01/08/26 21:48:24

  Added:       src/resources/security-proxy/META-INF ejb-jar.xml jboss.xml
  Log:
   o Integrated the testsuite module with the new build system.
  
  Revision  Changes    Path
  1.1                  jbosstest/src/resources/security-proxy/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===================================================================
  <?xml version="1.0"?>
  <!DOCTYPE ejb-jar PUBLIC
        "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
        "http://java.sun.com/dtd/ejb-jar_2_0.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-proxy/META-INF/jboss.xml
  
  Index: jboss.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

Reply via email to