|
Apache Tomcat 7.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Authenticator
An Authenticator is a component (usually a Valve or Container) that provides some sort of authentication service.
Method Summary | |
---|---|
boolean |
authenticate(Request request,
javax.servlet.http.HttpServletResponse response,
LoginConfig config)
Authenticate the user making this request, based on the specified login configuration. |
void |
register(Request request,
javax.servlet.http.HttpServletResponse response,
Principal principal,
String authType,
String username,
String password)
Register an authenticated Principal and authentication type in our request, in the current session (if there is one), and with our SingleSignOn valve, if there is one. |
Method Detail |
---|
boolean authenticate(Request request, javax.servlet.http.HttpServletResponse response, LoginConfig config) throws IOException
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 populatingconfig
- Login configuration describing how authentication
should be performed
IOException
- if an input/output error occursvoid register(Request request, javax.servlet.http.HttpServletResponse response, Principal principal, String authType, String username, String password)
request
- The servlet request we are processingresponse
- The servlet response we are populatingprincipal
- The authenticated Principal to be registeredauthType
- The authentication type to be registeredusername
- Username used to authenticate (if any)password
- Password used to authenticate (if any)
|
Apache Tomcat 7.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |