Skip to main content

JAAS: SecurityManager and Subject

No replies
Joined: 2012-10-03

Hi, (Excuse me for my bad english, I speak french).

I use JAAS in my JEE application under glassfish 3.

When I Try to get Subject by this instruction :Subject subject = Subject.getSubject( AccessController.getContext()); the subject returned is null, and I have also System.getSecurityManager() null (Security manager enabled in glassfish).

I don't understand why theses objects are null.

Thank you.

Ps: The same instructions work under Tomcat but not under glassfish.