org.pentaho.platform.web.http.security
Class SecurityStartupFilter
java.lang.Object
org.pentaho.platform.web.http.security.SecurityStartupFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class SecurityStartupFilter
- extends Object
- implements javax.servlet.Filter
Filter that does the following:
- Synchronize Pentaho session with Spring Security's authenticated user.
- Run session startup actions when a user has just logged in. Note that this happens on the request
after the login form submit request.
Field Summary |
static String |
anonymousUser
Lazily initialized since PentahoSystem isn't available when this class is constructed. |
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
void |
setInjectAnonymous(boolean injectAnonymous)
|
anonymousUser
public static String anonymousUser
- Lazily initialized since PentahoSystem isn't available when this class is constructed.
SecurityStartupFilter
public SecurityStartupFilter()
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
setInjectAnonymous
public void setInjectAnonymous(boolean injectAnonymous)