In other words:
how can I get the ServerDatabaseLoginModule to know a second principal, wich a custom ClientLoginModule has added to the list of Principals of the given subject. On the serverside the list is empty and userid & password are gathered from a different Callbackhandler, which does not know of the second principal.
Do I have to write my own LoginContext to get it use an other callbackhandler?
That's, what I was looking for! Thanks!