All pastes #90560 Raw Edit

Something

public xml v1 · immutable
#90560 ·published 2006-07-17 20:11 UTC
rendered paste body
<bean id="accessDecisionManager" class="org.acegisecurity.vote.UnanimousBased">        <property name="decisionVoters">            <list>                <ref bean="roleVoter"/>            </list>        </property>    </bean>    <bean id="roleVoter" class="org.acegisecurity.vote.RoleVoter"/>    <bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy">      <property name="filterInvocationDefinitionSource">         <value>		    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON		    PATTERN_TYPE_APACHE_ANT            /**=exceptionTranslationFilter,             authenticationProcessingFilter         </value>      </property>    </bean>    <bean id="filterSecurityInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">        <property name="authenticationManager">            <ref bean="authenticationManager"/>        </property>        <property name="accessDecisionManager">            <ref bean="accessDecisionManager"/>        </property>        <property name="objectDefinitionSource">            <value>                CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON                PATTERN_TYPE_APACHE_ANT                <!--/faces/login.xhtml=ROLE_ANONYMOUS-->                <!--/faces/home.xhtml=ROLE_ADMIN-->                <!--/faces/**=ROLE_ADMIN-->            </value>        </property>    </bean>    <bean id="exceptionTranslationFilter" class="org.acegisecurity.ui.ExceptionTranslationFilter">        <property name="authenticationEntryPoint">            <ref bean="authenticationEntryPoint"/>        </property>    </bean>    <bean id="authenticationEntryPoint" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">        <property name="loginFormUrl">            <value>/faces/login.xhtml</value>        </property>    </bean>    <bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">        <property name="filterProcessesUrl">                <value>/j_acegi_security_check</value>        </property>        <property name="authenticationFailureUrl">                <value>/faces/login.xhtml</value>        </property>        <property name="defaultTargetUrl">                <value>/</value>        </property>        <property name="authenticationManager">                <ref bean="authenticationManager" />        </property>    </bean>web.xml--------<!-- ********************************************************************* -->  <!-- Acegi  -->  <!-- ********************************************************************* -->    <filter>        <filter-name>Acegi Filter Chain Proxy</filter-name>        <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>        <init-param>            <param-name>targetBean</param-name>            <param-value>exceptionTranslationFilter</param-value>        </init-param>    </filter>    <filter-mapping>        <filter-name>Acegi Filter Chain Proxy</filter-name>        <url-pattern>/*</url-pattern>        <dispatcher>FORWARD</dispatcher>        <dispatcher>REQUEST</dispatcher>    </filter-mapping>    <filter>        <filter-name>Acegi-Authentication</filter-name>        <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>        <init-param>            <param-name>targetClass</param-name>            <param-value>org.acegisecurity.ui.webapp.AuthenticationProcessingFilter</param-value>        </init-param>    </filter>    <filter-mapping>        <filter-name>Acegi-Authentication</filter-name>        <url-pattern>/*</url-pattern>        <dispatcher>FORWARD</dispatcher>        <dispatcher>REQUEST</dispatcher>    </filter-mapping>    <filter>		<filter-name>Acegi HTTP Request Security Filter</filter-name>		<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>		<init-param>			<param-name>targetClass</param-name>			<param-value>org.acegisecurity.intercept.web.FilterSecurityInterceptor</param-value>		</init-param>	</filter>	<filter-mapping>		<filter-name>Acegi HTTP Request Security Filter</filter-name>		<url-pattern>/*</url-pattern>        <dispatcher>FORWARD</dispatcher>        <dispatcher>REQUEST</dispatcher>    </filter-mapping>