|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.efaps.ui.filter.AbstractFilter
org.efaps.ui.filter.AbstractAuthenticationFilter
org.efaps.ui.filter.FormBasedAuthenticationFilter
public class FormBasedAuthenticationFilter
| Field Summary | |
|---|---|
static java.lang.String |
INIT_PARAM_LOGIN_PARAM_NAME
|
static java.lang.String |
INIT_PARAM_LOGIN_PARAM_PASSWORD
|
static java.lang.String |
INIT_PARAM_URL_IGNORE
The string is name of the parameter used to define the url where unprotected content lies. |
static java.lang.String |
INIT_PARAM_URL_LOGIN
The string is name of the parameter used to define the url login used to authenticate. |
static java.lang.String |
INIT_PARAM_URL_LOGIN_PAGE
The string is name of the parameter used to define the url login page. |
static java.lang.String |
INIT_PARAM_URL_LOGOUT
The string is name of the parameter used to define the url login used to authenticate. |
static java.lang.String |
SESSIONPARAM_LOGIN_FORWARD
Name of the session variable for the login forward (after the login is done this is the next page). |
| Constructor Summary | |
|---|---|
FormBasedAuthenticationFilter()
|
|
| Method Summary | |
|---|---|
protected void |
doAuthenticate(javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response,
javax.servlet.FilterChain _chain)
Authentication method. |
protected void |
doFilter(javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response,
javax.servlet.FilterChain _chain)
If the current user is already logged in, nothing is filtered. |
protected void |
doSendLoginFrameNotCorrect(javax.servlet.http.HttpServletRequest _req,
javax.servlet.http.HttpServletResponse _res)
This page is sent if the login is not correct. |
void |
init(javax.servlet.FilterConfig _filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
| Methods inherited from class org.efaps.ui.filter.AbstractAuthenticationFilter |
|---|
checkLogin, destroy |
| Methods inherited from class org.efaps.ui.filter.AbstractFilter |
|---|
doFilter, getLoggedInUser, isLoggedIn, setLoggedInUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SESSIONPARAM_LOGIN_FORWARD
public static final java.lang.String INIT_PARAM_URL_LOGIN_PAGE
init(javax.servlet.FilterConfig),
Constant Field Valuespublic static final java.lang.String INIT_PARAM_URL_IGNORE
init(javax.servlet.FilterConfig),
Constant Field Valuespublic static final java.lang.String INIT_PARAM_URL_LOGIN
init(javax.servlet.FilterConfig),
Constant Field Valuespublic static final java.lang.String INIT_PARAM_URL_LOGOUT
init(javax.servlet.FilterConfig),
Constant Field Valuespublic static final java.lang.String INIT_PARAM_LOGIN_PARAM_NAME
public static final java.lang.String INIT_PARAM_LOGIN_PARAM_PASSWORD
| Constructor Detail |
|---|
public FormBasedAuthenticationFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig _filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterinit in class AbstractAuthenticationFilter_filterConfig - filter configuration instance
javax.servlet.ServletException - on error#INIT_PARAM_TITLE,
#title,
AbstractAuthenticationFilter.INIT_PARAM_APPLICATION,
#loginhandler
protected void doFilter(javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response,
javax.servlet.FilterChain _chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in class AbstractAuthenticationFilter_request - HttpServletRequest_response - HttpServletResponse_chain - FilterChain
java.io.IOException - on error
javax.servlet.ServletException - on errordoAuthenticate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.FilterChain)
protected void doAuthenticate(javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response,
javax.servlet.FilterChain _chain)
throws java.io.IOException,
javax.servlet.ServletException
AbstractAuthenticationFilter
doAuthenticate in class AbstractAuthenticationFilter_request - HttpServletRequest_response - HttpServletResponse_chain - FilterChain
java.io.IOException - on error
javax.servlet.ServletException - on errordoSendLoginFrameNotCorrect(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void doSendLoginFrameNotCorrect(javax.servlet.http.HttpServletRequest _req,
javax.servlet.http.HttpServletResponse _res)
throws javax.servlet.ServletException,
java.io.IOException
_req - HttpServletRequest that encapsulates the request to the
servlet_res - HttpServletResponse that encapsulates the response from the
servlet
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||