Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

 « Return to Thread: Getting current Subject in Geronimo 2.1

Re: Getting current Subject in Geronimo 2.1

by Pawel B :: Rate this Message:

Reply to Author | View in Thread

Thanks David,

The JACC interfaces method works like a charm.
I wasn't precise enough. I'm getting Subject in servlet and I'm using Geronimo embedded in Websphere Application Server Community Edition.

Regards
Pawel

djencks wrote:
It's always been there when I look.  Where are you trying to access it  
from?

You can also use JACC interfaces

javax
..security
..jacc.PolicyContext.getContext("javax.security.auth.Subject.container");

david jencks

 « Return to Thread: Getting current Subject in Geronimo 2.1