|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.utils.servlet.BasicHttpAuthenticator
Used to perform basic http authentication.
Field Summary | |
private static org.apache.commons.logging.Log |
log
|
private java.lang.String |
wwwAuthHeader
Contains the "WWW-Authenticate" http response header. |
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. |
private boolean |
authorized(java.lang.String authHeader)
Returns true iff the given "Authorization" http request header contains authorized user id and password. |
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 |
Field Detail |
private static final org.apache.commons.logging.Log log
private final java.lang.String wwwAuthHeader
Constructor Detail |
public BasicHttpAuthenticator(java.lang.String jcs)
jcs
- the jcs parameter used to specify the "WWW-Authenticate" http
response header.Method Detail |
public final boolean authenticate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
"Authorization"
header information.
private boolean authorized(java.lang.String authHeader) throws java.io.IOException
java.io.IOException
protected boolean checkPassword(java.lang.String userid, java.lang.String password)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |