Interface IPChangeListener


public interface IPChangeListener
Called when a change of the IP address in the session is detected. Can be used to "reattach" a session to a new IP. Must be implemented by the AuthClass. If ipChanged returns true, the sessions IP is updated with the current one; if it returns false or an exception is thrown, the session is invalidated and ApplicationException 466 will be thrown.
  • Method Details

    • ipChanged

      boolean ipChanged(HttpServletRequest req, HttpServletResponse res, String remoteAddress, String storedAddress, Principal principal) throws Exception
      Called when remote IP address changed and "ep.check.ip" is activated.
      Parameters:
      req - the request
      res - the response
      remoteAddress - the current remote address
      storedAddress - the remote address as stored in the HttpSession
      principal - the current principal
      Returns:
      true, if the ipChange is to be treated as legitimate, false else.
      Throws:
      Exception