<?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>
      <ejb-name>RoleSecuredSLSB</ejb-name>
      <home>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationHome</home>
      <remote>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationRemote</remote>
      <service-endpoint>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationService</service-endpoint>
      <ejb-class>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationImpl</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <security-role-ref>
        <role-name>friend</role-name>
      </security-role-ref>
    </session>
    <session>
      <ejb-name>BasicSecuredSLSB</ejb-name>
      <home>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationHome</home>
      <remote>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationRemote</remote>
      <service-endpoint>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationService</service-endpoint>
      <ejb-class>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationImpl</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
    </session>
    <session>
      <ejb-name>ConfidentialSLSB</ejb-name>
      <home>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationHome</home>
      <remote>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationRemote</remote>
      <service-endpoint>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationService</service-endpoint>
      <ejb-class>org.jboss.test.ws.jaxrpc.samples.secureejb.OrganizationImpl</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
    </session>
  </enterprise-beans>

  <assembly-descriptor>
    <security-role>
      <role-name>friend</role-name>
    </security-role>
    <method-permission>
      <role-name>friend</role-name>
      <method>
        <ejb-name>RoleSecuredSLSB</ejb-name>
        <method-name>*</method-name>
      </method>
    </method-permission>
    <method-permission>
      <unchecked/>
      <method>
        <ejb-name>BasicSecuredSLSB</ejb-name>
        <method-name>*</method-name>
      </method>
    </method-permission>
    <method-permission>
      <unchecked/>
      <method>
        <ejb-name>ConfidentialSLSB</ejb-name>
        <method-name>*</method-name>
      </method>
    </method-permission>
  </assembly-descriptor>

</ejb-jar>
