tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/security RealmConnector.java
Date Fri, 29 Oct 1999 06:13:23 GMT
craigmcc    99/10/28 23:13:19

  Modified:    src/share/org/apache/tomcat/security RealmConnector.java
  Log:
  Add a second method signature for authenticate(), for use when the credentials
  are a byte array rather than a String.
  
  Revision  Changes    Path
  1.2       +18 -6     jakarta-tomcat/src/share/org/apache/tomcat/security/RealmConnector.java
  
  Index: RealmConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/RealmConnector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RealmConnector.java	1999/10/17 00:19:39	1.1
  +++ RealmConnector.java	1999/10/29 06:13:15	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/RealmConnector.java,v
1.1 1999/10/17 00:19:39 craigmcc Exp $
  - * $Revision: 1.1 $
  - * $Date: 1999/10/17 00:19:39 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/RealmConnector.java,v
1.2 1999/10/29 06:13:15 craigmcc Exp $
  + * $Revision: 1.2 $
  + * $Date: 1999/10/29 06:13:15 $
    *
    * ====================================================================
    *
  @@ -101,7 +101,7 @@
    * 
    * @author Harish Prabandham
    * @author Craig R. McClanahan
  - * @version $Revision: 1.1 $ $Date: 1999/10/17 00:19:39 $
  + * @version $Revision: 1.2 $ $Date: 1999/10/29 06:13:15 $
    */
   
   //
  @@ -118,13 +118,25 @@
        *
        * @param username Username of the Principal to look up
        * @param credentials Password or other credentials to use in
  -     *	authenticating this username (XXX: Is a String sufficient
  -     *  for all possible cases?)
  +     *	authenticating this username
        *
        * @exception IllegalStateException if called before <code>start()</code>
        *  has been called, or after <code>stop()</code> has been called
        */
       public Principal authenticate(String username, String credentials);
  +
  +
  +    /**
  +     * Returns the Principal associated with the specified username and
  +     * credentials, if there is one, or <code>null</code> otherwise.
  +     *
  +     * @param username Username of the Principal to look up
  +     * @param credentials Credentials to use in authenticating this username
  +     *
  +     * @exception IllegalStateException if called before <code>start()</code>
  +     *  has been called, or after <code>stop()</code> has been called
  +     */
  +    public Principal authenticate(String username, byte[] credentials);
   
   
       /**
  
  
  

Mime
View raw message