Class DefaultGUIDCookieStrategy
- java.lang.Object
-
- de.hybris.platform.yacceleratorstorefront.security.impl.DefaultGUIDCookieStrategy
-
- All Implemented Interfaces:
GUIDCookieStrategy
public class DefaultGUIDCookieStrategy extends java.lang.Object implements GUIDCookieStrategy
Default implementation ofGUIDCookieStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultGUIDCookieStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcreateGUID()voiddeleteCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Removes the GUID cookieprotected org.springframework.web.util.CookieGeneratorgetCookieGenerator()protected java.security.SecureRandomgetRandom()voidsetCookie(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)
-
-
-
Method Detail
-
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
protected java.lang.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 java.security.SecureRandom getRandom()
-
-