I am currently using a UserDetailsService to get values from a user file:
UserDetailsService
Similar to what you expect can be found in http://kayalvizhiameen.blogspot.in/2014/04/handling-obfuscated-property-values-in.html