users@glassfish.java.net

Re: Get a session object after login with Realm

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Mar 2009 00:11:31 PDT

You could get the Subject from the SecurityContext and use the subject's members like public credentials to store the information as in:

SecurityContext.getCurrent().getSubject().getPublicCredentials().add("company");

HTH
Nithya
[Message sent by forum member 'nitkal' (nitkal)]

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