Class DefaultGUIDCookieStrategy

java.lang.Object
de.hybris.platform.yacceleratorstorefront.security.impl.DefaultGUIDCookieStrategy
All Implemented Interfaces:
GUIDCookieStrategy

public class DefaultGUIDCookieStrategy extends Object implements GUIDCookieStrategy
Default implementation of GUIDCookieStrategy
  • Constructor Details

  • Method Details

    • setCookie

      public void setCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Description copied from interface: GUIDCookieStrategy
      Generates a UID and stores it as Cookie and session attribute
      Specified by:
      setCookie in interface GUIDCookieStrategy
    • deleteCookie

      public void deleteCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Description copied from interface: GUIDCookieStrategy
      Removes the GUID cookie
      Specified by:
      deleteCookie in interface GUIDCookieStrategy
    • createGUID

      protected String createGUID()
    • getCookieGenerator

      protected org.springframework.web.util.CookieGenerator getCookieGenerator()
    • setCookieGenerator

      public void setCookieGenerator(org.springframework.web.util.CookieGenerator cookieGenerator)
      Parameters:
      cookieGenerator - the cookieGenerator to set
    • getRandom

      protected SecureRandom getRandom()