No...Unless you want to do some convoluted coding....
Thanks for the answer.
I have to implement logout. i saw that the 'AbstractServerLoginModule' has logout function. The question is how jboss now when to call it?
There are 2 ways, I believe this is called.
(1) If you are using a web app, & if your HttpSession times out, I believe jboss calles logout() on the AbstarctServerLoginModule & clears your Principal.
(2) If you are using a java client, you have the LoginContext. You call LoginContext.login() , do your stuff and call LoginContext.logout()
after you finish your work.
Hope this helps