I am using spring security for authentication of users.
I have created a custom authentication provider and implementation of UserDetails interface.
Following is application-context.xml
<beans:bean id="authenticationProvider" class="com.utils.UserAuthenticationProvider" >
</beans:bean>
<beans:bean id="passwordEncoder" class="com.utils.PasswordUtil"/>
<beans:bean id="saltSource" class="org.springframework.security.authentication.dao.ReflectionSaltSource">
<beans:property name="userPropertyToUse" value="lastChangeDate" />
</beans:bean>
<authentication-manager alias="authenticationManager" >
<authentication-provider user-service-ref="userDetailsService" >
<password-encoder ref="passwordEncoder">
<salt-source ref="saltSource" />
</password-encoder>
</authentication-provider>
</authentication-manager>
<beans:bean id="userDetailsService" class="com.service.impl.UserDetailsServiceImpl" />
I am not able to link my custom authentication provider to authentication manager tag.
I tried using "custom-authenitication-provider" tag, but it seems that this tag is not present in Spring 3 onwards.
Please help. Let me know if any further info is reqd