Package com.skava.user
Class UserUtils
java.lang.Object
com.skava.user.UserUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauth0ParseCacheKey(String accessToken) auth0ParseCacheKeygetCookieConstruction(String cookieName, String cookieValue, long expiry, Boolean isSecureFromService) getCookieConstructionjakarta.servlet.http.HttpServletRequestjakarta.servlet.http.HttpServletResponsevoidremoveSessionCookieinResponse(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, String storeId, Boolean isSecureFromService) remove the session cookiein response.voidsetSessionCookieinResponse(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, CustomerOrchestration customer, String sessionId, String refreshId, String storeId, Boolean isSecureFromService) Sets the session cookiein response.
-
Constructor Details
-
UserUtils
public UserUtils()
-
-
Method Details
-
setSessionCookieinResponse
public void setSessionCookieinResponse(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, CustomerOrchestration customer, String sessionId, String refreshId, String storeId, Boolean isSecureFromService) Sets the session cookiein response.- Parameters:
httpResponse- the http responseHttpServletResponseorigin- the originStringcustomer- the customerCustomerOrchestrationsessionId- the session idStringrefreshId- the refresh tokenStringstoreId- the storeIdStringisSecureFromService- contains isSecureFromService value
-
removeSessionCookieinResponse
public void removeSessionCookieinResponse(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, String storeId, Boolean isSecureFromService) remove the session cookiein response. -
getCookieConstruction
public String getCookieConstruction(String cookieName, String cookieValue, long expiry, Boolean isSecureFromService) getCookieConstruction
.- Parameters:
cookieName- the cookie namecookieValue- the cookie valueexpiry- the expire valueisSecureFromService- the isSecureFromService value- Returns:
- {
String}
-
auth0ParseCacheKey
auth0ParseCacheKey
.- Parameters:
accessToken- the access Token- Returns:
- Return authkey
-
getHttpServerletResponseDetails
public jakarta.servlet.http.HttpServletResponse getHttpServerletResponseDetails()- Returns:
- HttpServletResponse
-
getHttpServerletRequest
public jakarta.servlet.http.HttpServletRequest getHttpServerletRequest()- Returns:
- HttpServletRequest
-