how do i get the authenticated Subject?

I

ittay.dror

Hi,

I'm developing a web application inside Tomcat. The security uses JAAS.
Obviously, I try to separate the web-specific code from the application
code (so I have general classes handling the application logic). Inside
the application code I want to get the details of the user that
initialized the code (by submitting a page, clicking a link etc.).

I've tried Subject.getSubject(AccessController.getContext()), but got a
NPE.

Thank you for your help,
Ittay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top