I have built my custom Authenticaton Manager for Spring Security which goes something like this
public class AccountAuthenticationProvider implements Aut
you need to implement UserDetailsService and override loadUserByUsername method to return your customized UserDetails class.
check below links:
http://www.javaroots.com/2013/03/how-to-use-custom-dao-classe-in-spring.html http://www.javacodegeeks.com/2012/08/spring-security-implementing-custom.html