users@glassfish.java.net

SecurityContext does not get cleared on server restart

From: Skanda Prasad <skanda.prasad.ganapathy_at_ericsson.com>
Date: Tue, 20 Oct 2009 05:38:28 -0700 (PDT)

Hi All,

I'm clearing the SecurityContext on server shutdown using the following
code:

com.sun.enterprise.security.SecurityContext.setCurrent(null);
com.sun.enterprise.security.SecurityContext sc =
com.sun.enterprise.security.SecurityContext.getCurrent();
sc.getSubject().getPrincipals().clear();
sc.getSubject().getPrivateCredentials().clear();
sc.getSubject().getPublicCredentials().clear();

But after the domain/server restart, i find that all the Principals still
exist in the SecurityContext....

Could someone please let me know how to clear the SecurityContext???

Regards,
Skanda
-- 
View this message in context: http://www.nabble.com/SecurityContext-does-not-get-cleared-on-server-restart-tp25974336p25974336.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.