org.apache.jcs.utils.servlet
Class BasicHttpAuthenticator

java.lang.Object
  extended byorg.apache.jcs.utils.servlet.BasicHttpAuthenticator

public class BasicHttpAuthenticator
extends java.lang.Object

Used to perform basic http authentication.


Constructor Summary
BasicHttpAuthenticator(java.lang.String jcs)
           
 
Method Summary
 boolean authenticate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Authenticates the http "Authorization" header information.
protected  boolean checkPassword(java.lang.String userid, java.lang.String password)
          Default implementation of checking the password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHttpAuthenticator

public BasicHttpAuthenticator(java.lang.String jcs)
Parameters:
jcs - the jcs parameter used to specify the "WWW-Authenticate" http response header.
Method Detail

authenticate

public final boolean authenticate(javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res)
Authenticates the http "Authorization" header information.


checkPassword

protected boolean checkPassword(java.lang.String userid,
                                java.lang.String password)
Default implementation of checking the password.

Returns:
true iff the given user id and password is valid.


Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.