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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]