Extend fix for bz49883
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 6 Sep 2010 09:55:44 +0000 (09:55 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 6 Sep 2010 09:55:44 +0000 (09:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@992987 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/realm/LockOutRealm.java
webapps/docs/changelog.xml

index 638c1bd..5edb34d 100644 (file)
@@ -45,6 +45,11 @@ public class LockOutRealm extends CombinedRealm {
     private static final Log log = LogFactory.getLog(LockOutRealm.class);
 
     /**
+     * Descriptive information about this Realm implementation.
+     */
+    protected static final String name = "LockOutRealm";
+
+    /**
      * The number of times in a row a user has to fail authentication to be
      * locked out. Defaults to 5.
      */
@@ -318,6 +323,12 @@ public class LockOutRealm extends CombinedRealm {
     }
 
 
+    @Override
+    protected String getName() {
+        return name;
+    }
+
+
     /**
      * Set the period for which an account will be locked.
      * @param lockOutTime the lockOutTime to set
index 551d5e9..92610a1 100644 (file)
         BCEL code. Based on a patch by Gábor. (markt) 
       </fix>
       <fix>
-        <bug>49883</bug>: Ensure that the CombinedRealm returns a name for use
-        in log messages rather than throwing an
+        <bug>49883</bug>: Ensure that the CombinedRealm and LockOutRealm return
+        a name for use in log messages rather than throwing an
         <code>UnsupportedOperationException</code>. (markt)
       </fix>
       <fix>