Package de.xima.fc.utils
Class SessionHelper
- java.lang.Object
-
- de.xima.fc.utils.SessionHelper
-
public class SessionHelper extends Object
Helper for working withHttpSession
s.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.alibaba.fastjson.JSONObject
getAuthenticationTargetStateJson(javax.servlet.http.HttpServletRequest request)
static String
getDecryptedRelayState(javax.servlet.http.HttpServletRequest req)
Gets the decrypted relay state from the request.static com.alibaba.fastjson.JSONObject
getDecryptedRelayStateAsJson(javax.servlet.http.HttpServletRequest req)
Gets the decrypted relay state from the request as JSON.static String
getEncryptedRelayState(javax.servlet.http.HttpServletRequest req)
Gets the encrypted relay state from the 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 Detail
-
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 public static Long getRestLoginClientId(javax.servlet.http.HttpSession session)
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
-
getDecryptedRelayStateAsJson
public static com.alibaba.fastjson.JSONObject getDecryptedRelayStateAsJson(javax.servlet.http.HttpServletRequest req)
Gets the decrypted relay state from the request as JSON. The relay state is used to store the state of the authentication and is returned unchanged in the callback to authentication requests.- Parameters:
req
- to get the decrypted state from- Returns:
- The decrypted state from the request as JSON.
-
getDecryptedRelayState
public static String getDecryptedRelayState(javax.servlet.http.HttpServletRequest req)
Gets the decrypted relay state from the request. The relay state is used to store the state of the authentication and is returned unchanged in the callback to authentication requests.- Parameters:
req
- to get the decrypted state from- Returns:
- The decrypted state from the request as string.
-
getEncryptedRelayState
public static String getEncryptedRelayState(javax.servlet.http.HttpServletRequest req)
Gets the encrypted relay state from the request. The relay state is used to store the state of the authentication and is returned unchanged in the callback to authentication requests.- Parameters:
req
- to get the encrypted state from- Returns:
- The encrypted state from the request as string.
-
-