Class SessionFixationProtectionFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.broadleafcommerce.profile.web.site.security.SessionFixationProtectionFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
@Deprecated
@Component("blSessionFixationProtectionFilter")
public class SessionFixationProtectionFilter
extends org.springframework.web.filter.GenericFilterBean
Deprecated.
Filter used to protected against session fixation attacks while still keeping the same session id on both
http and https protocols. Uses a secondary, https cookie that must be present on every https request for a
given session after the first request. If it's not present and equal to what we expect, we will redirect the
user to "/" and remove his session cookie.
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.security.util.CookieUtilsDeprecated.protected BooleanDeprecated.protected org.broadleafcommerce.common.encryption.EncryptionModuleDeprecated.protected static final StringDeprecated.Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidabortUser(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Deprecated.voiddoFilter(jakarta.servlet.ServletRequest sRequest, jakarta.servlet.ServletResponse sResponse, jakarta.servlet.FilterChain chain) Deprecated.Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Field Details
-
SESSION_ATTR
Deprecated.- See Also:
-
encryptionModule
@Autowired @Qualifier("blSessionFixationEncryptionModule") protected org.broadleafcommerce.common.encryption.EncryptionModule encryptionModuleDeprecated. -
cookieUtils
@Autowired @Qualifier("blCookieUtils") protected org.broadleafcommerce.common.security.util.CookieUtils cookieUtilsDeprecated. -
enabled
Deprecated.
-
-
Constructor Details
-
SessionFixationProtectionFilter
public SessionFixationProtectionFilter()Deprecated.
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest sRequest, jakarta.servlet.ServletResponse sResponse, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException Deprecated.- Throws:
IOExceptionjakarta.servlet.ServletException
-
abortUser
protected void abortUser(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException Deprecated.- Throws:
IOException
-
SessionFixationProtectionStrategyinstead