The Java Authentication and Authorization Service
A long time ago, I wrote a book on JAAS. It was left unpublished. That means it’s now free for you to enjoy or, more likely, use. I don’t really remember this book well at all so will likely not be able to help you, but feel free to enjoy it!