Class UserUtils
java.lang.Object
com.skava.marketplace.orchestration.utils.UserUtils
The Class UserUtils.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCookieConstruction
(String cookieName, String cookieValue, long expiry, Boolean isSecureFromService) Gets the cookie construction.jakarta.servlet.http.HttpServletResponse
void
removeSessionCookieinResponse
(jakarta.servlet.http.HttpServletResponse httpResponse, String origin) Removes the session cookiein response.void
setSessionCookieinResponse
(jakarta.servlet.http.HttpServletResponse httpResponse, String origin, DeveloperOrchestration developer, String sessionId, String refreshId, Boolean isSecureFromService) Sets the session cookiein response.
-
Field Details
-
SESSIONID
The Constant SESSIONID.- See Also:
-
-
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 responseorigin
- the origindeveloper
- the developersessionId
- the session idrefreshId
- the refresh idisSecureFromService
- 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 responseorigin
- the origin
-
getCookieConstruction
public String getCookieConstruction(String cookieName, String cookieValue, long expiry, Boolean isSecureFromService) Gets the cookie construction.- Parameters:
cookieName
- the cookie namecookieValue
- the cookie valueexpiry
- the expiryisSecureFromService
- the is secure from service- Returns:
- the cookie construction
-
getHttpServerletResponseDetails
public jakarta.servlet.http.HttpServletResponse getHttpServerletResponseDetails()- Returns:
- HttpServletResponse
-