Author: shane.bryzak(a)jboss.com
Date: 2008-01-31 02:43:40 -0500 (Thu, 31 Jan 2008)
New Revision: 7320
Modified:
trunk/src/main/org/jboss/seam/security/Identity.java
Log:
JBSEAM-895
Modified: trunk/src/main/org/jboss/seam/security/Identity.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/Identity.java 2008-01-31 07:38:49 UTC (rev
7319)
+++ trunk/src/main/org/jboss/seam/security/Identity.java 2008-01-31 07:43:40 UTC (rev
7320)
@@ -301,18 +301,10 @@
* group from the user's subject.
*
*/
- protected void unAuthenticate()
+ public void unAuthenticate()
{
principal = null;
-
- for ( Group sg : getSubject().getPrincipals(Group.class) )
- {
- if ( ROLES_GROUP.equals( sg.getName() ) )
- {
- getSubject().getPrincipals().remove(sg);
- break;
- }
- }
+ subject = new Subject();
}
protected LoginContext getLoginContext() throws LoginException
Show replies by thread