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 Stringprotected Patternprotected SystemPropertiesServiceFields 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) voidinvalidateCookie(jakarta.servlet.http.HttpServletResponse response, String cookieName) voidsetCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue) voidsetCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure) Checkscookies.use.secureSystem 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:CookieUtilsCheckscookies.use.secureSystem Property, which determines whether to use HTTPS cookie over HTTPS connection or HTTP only.- Specified by:
shouldUseSecureCookieIfApplicablein interfaceCookieUtils- Returns:
- value of
cookies.use.secure
-
getCookieValue
- Specified by:
getCookieValuein interfaceCookieUtils
-
setCookieValue
public void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure) - Specified by:
setCookieValuein interfaceCookieUtils
-
setCookieValue
public void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue) - Specified by:
setCookieValuein interfaceCookieUtils
-
invalidateCookie
- Specified by:
invalidateCookiein interfaceCookieUtils
-