Class GenericCookieUtilsImpl
java.lang.Object
org.broadleafcommerce.common.security.util.GenericCookieUtilsImpl
- All Implemented Interfaces:
CookieUtils
@Component("blCookieUtils")
public class GenericCookieUtilsImpl
extends Object
implements CookieUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected Pattern
protected SystemPropertiesService
Fields inherited from interface org.broadleafcommerce.common.security.util.CookieUtils
CUSTOMER_COOKIE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCookieValue
(jakarta.servlet.http.HttpServletRequest request, String cookieName) void
invalidateCookie
(jakarta.servlet.http.HttpServletResponse response, String cookieName) void
setCookieValue
(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue) void
setCookieValue
(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure) Checkscookies.use.secure
System Property, which determines whether to use HTTPS cookie over HTTPS connection or HTTP only.
-
Field Details
-
COOKIE_INVALIDATION_PLACEHOLDER_VALUE
- See Also:
-
systemPropertiesService
-
cookieValuePattern
-
-
Constructor Details
-
GenericCookieUtilsImpl
public GenericCookieUtilsImpl()
-
-
Method Details
-
shouldUseSecureCookieIfApplicable
Description copied from interface:CookieUtils
Checkscookies.use.secure
System Property, which determines whether to use HTTPS cookie over HTTPS connection or HTTP only.- Specified by:
shouldUseSecureCookieIfApplicable
in interfaceCookieUtils
- Returns:
- value of
cookies.use.secure
-
getCookieValue
- Specified by:
getCookieValue
in interfaceCookieUtils
-
setCookieValue
public void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure) - Specified by:
setCookieValue
in interfaceCookieUtils
-
setCookieValue
public void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue) - Specified by:
setCookieValue
in interfaceCookieUtils
-
invalidateCookie
- Specified by:
invalidateCookie
in interfaceCookieUtils
-