User: luke_t Date: 01/12/18 18:29:39 Modified: src/main/org/jboss/security/auth/spi AbstractServerLoginModule.java Log: added jboss logger Revision Changes Path 1.5 +9 -6 jbosssx/src/main/org/jboss/security/auth/spi/AbstractServerLoginModule.java Index: AbstractServerLoginModule.java =================================================================== RCS file: /cvsroot/jboss/jbosssx/src/main/org/jboss/security/auth/spi/AbstractServerLoginModule.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- AbstractServerLoginModule.java 2001/12/17 00:47:22 1.4 +++ AbstractServerLoginModule.java 2001/12/19 02:29:39 1.5 @@ -20,6 +20,8 @@ import org.jboss.security.NestableGroup; import org.jboss.security.SimpleGroup; +import org.jboss.logging.Logger; + /** * This class implements the common functionality required for a JAAS * server side LoginModule and implements the JBossSX standard Subject usage @@ -47,7 +49,7 @@ * *@author <a href="[EMAIL PROTECTED]">Edward Kenworthy</a>, 12th Dec 2000 *@author [EMAIL PROTECTED] - *@version $Revision: 1.4 $ + *@version $Revision: 1.5 $ */ public abstract class AbstractServerLoginModule implements LoginModule { @@ -59,6 +61,8 @@ /** Flag indicating if the shared credential should be used */ protected boolean useFirstPass; + protected final Logger log = Logger.getLogger(getClass().getName()); + //--- Begin LoginModule interface methods /** @@ -118,7 +122,6 @@ e.printStackTrace(); } } - return false; } @@ -152,7 +155,7 @@ subjectGroup.addMember(tmp); subjectGroup = tmp; } - // Copy the group members to the Subject group + // Copy the group members to the Subject group Enumeration members = group.members(); while(members.hasMoreElements()) { @@ -178,11 +181,11 @@ */ public boolean logout() throws LoginException { - // Remove the user identity + // Remove the user identity Principal identity = getIdentity(); Set principals = subject.getPrincipals(); principals.remove(identity); - // Remove any added Groups... + // Remove any added Groups... return true; } //--- End LoginModule interface methods @@ -233,7 +236,7 @@ break; } } - // If we did not find a group create one + // If we did not find a group create one if(roles == null) { roles = new NestableGroup(name);
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development