[wsit] username/password auth., get back username
I created a wsit and secured it with username/password authentification using netbeans. I configured keystores, truststores, password validator, password callback, ect... and all of this works. I can choose the the password at runtime on the client side and verify it inside my database on server side.
I also finded some documents explaining how to handle sessions at server side here http://weblogs.java.net/blog/bhaktimehta/archive/2006/08/ws_reliable_mes...
and I finded another, but quite cryptic document, here http://wiki.glassfish.java.net/attach/OnePagersOrFunctionalSpecs/wsit-on...
that allows me to get a HashTable for each client which is more useful and easy to use than what propose the first document.
And all of this works.
My problem is, in fact, so simple that I can not find another abjective than "stupid": how can I get the username used by the client to authentify inside one of the methods of my service?
We could expect the application server to simply save it in the session reserved for the client. Well, even if that's what is done I can not find any documentation that describe how to get it back.
Fine, then let's just save it manually when validating with the PasswordValidator. Unfortunatly it's just impossible, I have no access to the session inside that class.
So how could I get that damn username when I need it?
Thanks in advance, great fortune, long life, etc... to anyone that would answer this message.
PS:yeah, english is not my mother language, please forgive me
Message was edited by: zais