views:

39

answers:

0

Hi, I want to migrate my application from Spring Security 2 to version 3 because of better API. In fact, I've got trouble with custom filters.

In Spring Security 2.0 I can have multiple XML contexts with custom filters defined for example like:

<bean id="myPreAuthenticatedProcessingFilter"
      class="test.MyPreAuthenticatedProcessingFilter">
    <security:custom-filter position="PRE_AUTH_FILTER"/>
    <property name="authenticationManager" ref="authenticationManager"/>
    <property name="authenticationDetailsSource" ref="myPreDetailsSource"/>
</bean>

where MyPreAuthenticatedProcessingFilter extends AbstractPreAuthenticatedProcessingFilter. In 3.0 the security:custom-filter element was moved to security:http element.

Is there any similar solution to configure custom filters in multiple files in 3.0 version?

related questions