This should do the job:
import java.security.AccessController;
import java.security.AccessControlContext;
import javax.security.auth.Subject;
...
AccessControlContext context = AccessController.getContext();
Subject subject = Subject.getSubject(context);
Regards,
Martin
[EMAIL PROTECTED] schri
Hi!
I'm using the Tomcat 5 JAASRealm for authenticating users with my own
LoginModule. In my LoginModule I am populating the Subject object
delivered by the Realm with Principals, Role Principals and Credentials.
The authentication and the mapping of my user defined roles to tomcat
roles work f