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

Getting current Subject in Geronimo 2.1

View: New views
3 Messages — Rating Filter:   Alert me  

Getting current Subject in Geronimo 2.1

by Pawel B :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

How to get the current subject in Geronimo 2.1? The org.apache.geronimo.security.ContextManager class seems to be not available.

Regards
Pawel

Re: Getting current Subject in Geronimo 2.1

by djencks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jun 27, 2009, at 12:49 PM, Pawel B wrote:

>
> Hi
>
> How to get the current subject in Geronimo 2.1? The
> org.apache.geronimo.security.ContextManager class seems to be not  
> available.

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


>
> Regards
> Pawel
> --
> View this message in context: http://www.nabble.com/Getting-current-Subject-in-Geronimo-2.1-tp24236102s134p24236102.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>

Re: Getting current Subject in Geronimo 2.1

by Pawel B :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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