1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:security="http://www.springframework.org/schema/security"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
- http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
- <!-- http://www.springframework.org/schema/security file:/Users/vpuri/interface21/acegisecurity/trunk/acegisecurity/core/src/main/resources/org/acegisecurity/config/spring-security-2.0.xsd -->
- <!-- http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd" -->
- <!-- Basically accessDeniedUrl is optional, we if unspecified impl will auto-detect any AccessDeniedHandler in ctx and use it;
- alternately if there are > 1 such handlers, we can nominate the one to use via accessDeniedBeanRef; provide nested elements for
- other props; i do not mind if you move the access denied stuff to a sub-element -->
- <security:exception-translation id="exceptionTranslationFilter">
- <security:entry-point
- entryPointBeanRef="authenticationProcessingFilterEntryPoint" />
- <!--<security:access-denied accessDeniedBeanRef="theBeanToUse" />-->
- </security:exception-translation>
- <bean id="theBeanToUse"
- class="org.springframework.security.ui.AccessDeniedHandlerImpl">
- <property name="errorPage" value="/accessDenied.jsp" />
- </bean>
- <!--<bean id="anotherBeanToUse"
- class="org.springframework.security.ui.AccessDeniedHandlerImpl">
- <property name="errorPage" value="/accessDenied.jsp" />
- </bean>-->
-
- <bean id="authenticationProcessingFilterEntryPoint"
- class="org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint">
- <property name="loginFormUrl">
- <value>/acegilogin.jsp</value>
- </property>
- <property name="forceHttps">
- <value>false</value>
- </property>
- </bean>
- </beans>
|