Class UserUtils

java.lang.Object
com.skava.user.UserUtils

@Service("userCookieProcessor") public class UserUtils extends Object
  • 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 response HttpServletResponse
      origin - the origin String
      customer - the customer CustomerOrchestration
      sessionId - the session id String
      refreshId - the refresh token String
      storeId - the storeId String
      isSecureFromService - contains isSecureFromService value
    • removeSessionCookieinResponse

      public void removeSessionCookieinResponse(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, String storeId, Boolean isSecureFromService)
      remove the session cookiein response.
      Parameters:
      httpResponse - the http response HttpServletResponse
      origin - the origin String
      storeId - the storeId String
      isSecureFromService - isSecureFromService
    • getCookieConstruction

      public String getCookieConstruction(String cookieName, String cookieValue, long expiry, Boolean isSecureFromService)

      getCookieConstruction

      .
      Parameters:
      cookieName - the cookie name
      cookieValue - the cookie value
      expiry - the expire value
      isSecureFromService - the isSecureFromService value
      Returns:
      {String}
    • auth0ParseCacheKey

      public String auth0ParseCacheKey(String accessToken)

      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