Interface CookieUtils

All Known Implementing Classes:
GenericCookieUtilsImpl

public interface CookieUtils
  • Field Details

  • Method Details

    • shouldUseSecureCookieIfApplicable

      Boolean shouldUseSecureCookieIfApplicable()
      Checks cookies.use.secure System Property, which determines whether to use HTTPS cookie over HTTPS connection or HTTP only.
      Returns:
      value of cookies.use.secure
    • getCookieValue

      String getCookieValue(jakarta.servlet.http.HttpServletRequest request, String cookieName)
    • setCookieValue

      void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure)
      Parameters:
      response -
      cookieName -
      cookieValue -
      path -
      maxAge -
      isSecure -
    • setCookieValue

      void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue)
    • invalidateCookie

      void invalidateCookie(jakarta.servlet.http.HttpServletResponse response, String cookieName)