java.lang.Object
com.skava.marketplace.orchestration.utils.UserUtils

@Service("userCookieProcessor") public class UserUtils extends Object
The Class UserUtils.
  • Field Details

  • Constructor Details

    • UserUtils

      public UserUtils()
      Instantiates a new user utils.
  • Method Details

    • setSessionCookieinResponse

      public void setSessionCookieinResponse(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, DeveloperOrchestration developer, String sessionId, String refreshId, Boolean isSecureFromService)
      Sets the session cookiein response.
      Parameters:
      httpResponse - the http response
      origin - the origin
      developer - the developer
      sessionId - the session id
      refreshId - the refresh id
      isSecureFromService - the is secure from service
    • removeSessionCookieinResponse

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

      public String getCookieConstruction(String cookieName, String cookieValue, long expiry, Boolean isSecureFromService)
      Gets the cookie construction.
      Parameters:
      cookieName - the cookie name
      cookieValue - the cookie value
      expiry - the expiry
      isSecureFromService - the is secure from service
      Returns:
      the cookie construction
    • getHttpServerletResponseDetails

      public jakarta.servlet.http.HttpServletResponse getHttpServerletResponseDetails()
      Returns:
      HttpServletResponse