Package de.xima.fc.utils
Class SessionHelper
java.lang.Object
de.xima.fc.utils.SessionHelper
Helper for working with
HttpSession
s.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.alibaba.fastjson.JSONObject
getAuthenticationTargetStateJson
(javax.servlet.http.HttpServletRequest request) static Long
getRestLoginClientId
(javax.servlet.http.HttpSession session) Deprecated.The REST-API will be deprecated in the future.static void
setRestLoginClientId
(javax.servlet.http.HttpSession session, Long restLoginClientId) Deprecated.The REST-API will be deprecated in the future.
-
Method Details
-
getAuthenticationTargetStateJson
public static com.alibaba.fastjson.JSONObject getAuthenticationTargetStateJson(javax.servlet.http.HttpServletRequest request) - Parameters:
request
- to get the authentication target for.- Returns:
- The authentication target with its parameters as a JSON.
-
getRestLoginClientId
Deprecated.The REST-API will be deprecated in the future.- Parameters:
session
- to check- Returns:
- The client that has been used for login for the REST-API from the session.
-
setRestLoginClientId
@Deprecated public static void setRestLoginClientId(javax.servlet.http.HttpSession session, Long restLoginClientId) Deprecated.The REST-API will be deprecated in the future.SEts the client that has been used for login for the REST-API in the session.- Parameters:
session
- to add client ID torestLoginClientId
- Client ID to set
-