123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686 |
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <xsd:schema xmlns="http://www.springframework.org/schema/security"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://www.springframework.org/schema/security"
- xmlns:beans="http://www.springframework.org/schema/beans"
- elementFormDefault="qualified" attributeFormDefault="unqualified">
- <xsd:import namespace="http://www.springframework.org/schema/beans" />
- <xsd:element name="autoconfig" />
- <xsd:element name="session-context-integration">
- <xsd:complexType>
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="sessionCreation"
- default="ifRequired">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Indicates if this filter can create a HttpSession if
- needed (sessions are always created sparingly, but setting this value to
- false will prohibit sessions from ever being created).
- Defaults to true. Do not set to false if
- you have set forceEagerSessionCreation to true ,
- as the properties would be in conflict.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="ifRequired" />
- <xsd:enumeration value="never" />
- <xsd:enumeration value="always" />
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- <xsd:attribute name="forceEagerSessionCreation"
- default="false" type="defaultable-boolean" use="optional">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Indicates if this filter is required to create a 'HttpSession'
- for every request before proceeding through the filter chain, even if the
- 'HttpSession' would not ordinarily have been created. By
- default this is 'false', which is entirely appropriate for
- most circumstances as you do not want a 'HttpSession'
- created unless the filter actually needs one. It is envisaged the main
- situation in which this property would be set to 'true' is
- if using other filters that depend on a 'HttpSession'
- already existing, such as those which need to obtain a session ID. This
- is only required in specialised cases, so leave it set to
- 'false' unless you have an actual requirement and are
- conscious of the session creation overhead.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="cloneFromHttpSession" default="false"
- type="defaultable-boolean" use="optional">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Indicates whether the <code>SecurityContext</code> will be cloned from
- the HttpSession. The default is to simply reference (ie
- the default is 'false'. The default may cause issues if
- concurrent threads need to have a different security identity from other
- threads being concurrently processed that share the same
- <code>HttpSession</code>. In most normal environments this does not
- represent an issue, as changes to the security identity in one thread is
- allowed to affect the security identitiy in other threads associated with
- the same 'HttpSession'.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="authentication-remember-me-filter"
- type="RememberMeFilter">
- <xsd:annotation>
- <xsd:documentation
- source="org.springframework.security.ui.rememberme.RememberMeProcessingFilter">
- <![CDATA[
- makes the filter, but does little else, as it auto-detects everything
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:complexType name="RememberMeFilter">
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="rememberMeServicesBeanRef"
- type="xsd:string" use="optional" />
- </xsd:complexType>
- <xsd:element name="authentication-remember-me-services"
- type="RememberMeServices" />
- <xsd:complexType name="RememberMeServices">
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="key" type="xsd:string" use="optional" />
- <xsd:attribute name="principalRepositoryBeanRef"
- type="xsd:string" use="optional" />
- </xsd:complexType>
- <!-- Logout Filter -->
- <xsd:element name="logout-support">
- <xsd:complexType>
- <!-- Write other attributes -->
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="redirectAfterLogoutUrl"
- type="xsd:string" default="/" />
- <xsd:attribute name="logoutUrl" type="xsd:string"
- default="/logout" />
- <xsd:anyAttribute namespace="##other" processContents="lax" />
- </xsd:complexType>
- </xsd:element>
- <!-- Exception Translation Filter -->
- <xsd:element name="exception-translation"
- type="ExceptionTranslation" />
- <xsd:complexType name="ExceptionTranslation">
- <xsd:all>
- <xsd:element ref="entry-point" maxOccurs="1" />
- <xsd:element ref="access-denied" maxOccurs="1"
- minOccurs="0" />
- </xsd:all>
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:element name="entry-point">
- <xsd:complexType>
- <xsd:attribute name="entryPointBeanRef" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="access-denied">
- <xsd:complexType>
- <xsd:attribute name="accessDeniedUrl" type="xsd:string"
- use="optional" />
- <xsd:attribute name="accessDeniedBeanRef" type="xsd:string"
- use="optional" />
- </xsd:complexType>
- </xsd:element>
- <!-- AuthenticationProcessigFilter -->
- <xsd:element name="authentication-form"
- type="AuthenticationProcessingFilter" />
- <xsd:complexType name="AuthenticationProcessingFilter">
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="authenticationUrl" type="xsd:string"
- use="required">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The URL destination that this filter intercepts and processes (usually something like
- /login)
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="defaultTargetUrl" type="xsd:string"
- use="required">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Where to redirect the browser to if authentication is successful but ACEGI_SAVED_REQUEST_KEY is
- null
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="errorFormUrl" type="xsd:string"
- use="required">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Where to redirect the browser to if authentication fails.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:element name="authentication-mechanism"
- type="AuthenticationManager">
- <xsd:annotation>
- <xsd:documentation
- source="org.springframework.security.providers.ProviderManager">
- <![CDATA[
- Resolves to 'org.springframework.security.providers.ProviderManager'
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:complexType name="AuthenticationManager">
- <xsd:sequence>
- <xsd:element ref="authentication-jdbc" minOccurs="0"
- maxOccurs="1" />
- <xsd:element ref="authentication-ldap" minOccurs="0"
- maxOccurs="1" />
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:element name="authentication-jdbc">
- <xsd:annotation>
- <xsd:documentation
- source="org.springframework.security.providers.dao.DaoAuthenticationProvider">
- <![CDATA[
- if not specified will be auto-tetected from the ApplicationContext and tried in order
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:attribute name="ref" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="authentication-ldap">
- <xsd:annotation>
- <xsd:documentation
- source="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
- <![CDATA[
- if not specified will be auto-tetected from the ApplicationContext and tried in order
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="property">
- <xsd:complexType>
- <xsd:complexContent>
- <xsd:extension base="beans:propertyType"></xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="ldapUrl" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The LDAP url of the server (and root context) to connect to.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="managerDn" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The LDAP url of the server (and root context) to connect to.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="managerPassword" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The manager user's password.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="groupSearchBase" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
-
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="groupRoleAttribute"
- type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
-
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="principal-repository" type="PrincipalRepository" />
- <xsd:complexType name="PrincipalRepository">
- <xsd:choice>
- <xsd:element ref="jdbc" minOccurs="0" maxOccurs="1" />
- <xsd:element ref="ldap" minOccurs="0" maxOccurs="1" />
- <xsd:element ref="properties" minOccurs="0" maxOccurs="1" />
- <xsd:element ref="user-definition" minOccurs="0"
- maxOccurs="unbounded" />
- </xsd:choice>
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:element name="jdbc">
- <xsd:complexType>
- <xsd:attribute name="dataSourceBeanRef" type="xsd:string" />
- <xsd:attribute name="authoritiesByUsernameQuery"
- type="xsd:string" use="optional" />
- <xsd:attribute name="jdbcTemplateBeanRef" type="xsd:string"
- use="optional" />
- <xsd:attribute name="rolePrefix" type="xsd:string"
- use="optional" />
- <xsd:attribute name="usernameBasedPrimaryKey"
- type="xsd:boolean" use="optional" />
- <xsd:attribute name="usersByUsernameQuery" type="xsd:string"
- use="optional" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="ldap">
- <xsd:complexType>
- <xsd:attribute name="not-yet-defined" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="properties">
- <xsd:complexType>
- <xsd:attribute name="resource" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="user-definition">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="granted-authority" minOccurs="0"
- maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:attribute name="authority"
- type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="granted-authority-ref" minOccurs="0"
- maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:attribute name="authorityBeanRef"
- type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="username" type="xsd:string"
- use="required" />
- <xsd:attribute name="password" type="xsd:string" />
- <xsd:attribute name="enabled" type="xsd:boolean" />
- <xsd:anyAttribute namespace="##local"
- processContents="strict" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="authentication-repository"
- type="AuthenticationRepositoryType" />
- <xsd:complexType name="AuthenticationRepositoryType">
- <xsd:sequence>
- <xsd:element name="salt-source" type="SaltSource"
- minOccurs="0" maxOccurs="1" />
- <xsd:element name="password-encoder" type="PasswordEncoder"
- minOccurs="0" maxOccurs="1" />
- </xsd:sequence>
- <xsd:attributeGroup ref="AuthenticationRepositoryAttributes" />
- </xsd:complexType>
- <!-- <security:salt-source source="systemwide|reflection" salt="salt"/> -->
- <xsd:complexType name="SaltSource">
- <xsd:sequence>
- <xsd:choice minOccurs="0" maxOccurs="1">
- <xsd:element name="system-wide">
- <xsd:complexType>
- <xsd:attribute name="systemWideSalt"
- type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="reflection">
- <xsd:complexType>
- <xsd:attribute name="userPropertyToUse"
- type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:sequence>
- <xsd:attribute name="saltSourceBeanRef" type="xsd:string"
- use="optional" />
- </xsd:complexType>
- <xsd:complexType name="PasswordEncoder">
- <xsd:sequence>
- <xsd:choice minOccurs="0" maxOccurs="1">
- <xsd:element name="encoder">
- <xsd:complexType>
- <xsd:attribute name="method" type="encoders" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:sequence>
- <xsd:attribute name="encoderBeanRef" type="xsd:string"
- use="optional" />
- </xsd:complexType>
- <xsd:attributeGroup name="AuthenticationRepositoryAttributes">
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="repositoryBeanRef" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Reference of a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:attributeGroup>
- <xsd:element name="authorization-http-url"
- type="AuthorizationHttpUrlType">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Specify security:uri-patterns in order of processing; each pattern must specify EITHER a
- regularExpression OR a path, but not both and ALL patterns in the url-mapping MUST be of the
- SAME type (ie cannot mix a regular expression and Ant Path) - exception will be thrown if tried
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:complexType name="AuthorizationHttpUrlType">
- <xsd:sequence minOccurs="1" maxOccurs="1">
- <xsd:element name="url-mapping" type="UrlMappingType"></xsd:element>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:complexType name="UrlMappingType">
- <xsd:sequence minOccurs="1" maxOccurs="unbounded">
- <xsd:element name="uri-pattern" type="UriPatternType" />
- </xsd:sequence>
- <xsd:attribute name="source" type="xsd:string" default="xml" />
- <xsd:attribute name="sourceBeanId" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Reference to an external ObjectDefinitionSource.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:complexType name="UriPatternType">
- <xsd:sequence minOccurs="1" maxOccurs="unbounded">
- <xsd:element name="configuration-attribute"
- type="ConfigurationAttributeType" />
- </xsd:sequence>
- <xsd:attribute name="path" type="xsd:string" use="optional" />
- <xsd:attribute name="regularExpression" type="xsd:string"
- use="optional" />
- </xsd:complexType>
- <xsd:complexType name="ConfigurationAttributeType">
- <xsd:attribute name="attribute" type="xsd:string" />
- </xsd:complexType>
- <xsd:element name="authorization-manager"
- type="AuthorizationManagerType" />
- <xsd:complexType name="AuthorizationManagerType">
- <xsd:sequence>
- <xsd:element name="role-voter" type="xsd:string"
- minOccurs="0" maxOccurs="1" />
- <xsd:element name="authenticated-voter" type="xsd:string"
- minOccurs="0" maxOccurs="1" />
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="strategy" type="response"
- default="affirmative" />
- </xsd:complexType>
- <!-- Authorization JointPoint -->
- <xsd:element name="authorization-joinpoint"
- type="AuthorizationJointPointType">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
-
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:complexType name="AuthorizationJointPointType">
- <xsd:sequence minOccurs="1" maxOccurs="1">
- <xsd:element name="url-mapping"
- type="JointPointMappingType">
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- The unique identifier for a bean.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="springAop" type="xsd:boolean"
- use="optional" />
- <xsd:attribute name="aspectj" type="xsd:boolean" use="optional" />
- </xsd:complexType>
- <xsd:complexType name="JointPointMappingType">
- <xsd:sequence minOccurs="1" maxOccurs="unbounded">
- <xsd:element name="method-pattern" type="MethodPatternType" />
- </xsd:sequence>
- <xsd:attribute name="source" type="MethodInterceptorType"
- default="xml" />
- <xsd:attribute name="sourceBeanId" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
- Reference to an external ObjectDefinitionSource.
- ]]>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:complexType name="MethodPatternType">
- <xsd:sequence minOccurs="1" maxOccurs="unbounded">
- <xsd:element name="configuration-attribute"
- type="ConfigurationAttributeType" />
- </xsd:sequence>
- <xsd:attribute name="type" type="xsd:string" />
- </xsd:complexType>
- <xsd:simpleType name="response">
- <xsd:restriction base="xsd:NMTOKEN">
- <xsd:enumeration value="consensus" />
- <xsd:enumeration value="unanimous" />
- <xsd:enumeration value="affirmative" />
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="MethodInterceptorType">
- <xsd:restriction base="xsd:NMTOKEN">
- <xsd:enumeration value="xml" />
- <xsd:enumeration value="attributes" />
- <xsd:enumeration value="annotations" />
- <xsd:enumeration value="custom" />
- </xsd:restriction>
- </xsd:simpleType>
- <!-- simple internal types -->
- <xsd:simpleType name="defaultable-boolean">
- <xsd:restriction base="xsd:NMTOKEN">
- <xsd:enumeration value="true" />
- <xsd:enumeration value="false" />
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="encoders">
- <xsd:restriction base="xsd:NMTOKEN">
- <xsd:enumeration value="md5" />
- <xsd:enumeration value="md5Hex" />
- <xsd:enumeration value="sha" />
- <xsd:enumeration value="shaHex" />
- <xsd:enumeration value="custom" />
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:schema>
|