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.HttpServletRequest
jakarta.servlet.http.HttpServletResponse
void
removeSessionCookieinResponse
(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, String storeId, Boolean isSecureFromService) remove the session cookiein response.void
setSessionCookieinResponse
(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 responseHttpServletResponse
origin
- the originString
customer
- the customerCustomerOrchestration
sessionId
- the session idString
refreshId
- the refresh tokenString
storeId
- the storeIdString
isSecureFromService
- 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
-