Class SessionHelper
java.lang.Object
de.xima.fc.utils.SessionHelper
Helper for working with
HttpSessions.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.alibaba.fastjson.JSONObjectgetAuthenticationTargetStateJson(javax.servlet.http.HttpServletRequest request) static StringgetDecryptedRelayState(javax.servlet.http.HttpServletRequest req) Gets the decrypted relay state from the request.static com.alibaba.fastjson.JSONObjectgetDecryptedRelayStateAsJson(javax.servlet.http.HttpServletRequest req) Gets the decrypted relay state from the request as JSON.static StringgetEncryptedRelayState(javax.servlet.http.HttpServletRequest req) Gets the encrypted relay state from the request.static LonggetRestLoginClientId(javax.servlet.http.HttpSession session) Deprecated.The REST-API will be deprecated in the future.static voidsetRestLoginClientId(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
-
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
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
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.
-