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 DefaultRealmConnector.java
Date Sat, 30 Oct 1999 01:41:37 GMT
craigmcc    99/10/29 18:41:36

  Modified:    src/share/org/apache/tomcat/security
                        DefaultRealmConnector.java
  Log:
  Add the last checkin for the new method added to RealmConnector.
  
  Revision  Changes    Path
  1.2       +25 -3     jakarta-tomcat/src/share/org/apache/tomcat/security/DefaultRealmConnector.java
  
  Index: DefaultRealmConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/DefaultRealmConnector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultRealmConnector.java	1999/10/17 00:34:46	1.1
  +++ DefaultRealmConnector.java	1999/10/30 01:41:36	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/DefaultRealmConnector.java,v
1.1 1999/10/17 00:34:46 craigmcc Exp $
  - * $Revision: 1.1 $
  - * $Date: 1999/10/17 00:34:46 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/security/DefaultRealmConnector.java,v
1.2 1999/10/30 01:41:36 craigmcc Exp $
  + * $Revision: 1.2 $
  + * $Date: 1999/10/30 01:41:36 $
    *
    * ====================================================================
    *
  @@ -74,7 +74,7 @@
    * no container-managed authentication or access control are desired.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.1 $ $Date: 1999/10/17 00:34:46 $
  + * @version $Revision: 1.2 $ $Date: 1999/10/30 01:41:36 $
    */
   
   public final class DefaultRealmConnector
  @@ -108,6 +108,28 @@
        *  has been called, or after <code>stop()</code> has been called
        */
       public Principal authenticate(String username, String credentials) {
  +
  +	if (context == null) {
  +	    // XXX Internationalization
  +	    throw new IllegalStateException("DefaultRealmConnector:  " +
  +					    "Not started");
  +	}
  +	return (null);
  +
  +    }
  +
  +
  +    /**
  +     * 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) {
   
   	if (context == null) {
   	    // XXX Internationalization
  
  
  

Mime
View raw message