geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r697495 - /geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/auth/BogusLoginModule.java
Date Sun, 21 Sep 2008 12:45:40 GMT
Author: jdillon
Date: Sun Sep 21 05:45:40 2008
New Revision: 697495

URL: http://svn.apache.org/viewvc?rev=697495&view=rev
Log:
Javadoc and logging

Modified:
    geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/auth/BogusLoginModule.java

Modified: geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/auth/BogusLoginModule.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/auth/BogusLoginModule.java?rev=697495&r1=697494&r2=697495&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/auth/BogusLoginModule.java
(original)
+++ geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/auth/BogusLoginModule.java
Sun Sep 21 05:45:40 2008
@@ -39,7 +39,7 @@
 import org.slf4j.LoggerFactory;
 
 /**
- * ???
+ * JAAS <em>bogus</em> login module.  Accepts any username/password as vaild
unless its <tt>bogus</tt>.
  *
  * @version $Rev$ $Date$
  */
@@ -66,6 +66,8 @@
     }
 
     public boolean login() throws LoginException {
+        log.trace("Login");
+
         // Process the username + password callbacks
         Callback[] callbacks = {
             new NameCallback("Username: "),
@@ -96,6 +98,8 @@
     }
 
     public boolean commit() throws LoginException {
+        log.trace("Commiting");
+
         principals.add(new UserPrincipal(username));
 
         subject.getPrincipals().addAll(principals);
@@ -106,12 +110,16 @@
     }
 
     public boolean abort() throws LoginException {
+        log.trace("Aborting");
+
         reset();
 
         return true;
     }
 
     public boolean logout() throws LoginException {
+        log.debug("Logout");
+
         subject.getPrincipals().removeAll(principals);
 
         principals.clear();



Mime
View raw message