Class DefaultGUIDCookieStrategy
java.lang.Object
de.hybris.platform.yacceleratorstorefront.security.impl.DefaultGUIDCookieStrategy
- All Implemented Interfaces:
GUIDCookieStrategy
Default implementation of
GUIDCookieStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringvoiddeleteCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Removes the GUID cookieprotected org.springframework.web.util.CookieGeneratorprotected SecureRandomvoidsetCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Generates a UID and stores it as Cookie and session attributevoidsetCookieGenerator(org.springframework.web.util.CookieGenerator cookieGenerator)
-
Constructor Details
-
DefaultGUIDCookieStrategy
- Throws:
NoSuchAlgorithmException
-
-
Method Details
-
setCookie
public void setCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from interface:GUIDCookieStrategyGenerates a UID and stores it as Cookie and session attribute- Specified by:
setCookiein interfaceGUIDCookieStrategy
-
deleteCookie
public void deleteCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from interface:GUIDCookieStrategyRemoves the GUID cookie- Specified by:
deleteCookiein interfaceGUIDCookieStrategy
-
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
-