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:07:20 GMT
yoavs       2004/11/17 09:07:20

  Modified:    catalina/src/share/org/apache/catalina/realm Tag: TOMCAT_5_0
                        MemoryRealm.java
               webapps/docs Tag: TOMCAT_5_0 changelog.xml
  Log:
  Bugzilla 32082: Added protected getPrincipals method for easier extension.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.1   +13 -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.4
  retrieving revision 1.4.2.1
  diff -u -r1.4 -r1.4.2.1
  --- MemoryRealm.java	27 Feb 2004 14:58:45 -0000	1.4
  +++ MemoryRealm.java	17 Nov 2004 17:07:20 -0000	1.4.2.1
  @@ -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,16 @@
   
           return (Principal) principals.get(username);
   
  +    }
  +
  +    /**
  +     * Returns the collection of valid principals for this realm.
  +     * The keys to the map are Strings, the user names.
  +     *
  +     * @return The principals
  +     */
  +    protected Map getPrincipals() {
  +        return principals;
       }
   
   
  
  
  
  No                   revision
  No                   revision
  1.70.2.70 +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.70.2.69
  retrieving revision 1.70.2.70
  diff -u -r1.70.2.69 -r1.70.2.70
  --- changelog.xml	17 Nov 2004 17:00:51 -0000	1.70.2.69
  +++ changelog.xml	17 Nov 2004 17:07:20 -0000	1.70.2.70
  @@ -58,6 +58,9 @@
         <update> 
           <bug>32276</bug>: Add developer info to Realm How-To. (yoavs) 
         </update> 
  +      <fix> 
  +        <bug>32082</bug>: Add protected getPrincipals method to MemoryRealm
for easier extension. (yoavs)
  +      </fix>
       </changelog>
     </subsection>
   
  
  
  

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