tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml
Date Wed, 17 Nov 2004 17:14:37 GMT
yoavs       2004/11/17 09:14:37

  Modified:    catalina/src/share/org/apache/catalina/realm
                        MemoryRealm.java
               webapps/docs changelog.xml
  Log:
  Bugzilla 32082: added protected getPrincipals method to MemoryRealm for easier extension.
  
  Revision  Changes    Path
  1.8       +12 -2     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/MemoryRealm.java
  
  Index: MemoryRealm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/MemoryRealm.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MemoryRealm.java	24 Sep 2004 07:25:07 -0000	1.7
  +++ MemoryRealm.java	17 Nov 2004 17:14:36 -0000	1.8
  @@ -22,6 +22,7 @@
   import java.io.File;
   import java.util.ArrayList;
   import java.util.HashMap;
  +import java.util.Map;
   import org.apache.catalina.Container;
   import org.apache.catalina.LifecycleException;
   import org.apache.catalina.util.StringManager;
  @@ -87,7 +88,7 @@
       /**
        * The set of valid Principals for this Realm, keyed by user name.
        */
  -    private HashMap principals = new HashMap();
  +    private Map principals = new HashMap();
   
   
       /**
  @@ -266,6 +267,15 @@
   
           return (Principal) principals.get(username);
   
  +    }
  +
  +    /**
  +     * Returns the principals for this realm.
  +     *
  +     * @return The principals, keyed by user name (a String)
  +     */
  +    protected Map getPrincipals() {
  +        return principals;
       }
   
   
  
  
  
  1.167     +3 -0      jakarta-tomcat-catalina/webapps/docs/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
  retrieving revision 1.166
  retrieving revision 1.167
  diff -u -r1.166 -r1.167
  --- changelog.xml	17 Nov 2004 16:50:31 -0000	1.166
  +++ changelog.xml	17 Nov 2004 17:14:37 -0000	1.167
  @@ -43,6 +43,9 @@
         <update>
           <bug>32276</bug>: Add developer info to Realm How-To. (yoavs)
         </update>
  +      <fix>
  +        <bug>32082</bug>: Added protected getPrincipals method to MemoryRealm
for easier extension. (yoavs)
  +      </fix>
       </changelog>
     </subsection>
   </section>
  
  
  

---------------------------------------------------------------------
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