Package org.apache.catalina
Interface Authenticator
- 
- All Known Implementing Classes:
- AuthenticatorBase,- BasicAuthenticator,- DigestAuthenticator,- FormAuthenticator,- NonLoginAuthenticator,- SpnegoAuthenticator,- SSLAuthenticator
 
 public interface AuthenticatorAn Authenticator is a component (usually a Valve or Container) that provides some sort of authentication service.- Author:
- Craig R. McClanahan
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticate(Request request, HttpServletResponse response)Authenticate the user making this request, based on the login configuration of theContextwith which this Authenticator is associated.voidlogin(java.lang.String userName, java.lang.String password, Request request)voidlogout(Request request)
 
- 
- 
- 
Method Detail- 
authenticateboolean authenticate(Request request, HttpServletResponse response) throws java.io.IOException Authenticate the user making this request, based on the login configuration of theContextwith which this Authenticator is associated.- Parameters:
- request- Request we are processing
- response- Response we are populating
- Returns:
- trueif any specified constraints have been satisfied, or- falseif one more constraints were not satisfied (in which case an authentication challenge will have been written to the response).
- Throws:
- java.io.IOException- if an input/output error occurs
 
 - 
loginvoid login(java.lang.String userName, java.lang.String password, Request request) throws ServletException- Throws:
- ServletException
 
 - 
logoutvoid logout(Request request) 
 
- 
 
-