Based on your description, I think you can look at the custom implementation of UserDetailsService .
It is worth checking out a sample Stephan Gerth ZK project that integrates Spring, Hibernate, Spring-configured security, ZK Ajax, etc. Here you have a post that has links to the source and documentation . I suggest reading chapter 13.2. Spring - A security system (and related) that should help you navigate the source code.
Less
source share