users@glassfish.java.net

Accessing the JAAS subject

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Nov 2007 11:31:39 PST

Hi,


I would like to access the JAAS subject for an authenticated user. The JAAS approach

 Subject subject = Subject.getSubject(AccessController.getContext());

returns null. What is the correct method to access the subject?

Cheers
  Erik
[Message sent by forum member 'erikengerd' (erikengerd)]

http://forums.java.net/jive/thread.jspa?messageID=245857