tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32082] New: - Minor enhancement allowing MemoryRealm to be more usefully extended
Date Fri, 05 Nov 2004 14:17:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32082>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32082

Minor enhancement allowing MemoryRealm to be more usefully extended

           Summary: Minor enhancement allowing MemoryRealm to be more
                    usefully extended
           Product: Tomcat 5
           Version: 5.5.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: geekatcmu@gmail.com


Due to the private nature of the the principals data element, extensions of
MemoryRealm are extremely limited in what they can do.  The following trivial
patch provides an accessor for the principals element.

diff -u -r1.7 MemoryRealm.java
--- catalina/src/share/org/apache/catalina/realm/MemoryRealm.java 24 Sep 2004
07:25:07 -0000      1.7
+++ catalina/src/share/org/apache/catalina/realm/MemoryRealm.java 4 Nov 2004
19:53:01 -0000
@@ -244,6 +244,16 @@
 
 
     /**
+     * Return a short name for this Realm implementation.
+     */
+    protected HashMap getPrincipals() {
+
+        return (principals);
+
+    }
+
+
+    /**
      * Return the password associated with the given principal's user name.
      */
     protected String getPassword(String username) {

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message