Side issue from bug 47841
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 16 Dec 2009 11:02:54 +0000 (11:02 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 16 Dec 2009 11:02:54 +0000 (11:02 +0000)
Overrides getInfo() in Realms so log messages that use it have useful info

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@891185 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/realm/DataSourceRealm.java
java/org/apache/catalina/realm/JAASRealm.java
java/org/apache/catalina/realm/JDBCRealm.java

index faaa4d9..8deb93a 100644 (file)
@@ -250,6 +250,18 @@ public class DataSourceRealm
       this.userTable = userTable;
     }
 
+    /**
+     * Return descriptive information about this Realm implementation and
+     * the corresponding version number, in the format
+     * <code>&lt;description&gt;/&lt;version&gt;</code>.
+     */
+    @Override
+       public String getInfo() {
+
+        return info;
+
+    }
+
 
     // --------------------------------------------------------- Public Methods
 
index 3c0cc32..9c8411f 100644 (file)
@@ -309,7 +309,19 @@ public class JAASRealm
         this.userClassNames = userClassNames;
     }
 
+    /**
+     * Return descriptive information about this Realm implementation and
+     * the corresponding version number, in the format
+     * <code>&lt;description&gt;/&lt;version&gt;</code>.
+     */
+    @Override
+       public String getInfo() {
+
+        return info;
 
+    }
+
+    
     // --------------------------------------------------------- Public Methods
 
 
index 9ffa29c..391e0a1 100644 (file)
@@ -311,6 +311,17 @@ public class JDBCRealm
       this.userTable = userTable;
     }
 
+    /**
+     * Return descriptive information about this Realm implementation and
+     * the corresponding version number, in the format
+     * <code>&lt;description&gt;/&lt;version&gt;</code>.
+     */
+    @Override
+       public String getInfo() {
+
+        return info;
+
+    }
 
     // --------------------------------------------------------- Public Methods