spring-security-2.0.xsd 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <xsd:schema xmlns="http://www.springframework.org/schema/security"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://www.springframework.org/schema/security"
  5. xmlns:beans="http://www.springframework.org/schema/beans"
  6. elementFormDefault="qualified" attributeFormDefault="unqualified">
  7. <xsd:import namespace="http://www.springframework.org/schema/beans" />
  8. <xsd:element name="autoconfig" />
  9. <xsd:element name="session-context-integration">
  10. <xsd:complexType>
  11. <xsd:attribute name="id" type="xsd:ID">
  12. <xsd:annotation>
  13. <xsd:documentation>
  14. <![CDATA[
  15. The unique identifier for a bean.
  16. ]]>
  17. </xsd:documentation>
  18. </xsd:annotation>
  19. </xsd:attribute>
  20. <xsd:attribute name="sessionCreation"
  21. default="ifRequired">
  22. <xsd:annotation>
  23. <xsd:documentation>
  24. <![CDATA[
  25. Indicates if this filter can create a HttpSession if
  26. needed (sessions are always created sparingly, but setting this value to
  27. false will prohibit sessions from ever being created).
  28. Defaults to true. Do not set to false if
  29. you have set forceEagerSessionCreation to true ,
  30. as the properties would be in conflict.
  31. ]]>
  32. </xsd:documentation>
  33. </xsd:annotation>
  34. <xsd:simpleType>
  35. <xsd:restriction base="xsd:string">
  36. <xsd:enumeration value="ifRequired" />
  37. <xsd:enumeration value="never" />
  38. <xsd:enumeration value="always" />
  39. </xsd:restriction>
  40. </xsd:simpleType>
  41. </xsd:attribute>
  42. <xsd:attribute name="forceEagerSessionCreation"
  43. default="false" type="defaultable-boolean" use="optional">
  44. <xsd:annotation>
  45. <xsd:documentation>
  46. <![CDATA[
  47. Indicates if this filter is required to create a 'HttpSession'
  48. for every request before proceeding through the filter chain, even if the
  49. 'HttpSession' would not ordinarily have been created. By
  50. default this is 'false', which is entirely appropriate for
  51. most circumstances as you do not want a 'HttpSession'
  52. created unless the filter actually needs one. It is envisaged the main
  53. situation in which this property would be set to 'true' is
  54. if using other filters that depend on a 'HttpSession'
  55. already existing, such as those which need to obtain a session ID. This
  56. is only required in specialised cases, so leave it set to
  57. 'false' unless you have an actual requirement and are
  58. conscious of the session creation overhead.
  59. ]]>
  60. </xsd:documentation>
  61. </xsd:annotation>
  62. </xsd:attribute>
  63. <xsd:attribute name="cloneFromHttpSession" default="false"
  64. type="defaultable-boolean" use="optional">
  65. <xsd:annotation>
  66. <xsd:documentation>
  67. <![CDATA[
  68. Indicates whether the <code>SecurityContext</code> will be cloned from
  69. the HttpSession. The default is to simply reference (ie
  70. the default is 'false'. The default may cause issues if
  71. concurrent threads need to have a different security identity from other
  72. threads being concurrently processed that share the same
  73. <code>HttpSession</code>. In most normal environments this does not
  74. represent an issue, as changes to the security identity in one thread is
  75. allowed to affect the security identitiy in other threads associated with
  76. the same 'HttpSession'.
  77. ]]>
  78. </xsd:documentation>
  79. </xsd:annotation>
  80. </xsd:attribute>
  81. </xsd:complexType>
  82. </xsd:element>
  83. <xsd:element name="authentication-remember-me-filter"
  84. type="RememberMeFilter">
  85. <xsd:annotation>
  86. <xsd:documentation
  87. source="org.springframework.security.ui.rememberme.RememberMeProcessingFilter">
  88. <![CDATA[
  89. makes the filter, but does little else, as it auto-detects everything
  90. ]]>
  91. </xsd:documentation>
  92. </xsd:annotation>
  93. </xsd:element>
  94. <xsd:complexType name="RememberMeFilter">
  95. <xsd:attribute name="id" type="xsd:ID">
  96. <xsd:annotation>
  97. <xsd:documentation>
  98. <![CDATA[
  99. The unique identifier for a bean.
  100. ]]>
  101. </xsd:documentation>
  102. </xsd:annotation>
  103. </xsd:attribute>
  104. <xsd:attribute name="rememberMeServicesBeanRef"
  105. type="xsd:string" use="optional" />
  106. </xsd:complexType>
  107. <xsd:element name="authentication-remember-me-services"
  108. type="RememberMeServices" />
  109. <xsd:complexType name="RememberMeServices">
  110. <xsd:attribute name="id" type="xsd:ID">
  111. <xsd:annotation>
  112. <xsd:documentation>
  113. <![CDATA[
  114. The unique identifier for a bean.
  115. ]]>
  116. </xsd:documentation>
  117. </xsd:annotation>
  118. </xsd:attribute>
  119. <xsd:attribute name="key" type="xsd:string" use="optional" />
  120. <xsd:attribute name="principalRepositoryBeanRef"
  121. type="xsd:string" use="optional" />
  122. </xsd:complexType>
  123. <!-- Logout Filter -->
  124. <xsd:element name="logout-support">
  125. <xsd:complexType>
  126. <!-- Write other attributes -->
  127. <xsd:attribute name="id" type="xsd:ID">
  128. <xsd:annotation>
  129. <xsd:documentation>
  130. <![CDATA[
  131. The unique identifier for a bean.
  132. ]]>
  133. </xsd:documentation>
  134. </xsd:annotation>
  135. </xsd:attribute>
  136. <xsd:attribute name="redirectAfterLogoutUrl"
  137. type="xsd:string" default="/" />
  138. <xsd:attribute name="logoutUrl" type="xsd:string"
  139. default="/logout" />
  140. <xsd:anyAttribute namespace="##other" processContents="lax" />
  141. </xsd:complexType>
  142. </xsd:element>
  143. <!-- Exception Translation Filter -->
  144. <xsd:element name="exception-translation"
  145. type="ExceptionTranslation" />
  146. <xsd:complexType name="ExceptionTranslation">
  147. <xsd:all>
  148. <xsd:element ref="entry-point" maxOccurs="1" />
  149. <xsd:element ref="access-denied" maxOccurs="1"
  150. minOccurs="0" />
  151. </xsd:all>
  152. <xsd:attribute name="id" type="xsd:ID">
  153. <xsd:annotation>
  154. <xsd:documentation>
  155. <![CDATA[
  156. The unique identifier for a bean.
  157. ]]>
  158. </xsd:documentation>
  159. </xsd:annotation>
  160. </xsd:attribute>
  161. </xsd:complexType>
  162. <xsd:element name="entry-point">
  163. <xsd:complexType>
  164. <xsd:attribute name="entryPointBeanRef" type="xsd:string" />
  165. </xsd:complexType>
  166. </xsd:element>
  167. <xsd:element name="access-denied">
  168. <xsd:complexType>
  169. <xsd:attribute name="accessDeniedUrl" type="xsd:string"
  170. use="optional" />
  171. <xsd:attribute name="accessDeniedBeanRef" type="xsd:string"
  172. use="optional" />
  173. </xsd:complexType>
  174. </xsd:element>
  175. <!-- AuthenticationProcessigFilter -->
  176. <xsd:element name="authentication-form"
  177. type="AuthenticationProcessingFilter" />
  178. <xsd:complexType name="AuthenticationProcessingFilter">
  179. <xsd:attribute name="id" type="xsd:ID">
  180. <xsd:annotation>
  181. <xsd:documentation>
  182. <![CDATA[
  183. The unique identifier for a bean.
  184. ]]>
  185. </xsd:documentation>
  186. </xsd:annotation>
  187. </xsd:attribute>
  188. <xsd:attribute name="authenticationUrl" type="xsd:string"
  189. use="required">
  190. <xsd:annotation>
  191. <xsd:documentation>
  192. <![CDATA[
  193. The URL destination that this filter intercepts and processes (usually something like
  194. /login)
  195. ]]>
  196. </xsd:documentation>
  197. </xsd:annotation>
  198. </xsd:attribute>
  199. <xsd:attribute name="defaultTargetUrl" type="xsd:string"
  200. use="required">
  201. <xsd:annotation>
  202. <xsd:documentation>
  203. <![CDATA[
  204. Where to redirect the browser to if authentication is successful but ACEGI_SAVED_REQUEST_KEY is
  205. null
  206. ]]>
  207. </xsd:documentation>
  208. </xsd:annotation>
  209. </xsd:attribute>
  210. <xsd:attribute name="errorFormUrl" type="xsd:string"
  211. use="required">
  212. <xsd:annotation>
  213. <xsd:documentation>
  214. <![CDATA[
  215. Where to redirect the browser to if authentication fails.
  216. ]]>
  217. </xsd:documentation>
  218. </xsd:annotation>
  219. </xsd:attribute>
  220. </xsd:complexType>
  221. <xsd:element name="authentication-mechanism"
  222. type="AuthenticationManager">
  223. <xsd:annotation>
  224. <xsd:documentation
  225. source="org.springframework.security.providers.ProviderManager">
  226. <![CDATA[
  227. Resolves to 'org.springframework.security.providers.ProviderManager'
  228. ]]>
  229. </xsd:documentation>
  230. </xsd:annotation>
  231. </xsd:element>
  232. <xsd:complexType name="AuthenticationManager">
  233. <xsd:sequence>
  234. <xsd:element ref="authentication-jdbc" minOccurs="0"
  235. maxOccurs="1" />
  236. <xsd:element ref="authentication-ldap" minOccurs="0"
  237. maxOccurs="1" />
  238. </xsd:sequence>
  239. <xsd:attribute name="id" type="xsd:ID">
  240. <xsd:annotation>
  241. <xsd:documentation>
  242. <![CDATA[
  243. The unique identifier for a bean.
  244. ]]>
  245. </xsd:documentation>
  246. </xsd:annotation>
  247. </xsd:attribute>
  248. </xsd:complexType>
  249. <xsd:element name="authentication-jdbc">
  250. <xsd:annotation>
  251. <xsd:documentation
  252. source="org.springframework.security.providers.dao.DaoAuthenticationProvider">
  253. <![CDATA[
  254. if not specified will be auto-tetected from the ApplicationContext and tried in order
  255. ]]>
  256. </xsd:documentation>
  257. </xsd:annotation>
  258. <xsd:complexType>
  259. <xsd:attribute name="ref" type="xsd:string" />
  260. </xsd:complexType>
  261. </xsd:element>
  262. <xsd:element name="authentication-ldap">
  263. <xsd:annotation>
  264. <xsd:documentation
  265. source="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
  266. <![CDATA[
  267. if not specified will be auto-tetected from the ApplicationContext and tried in order
  268. ]]>
  269. </xsd:documentation>
  270. </xsd:annotation>
  271. <xsd:complexType>
  272. <xsd:sequence>
  273. <xsd:element name="property">
  274. <xsd:complexType>
  275. <xsd:complexContent>
  276. <xsd:extension base="beans:propertyType"></xsd:extension>
  277. </xsd:complexContent>
  278. </xsd:complexType>
  279. </xsd:element>
  280. </xsd:sequence>
  281. <xsd:attribute name="ldapUrl" type="xsd:string">
  282. <xsd:annotation>
  283. <xsd:documentation>
  284. <![CDATA[
  285. The LDAP url of the server (and root context) to connect to.
  286. ]]>
  287. </xsd:documentation>
  288. </xsd:annotation>
  289. </xsd:attribute>
  290. <xsd:attribute name="managerDn" type="xsd:string">
  291. <xsd:annotation>
  292. <xsd:documentation>
  293. <![CDATA[
  294. The LDAP url of the server (and root context) to connect to.
  295. ]]>
  296. </xsd:documentation>
  297. </xsd:annotation>
  298. </xsd:attribute>
  299. <xsd:attribute name="managerPassword" type="xsd:string">
  300. <xsd:annotation>
  301. <xsd:documentation>
  302. <![CDATA[
  303. The manager user's password.
  304. ]]>
  305. </xsd:documentation>
  306. </xsd:annotation>
  307. </xsd:attribute>
  308. <xsd:attribute name="groupSearchBase" type="xsd:string">
  309. <xsd:annotation>
  310. <xsd:documentation>
  311. <![CDATA[
  312. ]]>
  313. </xsd:documentation>
  314. </xsd:annotation>
  315. </xsd:attribute>
  316. <xsd:attribute name="groupRoleAttribute"
  317. type="xsd:string">
  318. <xsd:annotation>
  319. <xsd:documentation>
  320. <![CDATA[
  321. ]]>
  322. </xsd:documentation>
  323. </xsd:annotation>
  324. </xsd:attribute>
  325. </xsd:complexType>
  326. </xsd:element>
  327. <xsd:element name="principal-repository" type="PrincipalRepository" />
  328. <xsd:complexType name="PrincipalRepository">
  329. <xsd:choice>
  330. <xsd:element ref="jdbc" minOccurs="0" maxOccurs="1" />
  331. <xsd:element ref="ldap" minOccurs="0" maxOccurs="1" />
  332. <xsd:element ref="properties" minOccurs="0" maxOccurs="1" />
  333. <xsd:element ref="user-definition" minOccurs="0"
  334. maxOccurs="unbounded" />
  335. </xsd:choice>
  336. <xsd:attribute name="id" type="xsd:ID">
  337. <xsd:annotation>
  338. <xsd:documentation>
  339. <![CDATA[
  340. The unique identifier for a bean.
  341. ]]>
  342. </xsd:documentation>
  343. </xsd:annotation>
  344. </xsd:attribute>
  345. </xsd:complexType>
  346. <xsd:element name="jdbc">
  347. <xsd:complexType>
  348. <xsd:attribute name="dataSourceBeanRef" type="xsd:string" />
  349. <xsd:attribute name="authoritiesByUsernameQuery"
  350. type="xsd:string" use="optional" />
  351. <xsd:attribute name="jdbcTemplateBeanRef" type="xsd:string"
  352. use="optional" />
  353. <xsd:attribute name="rolePrefix" type="xsd:string"
  354. use="optional" />
  355. <xsd:attribute name="usernameBasedPrimaryKey"
  356. type="xsd:boolean" use="optional" />
  357. <xsd:attribute name="usersByUsernameQuery" type="xsd:string"
  358. use="optional" />
  359. </xsd:complexType>
  360. </xsd:element>
  361. <xsd:element name="ldap">
  362. <xsd:complexType>
  363. <xsd:attribute name="not-yet-defined" type="xsd:string" />
  364. </xsd:complexType>
  365. </xsd:element>
  366. <xsd:element name="properties">
  367. <xsd:complexType>
  368. <xsd:attribute name="resource" type="xsd:string" />
  369. </xsd:complexType>
  370. </xsd:element>
  371. <xsd:element name="user-definition">
  372. <xsd:complexType>
  373. <xsd:sequence>
  374. <xsd:element name="granted-authority" minOccurs="0"
  375. maxOccurs="unbounded">
  376. <xsd:complexType>
  377. <xsd:attribute name="authority"
  378. type="xsd:string" use="required" />
  379. </xsd:complexType>
  380. </xsd:element>
  381. <xsd:element name="granted-authority-ref" minOccurs="0"
  382. maxOccurs="unbounded">
  383. <xsd:complexType>
  384. <xsd:attribute name="authorityBeanRef"
  385. type="xsd:string" use="required" />
  386. </xsd:complexType>
  387. </xsd:element>
  388. </xsd:sequence>
  389. <xsd:attribute name="username" type="xsd:string"
  390. use="required" />
  391. <xsd:attribute name="password" type="xsd:string" />
  392. <xsd:attribute name="enabled" type="xsd:boolean" />
  393. <xsd:anyAttribute namespace="##local"
  394. processContents="strict" />
  395. </xsd:complexType>
  396. </xsd:element>
  397. <xsd:element name="authentication-repository"
  398. type="AuthenticationRepositoryType" />
  399. <xsd:complexType name="AuthenticationRepositoryType">
  400. <xsd:sequence>
  401. <xsd:element name="salt-source" type="SaltSource"
  402. minOccurs="0" maxOccurs="1" />
  403. <xsd:element name="password-encoder" type="PasswordEncoder"
  404. minOccurs="0" maxOccurs="1" />
  405. </xsd:sequence>
  406. <xsd:attributeGroup ref="AuthenticationRepositoryAttributes" />
  407. </xsd:complexType>
  408. <!-- <security:salt-source source="systemwide|reflection" salt="salt"/> -->
  409. <xsd:complexType name="SaltSource">
  410. <xsd:sequence>
  411. <xsd:choice minOccurs="0" maxOccurs="1">
  412. <xsd:element name="system-wide">
  413. <xsd:complexType>
  414. <xsd:attribute name="systemWideSalt"
  415. type="xsd:string" />
  416. </xsd:complexType>
  417. </xsd:element>
  418. <xsd:element name="reflection">
  419. <xsd:complexType>
  420. <xsd:attribute name="userPropertyToUse"
  421. type="xsd:string" />
  422. </xsd:complexType>
  423. </xsd:element>
  424. </xsd:choice>
  425. </xsd:sequence>
  426. <xsd:attribute name="saltSourceBeanRef" type="xsd:string"
  427. use="optional" />
  428. </xsd:complexType>
  429. <xsd:complexType name="PasswordEncoder">
  430. <xsd:sequence>
  431. <xsd:choice minOccurs="0" maxOccurs="1">
  432. <xsd:element name="encoder">
  433. <xsd:complexType>
  434. <xsd:attribute name="method" type="encoders" />
  435. </xsd:complexType>
  436. </xsd:element>
  437. </xsd:choice>
  438. </xsd:sequence>
  439. <xsd:attribute name="encoderBeanRef" type="xsd:string"
  440. use="optional" />
  441. </xsd:complexType>
  442. <xsd:attributeGroup name="AuthenticationRepositoryAttributes">
  443. <xsd:attribute name="id" type="xsd:ID">
  444. <xsd:annotation>
  445. <xsd:documentation>
  446. <![CDATA[
  447. The unique identifier for a bean.
  448. ]]>
  449. </xsd:documentation>
  450. </xsd:annotation>
  451. </xsd:attribute>
  452. <xsd:attribute name="repositoryBeanRef" type="xsd:string">
  453. <xsd:annotation>
  454. <xsd:documentation>
  455. <![CDATA[
  456. Reference of a bean.
  457. ]]>
  458. </xsd:documentation>
  459. </xsd:annotation>
  460. </xsd:attribute>
  461. </xsd:attributeGroup>
  462. <xsd:element name="authorization-http-url"
  463. type="AuthorizationHttpUrlType">
  464. <xsd:annotation>
  465. <xsd:documentation>
  466. <![CDATA[
  467. Specify security:uri-patterns in order of processing; each pattern must specify EITHER a
  468. regularExpression OR a path, but not both and ALL patterns in the url-mapping MUST be of the
  469. SAME type (ie cannot mix a regular expression and Ant Path) - exception will be thrown if tried
  470. ]]>
  471. </xsd:documentation>
  472. </xsd:annotation>
  473. </xsd:element>
  474. <xsd:complexType name="AuthorizationHttpUrlType">
  475. <xsd:sequence minOccurs="1" maxOccurs="1">
  476. <xsd:element name="url-mapping" type="UrlMappingType"></xsd:element>
  477. </xsd:sequence>
  478. <xsd:attribute name="id" type="xsd:ID">
  479. <xsd:annotation>
  480. <xsd:documentation>
  481. <![CDATA[
  482. The unique identifier for a bean.
  483. ]]>
  484. </xsd:documentation>
  485. </xsd:annotation>
  486. </xsd:attribute>
  487. </xsd:complexType>
  488. <xsd:complexType name="UrlMappingType">
  489. <xsd:sequence minOccurs="1" maxOccurs="unbounded">
  490. <xsd:element name="uri-pattern" type="UriPatternType" />
  491. </xsd:sequence>
  492. <xsd:attribute name="source" type="xsd:string" default="xml" />
  493. <xsd:attribute name="sourceBeanId" type="xsd:string">
  494. <xsd:annotation>
  495. <xsd:documentation>
  496. <![CDATA[
  497. Reference to an external ObjectDefinitionSource.
  498. ]]>
  499. </xsd:documentation>
  500. </xsd:annotation>
  501. </xsd:attribute>
  502. </xsd:complexType>
  503. <xsd:complexType name="UriPatternType">
  504. <xsd:sequence minOccurs="1" maxOccurs="unbounded">
  505. <xsd:element name="configuration-attribute"
  506. type="ConfigurationAttributeType" />
  507. </xsd:sequence>
  508. <xsd:attribute name="path" type="xsd:string" use="optional" />
  509. <xsd:attribute name="regularExpression" type="xsd:string"
  510. use="optional" />
  511. </xsd:complexType>
  512. <xsd:complexType name="ConfigurationAttributeType">
  513. <xsd:attribute name="attribute" type="xsd:string" />
  514. </xsd:complexType>
  515. <xsd:element name="authorization-manager"
  516. type="AuthorizationManagerType" />
  517. <xsd:complexType name="AuthorizationManagerType">
  518. <xsd:sequence>
  519. <xsd:element name="role-voter" type="xsd:string"
  520. minOccurs="0" maxOccurs="1" />
  521. <xsd:element name="authenticated-voter" type="xsd:string"
  522. minOccurs="0" maxOccurs="1" />
  523. </xsd:sequence>
  524. <xsd:attribute name="id" type="xsd:ID">
  525. <xsd:annotation>
  526. <xsd:documentation>
  527. <![CDATA[
  528. The unique identifier for a bean.
  529. ]]>
  530. </xsd:documentation>
  531. </xsd:annotation>
  532. </xsd:attribute>
  533. <xsd:attribute name="strategy" type="response"
  534. default="affirmative" />
  535. </xsd:complexType>
  536. <!-- Authorization JointPoint -->
  537. <xsd:element name="authorization-joinpoint"
  538. type="AuthorizationJointPointType">
  539. <xsd:annotation>
  540. <xsd:documentation>
  541. <![CDATA[
  542. ]]>
  543. </xsd:documentation>
  544. </xsd:annotation>
  545. </xsd:element>
  546. <xsd:complexType name="AuthorizationJointPointType">
  547. <xsd:sequence minOccurs="1" maxOccurs="1">
  548. <xsd:element name="url-mapping"
  549. type="JointPointMappingType">
  550. </xsd:element>
  551. </xsd:sequence>
  552. <xsd:attribute name="id" type="xsd:ID">
  553. <xsd:annotation>
  554. <xsd:documentation>
  555. <![CDATA[
  556. The unique identifier for a bean.
  557. ]]>
  558. </xsd:documentation>
  559. </xsd:annotation>
  560. </xsd:attribute>
  561. <xsd:attribute name="springAop" type="xsd:boolean"
  562. use="optional" />
  563. <xsd:attribute name="aspectj" type="xsd:boolean" use="optional" />
  564. </xsd:complexType>
  565. <xsd:complexType name="JointPointMappingType">
  566. <xsd:sequence minOccurs="1" maxOccurs="unbounded">
  567. <xsd:element name="method-pattern" type="MethodPatternType" />
  568. </xsd:sequence>
  569. <xsd:attribute name="source" type="MethodInterceptorType"
  570. default="xml" />
  571. <xsd:attribute name="sourceBeanId" type="xsd:string">
  572. <xsd:annotation>
  573. <xsd:documentation>
  574. <![CDATA[
  575. Reference to an external ObjectDefinitionSource.
  576. ]]>
  577. </xsd:documentation>
  578. </xsd:annotation>
  579. </xsd:attribute>
  580. </xsd:complexType>
  581. <xsd:complexType name="MethodPatternType">
  582. <xsd:sequence minOccurs="1" maxOccurs="unbounded">
  583. <xsd:element name="configuration-attribute"
  584. type="ConfigurationAttributeType" />
  585. </xsd:sequence>
  586. <xsd:attribute name="type" type="xsd:string" />
  587. </xsd:complexType>
  588. <xsd:simpleType name="response">
  589. <xsd:restriction base="xsd:NMTOKEN">
  590. <xsd:enumeration value="consensus" />
  591. <xsd:enumeration value="unanimous" />
  592. <xsd:enumeration value="affirmative" />
  593. </xsd:restriction>
  594. </xsd:simpleType>
  595. <xsd:simpleType name="MethodInterceptorType">
  596. <xsd:restriction base="xsd:NMTOKEN">
  597. <xsd:enumeration value="xml" />
  598. <xsd:enumeration value="attributes" />
  599. <xsd:enumeration value="annotations" />
  600. <xsd:enumeration value="custom" />
  601. </xsd:restriction>
  602. </xsd:simpleType>
  603. <!-- simple internal types -->
  604. <xsd:simpleType name="defaultable-boolean">
  605. <xsd:restriction base="xsd:NMTOKEN">
  606. <xsd:enumeration value="true" />
  607. <xsd:enumeration value="false" />
  608. </xsd:restriction>
  609. </xsd:simpleType>
  610. <xsd:simpleType name="encoders">
  611. <xsd:restriction base="xsd:NMTOKEN">
  612. <xsd:enumeration value="md5" />
  613. <xsd:enumeration value="md5Hex" />
  614. <xsd:enumeration value="sha" />
  615. <xsd:enumeration value="shaHex" />
  616. <xsd:enumeration value="custom" />
  617. </xsd:restriction>
  618. </xsd:simpleType>
  619. </xsd:schema>