public interface Authenticator
| Modifier and Type | Method and Description | 
|---|---|
| boolean | authenticate(Request request,
HttpServletResponse response)Authenticate the user making this request, based on the login
configuration of the  Contextwith which this Authenticator is
associated. | 
| boolean | authenticate(Request request,
HttpServletResponse response,
LoginConfig config)Deprecated. 
 Use  authenticate(Request, HttpServletResponse).
This will be removed / have reduced visibility in Tomcat
8.0.x | 
| void | login(java.lang.String userName,
java.lang.String password,
Request request) | 
| void | logout(Request request) | 
boolean authenticate(Request request, HttpServletResponse response) throws java.io.IOException
Context with which this Authenticator is
associated. Return true if any specified constraint has
been satisfied, or false if we have created a response
challenge already.request - Request we are processingresponse - Response we are populatingjava.io.IOException - if an input/output error occurs@Deprecated boolean authenticate(Request request, HttpServletResponse response, LoginConfig config) throws java.io.IOException
authenticate(Request, HttpServletResponse).
This will be removed / have reduced visibility in Tomcat
8.0.xtrue if any specified
constraint has been satisfied, or false if we have
created a response challenge already.request - Request we are processingresponse - Response we are populatingconfig - Login configuration describing how authentication
should be performedjava.io.IOException - if an input/output error occursvoid login(java.lang.String userName,
         java.lang.String password,
         Request request)
           throws ServletException
ServletExceptionvoid logout(Request request) throws ServletException
ServletExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.