org.apache.jcs.utils.servlet
Class BasicHttpAuthenticator
java.lang.Object
org.apache.jcs.utils.servlet.BasicHttpAuthenticator
- public class BasicHttpAuthenticator
- extends java.lang.Object
Used to perform basic http authentication.
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 |
BasicHttpAuthenticator
public BasicHttpAuthenticator(java.lang.String jcs)
- Parameters:
jcs
- the jcs parameter used to specify the "WWW-Authenticate" http
response header.
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.