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 Details

  • Constructor Details

    • GenericCookieUtilsImpl

      public GenericCookieUtilsImpl()
  • Method Details

    • shouldUseSecureCookieIfApplicable

      public Boolean shouldUseSecureCookieIfApplicable()
      Description copied from interface: CookieUtils
      Checks cookies.use.secure System Property, which determines whether to use HTTPS cookie over HTTPS connection or HTTP only.
      Specified by:
      shouldUseSecureCookieIfApplicable in interface CookieUtils
      Returns:
      value of cookies.use.secure
    • getCookieValue

      public String getCookieValue(jakarta.servlet.http.HttpServletRequest request, String cookieName)
      Specified by:
      getCookieValue in interface CookieUtils
    • setCookieValue

      public void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure)
      Specified by:
      setCookieValue in interface CookieUtils
    • setCookieValue

      public void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue)
      Specified by:
      setCookieValue in interface CookieUtils
    • invalidateCookie

      public void invalidateCookie(jakarta.servlet.http.HttpServletResponse response, String cookieName)
      Specified by:
      invalidateCookie in interface CookieUtils