Use JBoss Negotiation.
OHHHHHHHHH, The famous Anil.
I saw your name all over the places, when i look for solution.
Can you please recommend a good place to start?
I use Jboss 4.3, does the wiki page - http://www.jboss.org/community/docs/DOC-11465, is still relevant?
I am looking for a tutorial or example.
Can you help in this?
If you've downloaded JBoss Negotiation, you'll find a good guide on in the same archive. This will be enough for fast intro.
If you want to learn more about security in jvm, there are good tutorials from jdk. They will give you a good understanding of the subject.
You would probably need to read about JBoss security framework.
The JBoss Negotiate download is broken (as I posted in another thread, with no response yet from the helpful Negotiate advocates).
Go here: http://www.jboss.org/jbosssecurity/downloads/JBoss%20Negotiation/ and click download - the result for me (at least on Mac/Firefox) for the past two days is "ERROR: null".
You can download the sources from the svn (see the link in the main page ).
Its easily to build it.
Just ask if you have any problem.