Interface Authenticator
- All Known Implementing Classes:
AuthenticatorBase, BasicAuthenticator, DigestAuthenticator, FormAuthenticator, NonLoginAuthenticator, SpnegoAuthenticator, SSLAuthenticator
public interface Authenticator
An Authenticator is a component (usually a Valve or Container) that provides some sort of authentication
service.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(Request request, HttpServletResponse response) Authenticate the user making this request, based on the login configuration of theContextwith which this Authenticator is associated.voidLogs in the specified user for the given request.voidLogs out the user associated with the given request.
-
Method Details
-
authenticate
Authenticate the user making this request, based on the login configuration of theContextwith which this Authenticator is associated.- Parameters:
request- Request we are processingresponse- Response we are populating- Returns:
trueif any specified constraints have been satisfied, orfalseif one more constraints were not satisfied (in which case an authentication challenge will have been written to the response).- Throws:
IOException- if an input/output error occurs
-
login
Logs in the specified user for the given request.- Parameters:
userName- the user namepassword- the passwordrequest- the request being processed- Throws:
ServletException- if a login error occurs
-
logout
Logs out the user associated with the given request.- Parameters:
request- the request being processed
-