jboss-ejb-iiop_1_0.xsd 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright (c) 2011, 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="urn:iiop" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  24. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  25. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  26. attributeFormDefault="unqualified" elementFormDefault="qualified"
  27. targetNamespace="urn:iiop" version="1.0"
  28. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd">
  29. <xs:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd"/>
  30. <xs:element name="iiop" type="iiopConfigType" substitutionGroup="javaee:assembly-descriptor-entry"/>
  31. <xs:complexType name="iiopConfigType">
  32. <xs:complexContent>
  33. <xs:extension base="javaee:jboss-assembly-descriptor-bean-entryType">
  34. <xs:annotation>
  35. <xs:documentation>
  36. <![CDATA[
  37. The iiop element contains the IIOP settings that are to be applied to an EJB. It must identify the
  38. bean to which the settings apply via the ejb-name sub-element. A wildcard "*" is allowed to convey
  39. that the settings are to be applied to all EJBs in the deployment.
  40. The binding-name sub-element can be used to specify the name that must be used to bind the EJB IOR
  41. in the COSNaming service. If a wildcard "*" is used as bean-name, this setting is ignored.
  42. The ior-security-config sub-element contains the security settings that are to be inserted into the
  43. EJB IOR. These include transport config requirements, authentication service settings, and secure
  44. attribute service settings. If a wildcard "*" is used as bean-name, the IOR settings will be applied
  45. to all beans in the deployment, except for the ones that override these settings in their own iiop
  46. element.
  47. ]]>
  48. </xs:documentation>
  49. </xs:annotation>
  50. <xs:sequence>
  51. <xs:element name="ejb-name" type="javaee:ejb-nameType" minOccurs="1" maxOccurs="1"/>
  52. <xs:element name="binding-name" type="xs:string" minOccurs="0" maxOccurs="1"/>
  53. <xs:element name="ior-security-config" type="iorSecurityConfigType"/>
  54. </xs:sequence>
  55. </xs:extension>
  56. </xs:complexContent>
  57. </xs:complexType>
  58. <xs:complexType name="iorSecurityConfigType">
  59. <xs:annotation>
  60. <xs:documentation>
  61. <![CDATA[
  62. The iorSecurityConfigType specifies the elements that can be used to configure security constraints of IIOP
  63. enabled EJB3 beans.
  64. - transport-config: contains the attributes that are used to specify the transport security requirements.
  65. - as-context: contains the attributes that are used to configure the authentication service (AS) context.
  66. - sas-context: contains the attributes that are used to configure the security attribute service (SAS) context.
  67. ]]>
  68. </xs:documentation>
  69. </xs:annotation>
  70. <xs:sequence>
  71. <xs:element name="transport-config" type="iorTransportConfigType" minOccurs="0" maxOccurs="1"/>
  72. <xs:element name="as-context" type="iorASContextType" minOccurs="0" maxOccurs="1"/>
  73. <xs:element name="sas-context" type="iorSASContextType" minOccurs="0" maxOccurs="1"/>
  74. </xs:sequence>
  75. </xs:complexType>
  76. <xs:complexType name="iorTransportConfigType">
  77. <xs:annotation>
  78. <xs:documentation>
  79. <![CDATA[
  80. The iorTransportConfigType specifies attributes that can be used to configure the transport requirements of
  81. an IIOP enabled EJB3 bean.
  82. * integrity: indicates if the server (target) supports integrity protected messages. The valid values are
  83. NONE, SUPPORTED or REQUIRED.
  84. * confidentiality: indicates if the server (target) supports privacy protected messages. The values are
  85. NONE, SUPPORTED or REQUIRED.
  86. * detect-misordering: indicates if the server (target) supports detection of message sequence errors. The
  87. values are NONE, SUPPORTED or REQUIRED.
  88. * detect-replay: indicates if the server (target) supports detection of message replay attempts. The values
  89. are NONE, SUPPORTED or REQUIRED.
  90. * establish-trust-in-client: indicates if the target is capable of authenticating a client. The values are
  91. NONE, SUPPORTED or REQUIRED.
  92. * establish-trust-in-target: indicates if the target is capable of authenticating to a client. The values
  93. are NONE or SUPPORTED.
  94. ]]>
  95. </xs:documentation>
  96. </xs:annotation>
  97. <xs:attribute name="integrity" type="xs:string" use="required" default="NONE"/>
  98. <xs:attribute name="confidentiality" type="xs:string" use="required" default="NONE"/>
  99. <xs:attribute name="detect-misordering" type="xs:string" use="optional" default="NONE"/>
  100. <xs:attribute name="detect-replay" type="xs:string" use="optional" default="NONE"/>
  101. <xs:attribute name="establish-trust-in-client" type="xs:string" use="required" default="NONE"/>
  102. <xs:attribute name="establish-trust-in-target" type="xs:string" use="required" default="NONE"/>
  103. </xs:complexType>
  104. <xs:complexType name="iorASContextType">
  105. <xs:annotation>
  106. <xs:documentation>
  107. <![CDATA[
  108. The iorASConfigType specifies attributes that can be used to configure the authentication service (AS) context.
  109. * auth-method:describes the authentication method. The only supported values are USERNAME_PASSWORD and NONE.
  110. * realm: describes the realm in which the user is authenticated. Must be a valid realm that is registered
  111. in server configuration.
  112. * required: specifies if the supplied authentication method is required to be used for client authentication.
  113. If so the EstablishTrustInClient bit will be set in the target_requires field of the AS_Context.
  114. The attribute value is either true or false.
  115. ]]>
  116. </xs:documentation>
  117. </xs:annotation>
  118. <xs:attribute name="auth-method" type="xs:string" use="required" default="NONE"/>
  119. <xs:attribute name="realm" type="xs:string" use="required" default="default"/>
  120. <xs:attribute name="required" type="xs:string" use="required" default="false"/>
  121. </xs:complexType>
  122. <xs:complexType name="iorSASContextType">
  123. <xs:annotation>
  124. <xs:documentation>
  125. <![CDATA[
  126. The iorASConfigType specifies attributes that can be used to configure the security attribute service.
  127. * caller-propagation: indicates if the target will accept propagated caller identities The values are
  128. NONE or SUPPORTED.
  129. ]]>
  130. </xs:documentation>
  131. </xs:annotation>
  132. <xs:attribute name="caller-propagation" type="xs:string" use="required" default="NONE"/>
  133. </xs:complexType>
  134. </xs:schema>