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
Context with 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(String userName,
String password,
Request request) |
void |
logout(Request request) |
boolean authenticate(Request request, HttpServletResponse response) throws IOException
Context
with which this Authenticator is
associated.request
- Request we are processingresponse
- Response we are populatingtrue
if any specified constraints have been
satisfied, or false
if one more constraints were not
satisfied (in which case an authentication challenge will have
been written to the response).IOException
- if an input/output error occurs@Deprecated boolean authenticate(Request request, HttpServletResponse response, LoginConfig config) throws IOException
authenticate(Request, HttpServletResponse)
.
This will be removed / have reduced visibility in Tomcat
8.0.xrequest
- Request we are processingresponse
- Response we are populatingconfig
- Login configuration describing how authentication
should be performedtrue
if any specified constraints have been
satisfied, or false
if one more constraints were not
satisfied (in which case an authentication challenge will have
been written to the response).IOException
- if an input/output error occursvoid login(String userName, String password, Request request) throws ServletException
ServletException
void logout(Request request) throws ServletException
ServletException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.