|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.talika.tarsis.filters.AbstractFilter
org.talika.tarsis.filters.CommandFilter
org.talika.tarsis.filters.security.LoginFilter
Login filter checks if client's request has a valid security session and if not tries to authenticate client.
| Field Summary | |
|---|---|
static java.lang.String |
LOGIN_PAGE_PARAM
Login page parameter name. |
static java.lang.String |
LOGIN_TRIES_PARAM
Number login of tries parameter name. |
| Constructor Summary | |
|---|---|
LoginFilter()
|
|
| Method Summary | |
|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Checks if client's request has a valid security session and if not tries to authenticate client. |
void |
init(javax.servlet.FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
protected void |
processLogin(javax.servlet.http.HttpServletRequest request,
java.lang.String username,
java.lang.String password)
Tries to log client using username and password. |
| Methods inherited from class org.talika.tarsis.filters.CommandFilter |
|---|
destroy, findCommand, getCommandFactory |
| Methods inherited from class org.talika.tarsis.filters.AbstractFilter |
|---|
getContext, getFilterConfig, getLogger |
| 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 LOGIN_PAGE_PARAM
public static final java.lang.String LOGIN_TRIES_PARAM
| Constructor Detail |
public LoginFilter()
| Method Detail |
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
int method.
init in interface javax.servlet.Filterinit in class CommandFilterfilterConfig - FilterConfig filter configutarion.
javax.servlet.ServletException - if an exception has occurred that interferes with the
filter's normal operationFilter.init(FilterConfig)
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterdoFilter in class AbstractFilterrequest - ServletRequest the ServletRequest object
that contains the client's request.response - ServletResponse the ServletResponse object
that contains the servlet's response.chain - FilterChain invocation chain of filtered request.
java.io.IOException - if an input or output exception occurs
javax.servlet.ServletException - if an exception has occurred that interferes with the
filter's normal operationFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
protected void processLogin(javax.servlet.http.HttpServletRequest request,
java.lang.String username,
java.lang.String password)
throws AuthenticationFailedException
SecuritySession and stores it in client's
HttpSession.
request - HttpServletRequest client's request.username - String user name.password - String user password.
AuthenticationFailedException - if can't authenticate user using given
username and passowrd.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||