org.apache.catalina.authenticator
public class FormAuthenticator extends AuthenticatorBase
Version: $Revision: 892804 $ $Date: 2009-12-21 13:56:09 +0100 (Mon, 21 Dec 2009) $
Field Summary | |
---|---|
protected String | characterEncoding
Character encoding to use to read the username and password parameters
from the request. |
protected static String | info
Descriptive information about this implementation. |
Method Summary | |
---|---|
boolean | authenticate(Request request, Response response, LoginConfig config)
Authenticate the user making this request, based on the specified
login configuration. |
protected void | forwardToErrorPage(Request request, Response response, LoginConfig config)
Called to forward to the error page
|
protected void | forwardToLoginPage(Request request, Response response, LoginConfig config)
Called to forward to the login page
|
String | getCharacterEncoding()
Return the character encoding to use to read the username and password. |
String | getInfo()
Return descriptive information about this Valve implementation. |
protected boolean | matchRequest(Request request)
Does this request match the saved one (so that it must be the redirect
we signalled after successful authentication?
|
protected boolean | restoreRequest(Request request, Session session)
Restore the original request from information stored in our session.
|
protected String | savedRequestURL(Session session)
Return the request URI (with the corresponding query string, if any)
from the saved request so that we can redirect to it.
|
protected void | saveRequest(Request request, Session session)
Save the original request information into our session.
|
void | setCharacterEncoding(String encoding)
Set the character encoding to be used to read the username and password. |
true
if any specified
constraint has been satisfied, or false
if we have
created a response challenge already.
Parameters: request Request we are processing response Response we are creating config Login configuration describing how authentication should be performed
Throws: IOException if an input/output error occurs
Parameters: request Request we are processing response Response we are creating config Login configuration describing how authentication should be performed
Throws: IOException If the forward to the error page fails and the call
to HttpServletResponse#sendError(int, String)
throws an IOException
Parameters: request Request we are processing response Response we are creating config Login configuration describing how authentication should be performed
Throws: IOException If the forward to the login page fails and the call
to HttpServletResponse#sendError(int, String)
throws an IOException
Parameters: request The request to be verified
false
; otherwise, return
true
.
Parameters: request The request to be restored session The session containing the saved information
Parameters: session Our current session
Parameters: request The request to be saved session The session to contain the saved information
Throws: IOException