Hi there, I found this it may or may not be helpful, also if JAAS is used you could think of storing user info iin a database

JAAS Authentication Tutorial