Class SessionHelper


  • public class SessionHelper
    extends Object
    Helper for working with HttpSessions.
    Since:
    8.0.0
    Author:
    XIMA Media GmbH
    • 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 to
        restLoginClientId - Client ID to set