Package lumis.portal.authentication
Class AuthenticationFilter
- java.lang.Object
-
- lumis.portal.authentication.AuthenticationFilter
-
- All Implemented Interfaces:
Filter
public class AuthenticationFilter extends Object implements Filter
Filter that do authentication handling on requests done to the portal.This filter tries to obtain a
SessionConfig
to the authenticated user and place it available in the current thread. The following rules are applied when trying to obtain aSessionConfig
:- Tries to recover the current
SessionConfig
fromHttpSession
. This session id is verified against the cookie corresponding id, if any. - Tries to recreate the
SessionConfig
using the request cookies. - If the
SessionConfig
has expired, it is discarded. - If no suitable
SessionConfig
was obtained, a guest session is created.
- Since:
- 4.0.7
- Version:
- $Revision: 24202 $ $Date: 2020-10-26 12:33:52 -0300 (Mon, 26 Oct 2020) $
-
-
Constructor Summary
Constructors Constructor Description AuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
void
init(FilterConfig filterConfig)
-
-
-
Method Detail
-
init
public void init(FilterConfig filterConfig) throws ServletException
- Specified by:
init
in interfaceFilter
- Throws:
ServletException
-
doFilter
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException
- Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
-