@Named(value="formAuthenticator") public class FormLoginAuthenticator extends AbstractAuthenticator
AbstractAuthenticator that redirects to a form. Note that other
implementations can go wild because they have access to the
HttpServletRequest and HttpServletResponse.PRINCIPALAUTH_STATE, RETURN_URI| Constructor and Description |
|---|
FormLoginAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
String authStateValue,
String returnUri) |
boolean |
canCommence(javax.servlet.http.HttpServletRequest request) |
protected void |
processForm(javax.servlet.http.HttpServletRequest request)
Hook for actually validating the username/ password against a database,
ldap, external webservice or whatever to perform authentication
|
destroy, doFilter, init, setPrincipalgetAuthStateValue, getReturnUri, setAuthStateValuepublic boolean canCommence(javax.servlet.http.HttpServletRequest request)
canCommence in class AbstractAuthenticatorpublic void authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
String authStateValue,
String returnUri)
throws IOException,
javax.servlet.ServletException
authenticate in class AbstractAuthenticatorIOExceptionjavax.servlet.ServletExceptionprotected void processForm(javax.servlet.http.HttpServletRequest request)
request - the HttpServletRequestCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.