AbstractRandomSecurityCookieFilter
.
Using the JSESSIONID like this might let an XSS attacker hijack a session. See GitHub issue #484@Deprecated public abstract class AbstractHttpSessionSecurityCookieFilter extends Object implements javax.servlet.Filter
HttpSession
and will only work if the session is enabled.
To setup this filter, add the following line at before any other serve
call in your own
ServletModule.configureServlets()
:
filter("*.jsp").through(HttpSessionSecurityCookieFilter.class);You also have to use a
.jsp
file instead of a .html
as your main GWT file.Modifier | Constructor and Description |
---|---|
protected |
AbstractHttpSessionSecurityCookieFilter(String securityCookieName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deprecated.
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Deprecated.
|
protected abstract javax.servlet.http.HttpSession |
getSession()
Deprecated.
|
void |
init(javax.servlet.FilterConfig filterConfig)
Deprecated.
|
protected AbstractHttpSessionSecurityCookieFilter(String securityCookieName)
public void destroy()
destroy
in interface javax.servlet.Filter
protected abstract javax.servlet.http.HttpSession getSession()
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
Copyright © 2010–2014 Arcbees. All rights reserved.