public class FormLogin extends LoginHandlerBase implements LoginHandler
Modifier and Type | Field and Description |
---|---|
static Set<String> |
AUTHENTICATION_ATTRIBUTES |
static String |
PARAMETER_PSWD |
static String |
PARAMETER_REALM |
static String |
PARAMETER_RETURN_TO |
static String |
PARAMETER_USER_ID |
Constructor and Description |
---|
FormLogin() |
Modifier and Type | Method and Description |
---|---|
String |
getJaasChain() |
LoginResult |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns a login result or
LoginResult.NOT_HANDLED if the handler can't handle the request. |
protected boolean |
requiresRedirect(javax.servlet.http.HttpServletRequest request)
We can assume that a redirect is needed in case the following criteria is met:
We are dealing with a
POST http request
Request query string does not contain any of the authentication parameters, because otherwise
we are probably dealing with e.g. |
void |
setJaasChain(String jaasChain) |
authenticate
public static final String PARAMETER_USER_ID
public static final String PARAMETER_PSWD
public static final String PARAMETER_REALM
public static final String PARAMETER_RETURN_TO
public LoginResult handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
LoginHandler
LoginResult.NOT_HANDLED
if the handler can't handle the request.handle
in interface LoginHandler
protected boolean requiresRedirect(javax.servlet.http.HttpServletRequest request)
POST
http requestpublic String getJaasChain()
public void setJaasChain(String jaasChain)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.