jboss-ejb-security_1_1.xsd 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2013, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:security:1.1"
  25. xmlns="urn:security:1.1"
  26. xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  27. elementFormDefault="qualified"
  28. attributeFormDefault="unqualified"
  29. version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  30. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd">
  31. <xs:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd"/>
  32. <xs:element name="security" type="securityType" substitutionGroup="javaee:assembly-descriptor-entry"/>
  33. <xs:complexType name="securityType">
  34. <xs:complexContent>
  35. <xs:extension base="javaee:jboss-assembly-descriptor-bean-entryType">
  36. <xs:sequence>
  37. <xs:element name="security-domain" type="xs:string"/>
  38. <xs:element name="run-as-principal" type="xs:string"/>
  39. <xs:element name="missing-method-permissions-deny-access" type="xs:boolean">
  40. <xs:annotation>
  41. <xs:documentation>
  42. <![CDATA[
  43. If a EJB is secured but certain methods haven't been marked with explicit roles or @PermitAll/@DenyAll
  44. then the EJB container uses this missing-method-permissions-deny-access element to decide whether or not
  45. access is allowed to such methods.
  46. Setting this element to true will prevent access to this by any role (i.e.
  47. the method is as good as being marked as @DenyAll).
  48. Setting this element to false will allow access to this method by any role (i.e. the method is as
  49. good as being marked as @PemitAll)
  50. ]]>
  51. </xs:documentation>
  52. </xs:annotation>
  53. </xs:element>
  54. </xs:sequence>
  55. </xs:extension>
  56. </xs:complexContent>
  57. </xs:complexType>
  58. </xs:schema>